summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* gh-109653: Avoid a top-level import of `types` in `functools` (#109804)Alex Waygood2023-09-242-1/+4
|
* GH-109190: Copyedit 3.12 What's New: Use the ``:file:`` role (#109756)Adam Turner2023-09-241-11/+11
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-109653: Remove unused imports in the `Lib/` directory (#109803)Alex Waygood2023-09-2420-25/+6
|
* gh-101100: Fix sphinx warnings in `Doc/library/xml.etree.elementtree.rst` ↵Nikita Sobolev2023-09-242-2/+6
| | | | | (#109799) gh-101100: Fix shpinx warnings in `Doc/library/xml.etree.elementtree.rst`
* gh-109653: Improve `enum` import time by avoiding import of `functools` ↵Alex Waygood2023-09-232-3/+3
| | | | (GH-109789)
* gh-109653: `typing.py`: improve import time by creating soft-deprecated ↵Alex Waygood2023-09-233-8/+24
| | | | | members on demand (#109651) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* gh-109521: Fix obscure cases handling in PyImport_GetImporter() (GH-109522)Serhiy Storchaka2023-09-232-5/+26
| | | | | | | | PyImport_GetImporter() now sets RuntimeError if it fails to get sys.path_hooks or sys.path_importer_cache or they are not list and dict correspondingly. Previously it could return NULL without setting error in obscure cases, crash or raise SystemError if these attributes have wrong type.
* gh-109611: Add convenient C API function _PyFile_Flush() (GH-109612)Serhiy Storchaka2023-09-2311-97/+54
|
* gh-109634: Use :samp: role (GH-109635)Serhiy Storchaka2023-09-2330-95/+99
|
* gh-100228: Document the os.fork threads DeprecationWarning. (#109767)Gregory P. Smith2023-09-234-4/+58
| | | | | | | | Document the `os.fork` posix threads detected `DeprecationWarning` in 3.12 What's New, os, multiprocessing, and concurrent.futures docs. Many reviews and doc cleanup edits by Adam & Hugo. 🥳 Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-109505: Remove unnecessary `hasattr` checks from `test_asyncio` (#109506)Nikita Sobolev2023-09-232-7/+3
|
* GH-95913: Add the release date for Python 3.11 (#109750)Adam Turner2023-09-232-2/+1
|
* Fix indentation in 3.13 What's New (#109769)Jelle Zijlstra2023-09-231-4/+6
| | | | | The previous layout made it look like the other three deprecations are part of the first one, when in fact they are independent. The new layout is consistent with that used for sqlite3 in 3.12 (https://docs.python.org/3.13/whatsnew/3.12.html#deprecated).
* gh-109706: Fix multiprocessing test_nested_startmethod() (#109707)Victor Stinner2023-09-221-1/+3
| | | Don't check order, queue items can be written in any order.
* GH-107265: Add missing deoptimizations for ENTER_EXECUTOR's original opcode ↵Tian Gao2023-09-223-2/+3
| | | | (GH-109420)