Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | gh-74953: Fix PyThread_acquire_lock_timed() code recomputing the timeout ↵ | Victor Stinner | 2022-06-17 | 1 | -1/+1 | |
| | | | | | (#93941) Set timeout, don't create a local variable with the same name. | |||||
* | gh-74953: Add _PyTime_FromMicrosecondsClamp() function (#93942) | Victor Stinner | 2022-06-17 | 3 | -16/+21 | |
| | ||||||
* | gh-77782: Py_FdIsInteractive() now uses PyConfig.interactive (#93916) | Victor Stinner | 2022-06-17 | 6 | -23/+29 | |
| | ||||||
* | gh-93852: Add test.support.create_unix_domain_name() (#93914) | Victor Stinner | 2022-06-17 | 7 | -86/+82 | |
| | | | | | | | | | | | | | | | test_asyncio, test_logging, test_socket and test_socketserver now create AF_UNIX domains in the current directory to no longer fail with OSError("AF_UNIX path too long") if the temporary directory (the TMPDIR environment variable) is too long. Modify the following tests to use create_unix_domain_name(): * test_asyncio * test_logging * test_socket * test_socketserver test_asyncio.utils: remove unused time import. | |||||
* | gh-89745: Avoid exact match when comparing program_name in test_embed on ↵ | neonene | 2022-06-17 | 1 | -10/+7 | |
| | | | | Windows (GH-93888) | |||||
* | gh-91404: Revert "bpo-23689: re module, fix memory leak when a match is ↵ | Gregory P. Smith | 2022-06-17 | 9 | -146/+74 | |
| | | | | | | | | | | | | terminated by a signal or allocation failure (GH-32283) (#93882) Revert "bpo-23689: re module, fix memory leak when a match is terminated by a signal or memory allocation failure (GH-32283)" This reverts commit 6e3eee5c11b539e9aab39cff783acf57838c355a. Manual fixups to increase the MAGIC number and to handle conflicts with a couple of changes that landed after that. Thanks for reviews by Ma Lin and Serhiy Storchaka. | |||||
* | test_logging: Fix BytesWarning in SysLogHandlerTest (GH-93920) | Victor Stinner | 2022-06-17 | 1 | -1/+1 | |
| | ||||||
* | GH-83658: make multiprocessing.Pool raise an exception if maxtasksperchild ↵ | Irit Katriel | 2022-06-17 | 3 | -0/+9 | |
| | | | | | is not None or a positive int (GH-93364) Closes #83658. | |||||
* | gh-91985: Ensure in-tree builds override platstdlib_dir in every path ↵ | neonene | 2022-06-16 | 4 | -2/+125 | |
| | | | | calculation (GH-93641) | |||||
* | GH-91389: Fix dis position information for CACHEs (GH-93663) | Brandt Bucher | 2022-06-16 | 3 | -12/+58 | |
| | ||||||
* | gh-93353: regrtest supports checking tmp files with -j2 (#93909) | Victor Stinner | 2022-06-16 | 3 | -11/+20 | |
| | | | | | regrtest now also implements checking for leaked temporary files and directories when using -jN for N >= 2. Use tempfile.mkdtemp() to create the temporary directory. Skip this check on WASI. | |||||
* | gh-93847: Fix repr of enum of generic aliases (GH-93885) | Serhiy Storchaka | 2022-06-16 | 3 | -2/+13 | |
| | ||||||
* | Fix BINARY_SUBSCR_GETITEM stats (GH-93903) | Ken Jin | 2022-06-16 | 2 | -7/+7 | |
| | ||||||
* | gh-92547: Amend What's New (#93872) | Erlend Egeberg Aasland | 2022-06-16 | 1 | -0/+8 | |
| | ||||||
* | gh-91577: SharedMemory move imports out of methods (#91579) | samtygier | 2022-06-16 | 2 | -4/+4 | |
| | | | | | | | SharedMemory.unlink() uses the unregister() function from resource_tracker. Previously it was imported in the method, but this can fail if the method is called during interpreter shutdown, for example when unlink is part of a __del__() method. Moving the import to the top of the file, means that the unregister() method is available during interpreter shutdown. The register call in SharedMemory.__init__() can also use this imported resource_tracker. | |||||
* | gh-91321: Fix test_cppext for C++03 (#93902) | Victor Stinner | 2022-06-16 | 1 | -2/+4 | |
| | | | | Don't build _testcppext.cpp with -Wzero-as-null-pointer-constant when testing C++03: only use this compiler flag with C++11. | |||||
* | gh-87347: Add parenthesis around PyXXX_Check() arguments (#92815) | Victor Stinner | 2022-06-16 | 34 | -58/+58 | |
| | ||||||
* | Call busy_retry() and sleeping_retry() with error=True (#93871) | Victor Stinner | 2022-06-16 | 6 | -18/+9 | |
| | | | | Tests no longer call busy_retry() and sleeping_retry() with error=False: raise an exception if the loop times out. | |||||
* | gh-93820: Fix copy() regression in enum.Flag (GH-93876) | Christian Heimes | 2022-06-16 | 3 | -0/+33 | |
| | | | | | | | | GH-26658 introduced a regression in copy / pickle protocol for combined `enum.Flag`s. `copy.copy(re.A | re.I)` would fail with `AttributeError: ASCII|IGNORECASE`. `enum.Flag` now has a `__reduce_ex__()` method that reduces flags by combined value, not by combined name. | |||||
* | gh-84461: Document how to install SDKs manually (GH-93844) | Christian Heimes | 2022-06-15 | 1 | -0/+78 | |
| | | | Co-authored-by: Brett Cannon <brett@python.org> | |||||
* | Tests call sleeping_retry() with SHORT_TIMEOUT (#93870) | Victor Stinner | 2022-06-15 | 6 | -9/+16 | |
| | | | | | | | Tests now call busy_retry() and sleeping_retry() with SHORT_TIMEOUT or LONG_TIMEOUT (of test.support), rather than hardcoded constants. Add also WAIT_ACTIVE_CHILDREN_TIMEOUT constant to _test_multiprocessing. | |||||
* | test_asyncore: Optimize capture_server() (#93867) | Victor Stinner | 2022-06-15 | 1 | -1/+0 | |
| | | | | | | Remove time.sleep(0.01) in test_asyncore capture_server(). The sleep was redundant and inefficient, since the loop starts with select.select() which also implements a sleep (poll for socket data with a timeout). | |||||
* | test_asyncio: run_until() implements exponential sleep (#93866) | Victor Stinner | 2022-06-15 | 1 | -1/+3 | |
| | | | | | | run_until() of test.test_asyncio.utils now uses an exponential sleep delay (max: 1 second), rather than a fixed delay of 1 ms. Similar design than support.sleeping_retry() wait strategy that applies exponential backoff. | |||||
* | gh-93824: Reenable installation of shell extension on Windows ARM64 (GH-93825) | Steve Dower | 2022-06-15 | 4 | -14/+26 | |
| | ||||||
* | GH-93850: Fix test_asyncio exception ignored tracebacks (#93854) | Kumar Aditya | 2022-06-15 | 1 | -0/+3 | |
| | ||||||
* | gh-93857: Fix broken audit-event targets in sqlite3 docs (#93859) | Erlend Egeberg Aasland | 2022-06-15 | 1 | -2/+2 | |
| | | | | | | Corrected targets for the following audit-events: - sqlite3.enable_load_extension => sqlite3.Connection.enable_load_extension - sqlite3.load_extension => sqlite3.Connection.load_extension | |||||
* | Update includes in call.c (GH-93786) | Pamela Fox | 2022-06-15 | 1 | -3/+2 | |
| | ||||||
* | Use support.sleeping_retry() and support.busy_retry() (#93848) | Victor Stinner | 2022-06-15 | 7 | -58/+51 | |
| | | | | | | * Replace time.sleep(0.010) with sleeping_retry() to use an exponential sleep. * support.wait_process(): reuse sleeping_retry(). * _test_eintr: remove unused variables. | |||||
* | test_thread uses support.sleeping_retry() (#93849) | Victor Stinner | 2022-06-15 | 1 | -7/+11 | |
| | | | | test_thread.test_count() now fails if it takes longer than LONG_TIMEOUT seconds. | |||||
* | gh-87260: Update sqlite3 signature docs to reflect actual implementation ↵ | Erlend Egeberg Aasland | 2022-06-15 | 2 | -9/+10 | |
| | | | | | | | | | | (#93840) Align the docs for the following methods with the actual implementation: - sqlite3.complete_statement() - sqlite3.Connection.create_function() - sqlite3.Connection.create_aggregate() - sqlite3.Connection.set_progress_handler() | |||||
* | Add test.support.busy_retry() (#93770) | Victor Stinner | 2022-06-15 | 12 | -99/+186 | |
| | | | Add busy_retry() and sleeping_retry() functions to test.support. | |||||
* | gh-93829: In sqlite3, replace Py_BuildValue with faster APIs (#93830) | Erlend Egeberg Aasland | 2022-06-15 | 2 | -4/+3 | |
| | | | | - In Modules/_sqlite/connection.c, use PyLong_FromLong - In Modules/_sqlite/microprotocols.c, use PyTuple_Pack | |||||
* | gh-93183: Adjust wording in socket docs (#93832) | Erlend Egeberg Aasland | 2022-06-15 | 1 | -2/+2 | |
| | | | | | package => packet Co-authored-by: Victor Norman | |||||
* | gh-93735: Split Docs CI to speed-up the build (GH-93736) | Adam Turner | 2022-06-15 | 1 | -12/+34 | |
| | ||||||
* | gh-93814: Add infinite test for itertools.chain.from_iterable (GH-93815) | Jeong YunWon | 2022-06-14 | 1 | -0/+1 | |
| | | | | | fix #93814 Automerge-Triggered-By: GH:rhettinger | |||||
* | [docs] Fix LOAD_ATTR version changed (GH-93816) | Ken Jin | 2022-06-14 | 1 | -1/+1 | |
| | ||||||
* | gh-93353: Fix regrtest for -jN with N >= 2 (GH-93813) | Victor Stinner | 2022-06-14 | 2 | -16/+24 | |
| | ||||||
* | Rename 'LOAD_METHOD' specialization stat consts to 'ATTR'. (GH-93812) | Mark Shannon | 2022-06-14 | 1 | -17/+14 | |
| | ||||||
* | Remove LOAD_METHOD stats. (GH-93807) | Mark Shannon | 2022-06-14 | 1 | -1/+0 | |
| | ||||||
* | gh-93795: Use test.support TESTFN/unlink in sqlite3 tests (#93796) | Erlend Egeberg Aasland | 2022-06-14 | 1 | -17/+15 | |
| | ||||||
* | Include freelists in allocation total. (GH-93799) | Mark Shannon | 2022-06-14 | 1 | -1/+1 | |
| | ||||||
* | GH-93429: Document `LOAD_METHOD` removal (GH-93803) | Ken Jin | 2022-06-14 | 2 | -13/+23 | |
| | ||||||
* | gh-91877: Fix WriteTransport.get_write_buffer_{limits,size} docs (#92338) | Sanket Shanbhag | 2022-06-14 | 1 | -0/+4 | |
| | | | | - Amend docs for WriteTransport.get_write_buffer_limits - Add docs for WriteTransport.get_write_buffer_size | |||||
* | GH-93678: reduce boilerplate and code repetition in the compiler (GH-93682) | Irit Katriel | 2022-06-14 | 2 | -261/+151 | |
| | ||||||
* | gh-79579: Improve DML query detection in sqlite3 (#93623) | Erlend Egeberg Aasland | 2022-06-14 | 3 | -84/+103 | |
| | | | | | | | | | The fix involves using pysqlite_check_remaining_sql(), not only to check for multiple statements, but now also to strip leading comments and whitespace from SQL statements, so we can improve DML query detection. pysqlite_check_remaining_sql() is renamed lstrip_sql(), to more accurately reflect its function, and hardened to handle more SQL comment corner cases. | |||||
* | gh-93353: regrtest checks for leaked temporary files (#93776) | Victor Stinner | 2022-06-14 | 3 | -7/+55 | |
| | | | | | When running tests with -jN, create a temporary directory per process and mark a test as "environment changed" if a test leaks a temporary file or directory. | |||||
* | GH-93429: Merge `LOAD_METHOD` back into `LOAD_ATTR` (GH-93430) | Ken Jin | 2022-06-14 | 13 | -380/+321 | |
| | ||||||
* | gh-90473: Include stdlib dir in wasmtime PYTHONPATH (GH-93797) | Christian Heimes | 2022-06-14 | 2 | -2/+2 | |
| | ||||||
* | GH-93516: Store offset of first traceable instruction in code object (GH-93769) | Mark Shannon | 2022-06-14 | 6 | -53/+54 | |
| | ||||||
* | GH-93662: Make sure that column offsets are correct in multi-line method ↵ | Mark Shannon | 2022-06-14 | 3 | -5/+48 | |
| | | | | calls. (GH-93673) |