summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-84461: Fix Emscripten umask and permission issues (GH-94002)Christian Heimes2022-06-194-0/+23
| | | | | | | | - Emscripten's default umask is too strict, see https://github.com/emscripten-core/emscripten/issues/17269 - getuid/getgid and geteuid/getegid are stubs that always return 0 (root). Disable effective uid/gid syscalls and fix tests that use chmod() current user. - Cannot drop X bit from directory.
* gh-93991: Use boolean instead of 0/1 for condition check (GH-93992)Lei Zhang2022-06-191-4/+4
| | | # gh-93991: Use boolean instead of 0/1 for condition check
* gh-93937, C API: Move PyFrame_GetBack() to Python.h (#93938)Victor Stinner2022-06-1921-28/+61
| | | | | | | | | | | | | | | | Move the follow functions and type from frameobject.h to pyframe.h, so the standard <Python.h> provide frame getter functions: * PyFrame_Check() * PyFrame_GetBack() * PyFrame_GetBuiltins() * PyFrame_GetGenerator() * PyFrame_GetGlobals() * PyFrame_GetLasti() * PyFrame_GetLocals() * PyFrame_Type Remove #include "frameobject.h" from many C files. It's no longer needed.
* gh-74953: Reformat PyThread_acquire_lock_timed() (#93947)Victor Stinner2022-06-191-46/+62
| | | | | | | | Reformat the pthread implementation of PyThread_acquire_lock_timed() using a mutex and a conditioinal variable. * Add goto to avoid multiple indentation levels and exit quickly * Use "while(1)" and make the control flow more obvious. * PEP 7: Add braces around if blocks.
* gh-93761: Fix test_logging test_config_queue_handler() race condition (#93952)Victor Stinner2022-06-191-0/+3
| | | Fix a race condition in test_config_queue_handler() of test_logging.
* What's new in 3.10: fix link to issue (#93968)Hugo van Kemenade2022-06-191-1/+1
| | | | | | | | | * What's new in 3.10: fix link to issue * What's new in 3.10: fix link to GH issue Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* GH-93990: fix refcounting bug in `add_subclass` in `typeobject.c` (GH-93989)Kumar Aditya2022-06-191-1/+4
|
* gh-93975: Nicer error reporting in test_venv (GH-93959)Jason R. Coombs2022-06-182-14/+32
| | | | | | | | | | - gh-93957: Provide nicer error reporting from subprocesses in test_venv.EnsurePipTest.test_with_pip. - Update changelog This change does three things: 1. Extract a function for trapping output in subprocesses. 2. Emit both stdout and stderr when encountering an error. 3. Apply the change to `ensurepip._uninstall` check.
* gh-91387: Fix tarfile test on WASI (GH-93984)Christian Heimes2022-06-181-1/+1
| | | WASI's rmdir() syscall does not like the trailing slash.
* gh-93955: Use unbound methods for slot `__getattr__` and `__getattribute__` ↵Ken Jin2022-06-182-1/+9
| | | | (GH-93956)
* gh-84461: Fix pydebug Emscripten browser builds (GH-93982)Christian Heimes2022-06-182-16/+28
| | | | wasm_assets script did not take the ABIFLAG flag of sysconfigdata into account.
* gh-89828: Do not relay the __class__ attribute in GenericAlias (#93754)Serhiy Storchaka2022-06-187-20/+18
| | | | | list[int].__class__ returned type, and isinstance(list[int], type) returned True. It caused numerous problems in code that checks isinstance(x, type).
* gh-84461: Fix circulare dependency on BUILDPYTHON (GH-93977)Christian Heimes2022-06-183-4/+14
|
* Add jaraco as primary owner of importlib.metadata and importlib.resources. ↵Jason R. Coombs2022-06-181-0/+2
| | | | | | | | | | | (#93960) * Add jaraco as primary owner of importlib.metadata and importlib.resources. * Align indentation. Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-91387: Strip trailing slash from tarfile longname directories (GH-32423)Chris Fernald2022-06-173-0/+28
| | | Co-authored-by: Brett Cannon <brett@python.org>
* GH-77403: Fix tests which fail when PYTHONUSERBASE is not normalized (GH-93917)Irit Katriel2022-06-172-3/+3
|
* gh-92611: Add details on replacements for cgi utility funcs (GH-92792)CAM Gerlach2022-06-171-0/+31
| | | | | Per @brettcannon 's [suggestions on the Discourse thread](https://discuss.python.org/t/pep-594-take-2-removing-dead-batteries-from-the-standard-library/13508/51), discussed in #92611 and as a followup to PR #92612 , this PR add additional specific per-function replacement information for the utility functions in the `cgi` module deprecated by PEP 594 (PEP-594). @brettcannon , should this be backported (without the `deprecated-removed` , which I would update it accordingly and re-add in my other PR adding that to the others for 3.11+), or just go in 3.11+?
* GH-89858: Fix test_embed for out-of-tree builds (GH-93465)Kumar Aditya2022-06-172-5/+5
|
* gh-92888: Fix memoryview bad `__index__` use after free (GH-92946)Ken Jin2022-06-173-19/+139
| | | | Co-authored-by: chilaxan <35645806+chilaxan@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <3659035+serhiy-storchaka@users.noreply.github.com>
* gh-93911: Specialize `LOAD_ATTR_PROPERTY` (GH-93912)Ken Jin2022-06-1712-71/+172
|
* gh-77782: Deprecate global configuration variable (#93943)Victor Stinner2022-06-178-28/+96
| | | | | | | Deprecate global configuration variable like Py_IgnoreEnvironmentFlag: the Py_InitializeFromConfig() API should be instead. Fix declaration of Py_GETENV(): use PyAPI_FUNC(), not PyAPI_DATA().
* gh-74953: Fix PyThread_acquire_lock_timed() code recomputing the timeout ↵Victor Stinner2022-06-171-1/+1
| | | | | (#93941) Set timeout, don't create a local variable with the same name.
* gh-74953: Add _PyTime_FromMicrosecondsClamp() function (#93942)Victor Stinner2022-06-173-16/+21
|
* gh-77782: Py_FdIsInteractive() now uses PyConfig.interactive (#93916)Victor Stinner2022-06-176-23/+29
|
* gh-93852: Add test.support.create_unix_domain_name() (#93914)Victor Stinner2022-06-177-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 ↵neonene2022-06-171-10/+7
| | | | Windows (GH-93888)
* gh-91404: Revert "bpo-23689: re module, fix memory leak when a match is ↵Gregory P. Smith2022-06-179-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 Stinner2022-06-171-1/+1
|
* GH-83658: make multiprocessing.Pool raise an exception if maxtasksperchild ↵Irit Katriel2022-06-173-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 ↵neonene2022-06-164-2/+125
| | | | calculation (GH-93641)
* GH-91389: Fix dis position information for CACHEs (GH-93663)Brandt Bucher2022-06-163-12/+58
|
* gh-93353: regrtest supports checking tmp files with -j2 (#93909)Victor Stinner2022-06-163-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 Storchaka2022-06-163-2/+13
|
* Fix BINARY_SUBSCR_GETITEM stats (GH-93903)Ken Jin2022-06-162-7/+7
|
* gh-92547: Amend What's New (#93872)Erlend Egeberg Aasland2022-06-161-0/+8
|
* gh-91577: SharedMemory move imports out of methods (#91579)samtygier2022-06-162-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 Stinner2022-06-161-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 Stinner2022-06-1634-58/+58
|
* Call busy_retry() and sleeping_retry() with error=True (#93871)Victor Stinner2022-06-166-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 Heimes2022-06-163-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 Heimes2022-06-151-0/+78
| | | Co-authored-by: Brett Cannon <brett@python.org>
* Tests call sleeping_retry() with SHORT_TIMEOUT (#93870)Victor Stinner2022-06-156-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 Stinner2022-06-151-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 Stinner2022-06-151-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 Dower2022-06-154-14/+26
|
* GH-93850: Fix test_asyncio exception ignored tracebacks (#93854)Kumar Aditya2022-06-151-0/+3
|
* gh-93857: Fix broken audit-event targets in sqlite3 docs (#93859)Erlend Egeberg Aasland2022-06-151-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 Fox2022-06-151-3/+2
|
* Use support.sleeping_retry() and support.busy_retry() (#93848)Victor Stinner2022-06-157-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 Stinner2022-06-151-7/+11
| | | | test_thread.test_count() now fails if it takes longer than LONG_TIMEOUT seconds.