summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-109615: Fix support test_copy_python_src_ignore() (#109958)Victor Stinner2023-09-275-8/+30
| | | | | | | | | | Fix the test when run on an installed Python: use "abs_srcdir" of sysconfig, and skip the test if the Python source code cannot be found. * Tools/patchcheck/patchcheck.py, Tools/freeze/test/freeze.py and Lib/test/libregrtest/utils.py now first try to get "abs_srcdir" from sysconfig, before getting "srcdir" from sysconfig. * test.pythoninfo logs sysconfig "abs_srcdir".
* gh-109566: Fix regrtest Python options for WASM/WASI (#109954)Victor Stinner2023-09-273-8/+20
| | | | | WASM and WASI buildbots use multiple PYTHON environment variables such as PYTHONPATH and _PYTHON_HOSTRUNNER. Don't use -E if the --python=COMMAND option is used.
* gh-109565: Fix concurrent.futures test_future_times_out() (#109949)Victor Stinner2023-09-271-2/+5
| | | | as_completed() uses a timeout of 100 ms instead of 10 ms. Windows monotonic clock resolution is around 15.6 ms.
* gh-109615: Fix test_tools.test_freeze SRCDIR (#109935)Victor Stinner2023-09-275-56/+59
| | | | | | | | | Fix copy_source_tree() function of test_tools.test_freeze: * Don't copy SRC_DIR/build/ anymore. This directory is modified by other tests running in parallel. * Add test.support.copy_python_src_ignore(). * Use sysconfig to get the source directory. * Use sysconfig.get_config_var() to get CONFIG_ARGS variable.
* GH-109190: Copyedit 3.12 What's New: Deprecations (``os`` fix) (#109927)Adam Turner2023-09-271-15/+17
| | | Merge the two ``os`` entries
* Remove loop from docstring for asyncio.streams.open_connection (#108528)Tom Gillespie2023-09-271-3/+2
|
* gh-101100: Fix Sphinx warnings in Doc/using/configure.rst (#109931)Victor Stinner2023-09-272-9/+8
|
* gh-109098: Fuzz re module instead of internal sre (#109911)Ammar Askar2023-09-262-30/+21
| | | | | * gh-109098: Fuzz re module instead of internal sre * Fix c-analyzer globals test failure * Put globals exception in ignored.tsv
* gh-107888: Fix test_mmap.test_access_parameter() on macOS 14 (#109928)Victor Stinner2023-09-261-4/+9
|
* gh-109566: Fix regrtest code adding Python options (#109926)Victor Stinner2023-09-264-38/+62
| | | | | | * On Windows, use subprocess.run() instead of os.execv(). * Only add needed options * Rename reexec parameter to _add_python_opts. * Rename --no-reexec option to --dont-add-python-opts.
* GH-109190: Copyedit 3.12 What's New: Deprecations (#109766)Adam Turner2023-09-261-92/+153
|
* Fix argument ordering of embuilder command documented in ↵OmniTroid2023-09-261-1/+1
| | | | `Tools/wasm/README.md` (GH-109863)
* gh-109845: Make test_ftplib more stable under load (GH-109912)Serhiy Storchaka2023-09-261-20/+18
| | | | recv() can return partial data cut in the middle of a multibyte character. Test raw binary data instead of data incorrectly decoded by parts.
* gh-109276, gh-109508: Fix libregrtest stdout (#109903)Victor Stinner2023-09-264-54/+27
| | | | | | | | | Remove replace_stdout(): call sys.stdout.reconfigure() instead of set the error handler to backslashreplace. display_header() logs an empty line and flush stdout. Remove encoding workaround in display_header() since stdout error handler is now set to backslashreplace earlier.
* Remove concurrent.futures deadcode: process_result_item() (#109906)Victor Stinner2023-09-261-18/+8
| | | | process_result_item() cannot be called with an int anymore, the protocol changed.
* gh-109566: regrtest reexecutes the process (#109909)Victor Stinner2023-09-267-14/+107
| | | | | | | | | | | | | When --fast-ci or --slow-ci option is used, regrtest now replaces the current process with a new process to add "-u -W default -bb -E" options to Python. Changes: * PCbuild/rt.bat and Tools/scripts/run_tests.py no longer need to add "-u -W default -bb -E" options to Python: it's now done by regrtest. * Fix Tools/scripts/run_tests.py: flush stdout before replacing the process. Previously, buffered messages were lost.
* GH-109187: Improve symlink loop handling in `pathlib.Path.resolve()` (GH-109192)Barney Gale2023-09-264-30/+21
| | | | Treat symlink loops like other errors: in strict mode, raise `OSError`, and in non-strict mode, do not raise any exception.
* gh-109566, regrtest: Add --fast-ci and --slow-ci options (#109570)Victor Stinner2023-09-2611-51/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add --fast-ci and --slow-ci options to libregrtest: * --fast-ci uses a default timeout of 10 minutes and "-u all,-cpu" (skip slowest tests). * --slow-ci uses a default timeout of 20 minues and "-u all" (run all tests). * regrtest header now lists test resources. * Makefile changes: * "make test", "make hostrunnertest" and "make coverage-report" now use --fast-ci option and TESTTIMEOUT variable. * "make buildbottest" now uses "--slow-ci". Remove options which became redundant with "--slow-ci". * "make testall" and "make testuniversal" now use --slow-ci option and TESTTIMEOUT variable. * "make testall" now uses "find -exec rm ..." instead of "find ... -print|xargs rm ...", same as "make clean". * GitHub Actions workflow: * Ubuntu and Address Sanitizer jobs now use "make test". Remove options which became redundant with "--fast-ci". * Windows jobs now use --fast-ci option. * Use -j0 to detect the number of CPUs. * Set Makefile TESTTIMEOUT default to an empty string, since --slow-ci and --fast-ci use different default timeout. It's now accepted to pass "--timeout=" to regrtest: treated as not timeout. * Tools/scripts/run_tests.py now uses --fast-ci option. * Tools/buildbot/test.bat now uses --slow-ci option. Remove --timeout=1200 option, redundant with --slow-ci.
* More informative docstrings in the random module (gh-109745)Raymond Hettinger2023-09-261-5/+34
|
* no-issue: Fix a typo in the parameter name of random.expovariate. (gh-109902)lohaswinner2023-09-261-1/+1
|
* gh-109593: Fix reentrancy issue in multiprocessing resource_tracker (#109629)Antoine Pitrou2023-09-267-2/+95
| | | | | --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-109832: concurrent.futures test_deadlock restores sys.stderr (#109887)Victor Stinner2023-09-261-0/+6
| | | | | test_error_at_task_unpickle() and test_error_during_result_unpickle_in_result_handler() now restore sys.stderr which is overriden by _raise_error_ignore_stderr().
* gh-109631: Allow interruption of short repeated regex matches (GH-109867)Serhiy Storchaka2023-09-263-2/+8
| | | | Counting for signal checking now continues in new match from the point where it ended in the previous match instead of starting from 0.
* gh-101100: Fix Sphinx warnings in `Doc/library/weakref.rst` (#109881)Nikita Sobolev2023-09-262-11/+9
|
* gh-109370: Fix unexpected traceback output in test_concurrent_futures ↵Serhiy Storchaka2023-09-262-3/+3
| | | | | | | | | (GH-109780) Follow-up of gh-107219. * Only close the connection writer on Windows. * Also use existing constant _winapi.ERROR_OPERATION_ABORTED instead of WSA_OPERATION_ABORTED.
* gh-109739: regrtest disables load tracker if refleak (#109871)Victor Stinner2023-09-262-3/+16
| | | | regrtest: Fix reference leak check on Windows. Disable the load tracker on Windows in the reference leak check mode (-R option).
* gh-109401: Fix threading barrier test_default_timeout() (#109875)Victor Stinner2023-09-261-4/+6
| | | | Increase timeouts. Barrier default timeout should be long enough to spawn 4 threads on a slow CI.
* gh-88233: zipfile: refactor _strip_extra (#102084)Jason R. Coombs2023-09-253-46/+62
| | | | | | | | | * Refactor zipfile._strip_extra to use higher level abstractions for extras instead of a heavy-state loop. * Add blurb * Remove _strip_extra and use _Extra.strip directly. * Use memoryview to avoid unnecessary copies while splitting Extras.
* gh-109748: Fix venv test_zippath_from_non_installed_posix() (#109872)Victor Stinner2023-09-252-1/+12
| | | | | Fix test_zippath_from_non_installed_posix() of test_venv: don't copy __pycache__/ sub-directories, because they can be modified by other Python tests running in parallel.
* gh-109823: Adjust labels in compiler when removing an empty basic block ↵Irit Katriel2023-09-253-1/+15
| | | | which is a jump target (#109839)
* gh-109599: Add types.CapsuleType (#109600)Antoine Pitrou2023-09-255-1/+21
| | | | | --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-89363: Skip threading test_is_alive_after_fork() if ASAN (#109835)Victor Stinner2023-09-252-1/+5
| | | | Skip test_is_alive_after_fork() of test_threading if Python is built with Address Sanitizer (ASAN).
* gh-109795: `_thread.start_new_thread`: allocate thread bootstate using raw ↵Radislav Chugunov2023-09-251-3/+6
| | | | memory allocator (#109808)
* Code: Update Donghee Na's name (#109744)Hugo van Kemenade2023-09-254-4/+4
|
* gh-109723: Fix build of _testclinic_limited on WASM (#109842)Victor Stinner2023-09-251-0/+6
| | | Make sure that the Py_BUILD_CORE macro is not defined.
* GH-109190: Copyedit 3.12 What's New: Sort Other Language Changes (#109836)Adam Turner2023-09-251-47/+47
|
* gh-109276: regrtest re-runs "env changed" tests (#109831)Victor Stinner2023-09-253-7/+21
| | | | When a test fails with "env changed" and --rerun option is used, the test is now re-run in verbose mode in a fresh process.
* GH-109190: Copyedit 3.12 What's New: Synchronise C API deprecations with the ↵Adam Turner2023-09-251-2/+0
| | | | 3.12 branch (#109844)
* gh-109276: Enhance libregrtest results (#109828)Victor Stinner2023-09-252-39/+31
| | | | | | * Factorize code listing "bad / env changed / ..." tests. * Add TestResults.is_all_good() method. * Move "All 400 tests OK." to the end * Move "Test suite interrupted by signal SIGINT." to the end.
* gh-109833: Fix asyncio test_wait_for() (#109834)Victor Stinner2023-09-251-2/+3
| | | | | Expect the test to be "short" but don't measure the exact performance of the CI. SHORT_TIMEOUT is about 30 seconds whereas the cancelled coroutine takes around 1 hour.
* GH-109190: Copyedit 3.12 What's New: Improve the C-API deprecations section ↵Adam Turner2023-09-251-13/+96
| | | | | | (#109751) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* no-issue: Capitalise 'PhotoImage' (gh-108958)DongWoo Son2023-09-251-1/+1
|
* GH-109190: Copyedit 3.12 What's New: Use the present tense (#109754)Adam Turner2023-09-251-30/+30
|
* GH-109190: Copyedit 3.12 What's New: Trivia (#109760)Adam Turner2023-09-251-7/+4
|
* GH-109190: Copyedit 3.12 What's New: Prefer GitHub issues links (#109753)Adam Turner2023-09-251-4/+4
|
* gh-104469: Convert _testcapi/vectorcall_limited.c to use AC (#109691)Victor Stinner2023-09-252-5/+47
| | | Co-authored-by: nahyeon <55136494+nahyeon-an@users.noreply.github.com>
* gh-101100: Fix sphinx warnings in `Doc/library/__future__.rst` (#109814)Nikita Sobolev2023-09-252-27/+32
|
* GH-109190: Copyedit 3.12 What's New: Update the ``imp`` porting guidance ↵Adam Turner2023-09-251-2/+3
| | | | (#109755)
* GH-109190: Copyedit 3.12 What's New: Increase the prominence of the ↵Adam Turner2023-09-251-0/+7
| | | | setuptools removal (#109768)
* Sync whatsnew with the edit I made in the 3.12 backport PR. (#109807)Gregory P. Smith2023-09-241-1/+3
| | | | | | A post main merge edit to the text was added in the 3.12 backport PR. https://github.com/python/cpython/pull/109773/commits/e38d7104b8f245e5db6d487932c44edf0d2c4762 This includes that in main. It's a minor edit over #109767 to resolve the comment there.