summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] Update workflow permissions in require-pr-label Action (GH-109342) ↵Miss Islington (bot)2023-09-131-2/+2
| | | | | | | | | | (#109348) Update workflow permissions in require-pr-label Action (GH-109342) Change the permission from `read` to `write`. (cherry picked from commit 44c8699196c1951037bc549c895ea5af26c7254e) Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
* [3.12] GH-104395: Add a link in 'Meta Information' to the docs download page ↵Miss Islington (bot)2023-09-131-0/+1
| | | | | | | | | (GH-104443) (#109345) GH-104395: Add a link in 'Meta Information' to the docs download page (GH-104443) (cherry picked from commit 90cf345ed42ae4d17d2a073718985eb3432a7c20) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-109184: update traceback module doc w.r.t notes (message is no ↵Irit Katriel2023-09-131-19/+21
| | | | | | | longer always at the end) (#109201) (#109334) gh-109184: update traceback module doc w.r.t notes (message is no longer always at the end) (#109201) (cherry picked from commit 0e76cc359ba5d5e29d7c75355d7c1bc7e817eecf)
* [3.12] gh-109114: Relax the check for invalid lambdas inside f-strings to ↵Pablo Galindo Salgado2023-09-124-1125/+1073
| | | | | | | | avoid false positives (GH-109121). (#109155) (cherry picked from commit 5bda2f637e1cfbca45a83aa6e22db25498064b27) Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* [3.12] gh-109118: Disallow nested scopes within PEP 695 scopes within ↵Miss Islington (bot)2023-09-123-0/+118
| | | | | | | | | | | | classes (GH-109196) (#109297) gh-109118: Disallow nested scopes within PEP 695 scopes within classes (GH-109196) Fixes GH-109118. Fixes GH-109194. (cherry picked from commit b88d9e75f68f102aca45fa62e2b0e2e2ff46d810) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Carl Meyer <carl@oddbird.net>
* [3.12] Fix iter_index() to work with lists which do not support stop=None. ↵Miss Islington (bot)2023-09-121-0/+11
| | | | | | | | (gh-109306) (#109310) Fix iter_index() to work with lists which do not support stop=None. (gh-109306) (cherry picked from commit f2a55fecd063244a5fd09a38f673f0781f8802d1) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* [3.12] gh-109295: Fix test_os.test_access_denied() for TEMP=cwd (GH-109299) ↵Miss Islington (bot)2023-09-121-1/+1
| | | | | | | | | | | | (#109304) gh-109295: Fix test_os.test_access_denied() for TEMP=cwd (GH-109299) Fix test_os.test_access_denied() when the TEMP environment variable is equal to the current working directory. Run the test using a different filename, since self.fname already exists in this case. (cherry picked from commit 7dedfd36dc16d9e1e15d7d0b0a636dd401a5a543) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-109295: Clean up multiprocessing in test_asyncio and ↵Miss Islington (bot)2023-09-122-3/+10
| | | | | | | | | | | | test_compileall (GH-109298) (#109301) gh-109295: Clean up multiprocessing in test_asyncio and test_compileall (GH-109298) test_asyncio and test_compileall now clean up multiprocessing by calling multiprocessing _cleanup_tests(): explicitly clean up resources and stop background processes like the resource tracker. (cherry picked from commit 09ea4b8706165fd9474165090a0ba86509abd6c8) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-109292: add symtable impact of PEP 709 to What's New (GH-109293) ↵Miss Islington (bot)2023-09-121-0/+3
| | | | | | | | (#109296) gh-109292: add symtable impact of PEP 709 to What's New (GH-109293) (cherry picked from commit 2b1e2f1cd154e6df553eda7936715ea0622b4ecf) Co-authored-by: Carl Meyer <carl@oddbird.net>
* [3.12] gh-109195: fix source location for super load before LOAD_SUPER_ATTR ↵Miss Islington (bot)2023-09-123-1/+12
| | | | | | | | (GH-109289) (#109291) gh-109195: fix source location for super load before LOAD_SUPER_ATTR (GH-109289) (cherry picked from commit ceeb4173aee7b835f553a8286feaa48b98c16124) Co-authored-by: Carl Meyer <carl@oddbird.net>
* [3.12] gh-107322: zipapp: Remove the suggestion to remove .dist-info ↵Miss Islington (bot)2023-09-121-6/+1
| | | | | | | | | | directories (GH-107296) (#109281) gh-107322: zipapp: Remove the suggestion to remove .dist-info directories (GH-107296) Removed zipapp suggestion to rm .dist-info subdirectories. This totally breaks importlib.metadata (cherry picked from commit 1ee50e2a78f644d81d341a08562073ad169d8cc7) Co-authored-by: wim glenn <hey@wimglenn.com>
* [3.12] gh-90805: Make sure test_functools works with and without ↵Miss Islington (bot)2023-09-121-30/+28
| | | | | | | | _functoolsmodule (GH-108644) (#109275) gh-90805: Make sure test_functools works with and without _functoolsmodule (GH-108644) (cherry picked from commit baa6dc8e388e71b2a00347143ecefb2ad3a8e53b) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-109190: What's New in 3.12: Add subheadings to removals for easy ↵Miss Islington (bot)2023-09-121-52/+107
| | | | | | | | | linking (GH-109159) (#109273) gh-109190: What's New in 3.12: Add subheadings to removals for easy linking (GH-109159) (cherry picked from commit 57b6205523d934d61b6308d63ef72c494c7d2b7e) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] gh-109182: Fix and improve tests for gh-108654 (GH-109189) (#109271)Miss Islington (bot)2023-09-121-18/+28
| | | | | | gh-109182: Fix and improve tests for gh-108654 (GH-109189) (cherry picked from commit c0f488b88f2a54d76256818e2841d868fecfd396) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] GH-108976. Keep monitoring data structures valid during ↵Mark Shannon2023-09-124-55/+77
| | | | | de-optimization during callback. (GH-109131) (#109268) GH-108976. Keep monitoring data structures valid during de-optimization during callback. (GH-109131)
* [3.12] Test DocTestFinder directly instead of calling support.run_doctest() ↵Miss Islington (bot)2023-09-121-5/+3
| | | | | | | | (GH-108917) (#109259) Test DocTestFinder directly instead of calling support.run_doctest() (GH-108917) (cherry picked from commit 0abc935086931d4915ea3c45cffffecb31e7a45c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-109230: test_pyexpat no longer depends on the current directory ↵Miss Islington (bot)2023-09-122-24/+53
| | | | | | | | | | | | | | | (GH-109233) (#109241) gh-109230: test_pyexpat no longer depends on the current directory (GH-109233) Fix test_pyexpat.test_exception(): it can now be run from a directory different than Python source code directory. Before, the test failed in this case. Skip the test if Modules/pyexpat.c source is not available. Skip also the test on Python implementations other than CPython. (cherry picked from commit e55aab95786e0e9fb36a9a1122d2d0fb3d2403cd) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-109237: Fix test_site for non-ASCII working directory (GH-109238) ↵Miss Islington (bot)2023-09-122-2/+6
| | | | | | | | | | | | | (#109239) gh-109237: Fix test_site for non-ASCII working directory (GH-109238) Fix test_site.test_underpth_basic() when the working directory contains at least one non-ASCII character: encode the "._pth" file to UTF-8 and enable the UTF-8 Mode to use UTF-8 for the child process stdout. (cherry picked from commit cbb3a6f8ada3d133c3ab9f9465b65067fce5bb42) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] Fix "FSTRING_MIDDLE" typo in py312 "What's New" (GH-109222) (#109223)Miss Islington (bot)2023-09-121-1/+1
| | | | | | Fix "FSTRING_MIDDLE" typo in py312 "What's New" (GH-109222) (cherry picked from commit 2dd6a86c4ee604b331ed739c2508b0d0114993c6) Co-authored-by: Delgan <4193924+Delgan@users.noreply.github.com>
* [3.12] Improve the sieve() recipe in the itertools docs (gh-109199) (#109203)Miss Islington (bot)2023-09-121-4/+7
| | | | | | | | Improve the sieve() recipe in the itertools docs (gh-109199) Lazier sieve (cherry picked from commit d3ed9921cdd8ac291fbfe3adf42f7730d3a14dbc) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* [3.12] Fix an ironic typo in a code comment. (gh-109186) (#109188)Miss Islington (bot)2023-09-121-1/+1
| | | | | | Fix an ironic typo in a code comment. (gh-109186) (cherry picked from commit 75cd86599bad05cb372aed9fccc3ff884cd38b70) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* [3.12] gh-109118: Fix runtime crash when NameError happens in PEP 695 ↵Jelle Zijlstra2023-09-125-430/+501
| | | | | | | | | | | | function (GH-109123) (#109173) * gh-109118: Fix runtime crash when NameError happens in PEP 695 function (#109123) (cherry picked from commit 17f994174de9211b2baaff217eeb1033343230fc) * [3.12] gh-109118: Fix runtime crash when NameError happens in PEP 695 function (GH-109123). (cherry picked from commit 17f994174de9211b2baaff217eeb1033343230fc) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] GH-109067: fix randomly failing `test_async_gen_asyncio_gc_aclose_09` ↵Miss Islington (bot)2023-09-121-3/+5
| | | | | | | | | | test (GH-109142) (#109149) GH-109067: fix randomly failing `test_async_gen_asyncio_gc_aclose_09` test (GH-109142) Use `asyncio.sleep(0)` instead of short sleeps. (cherry picked from commit ccd48623d4860e730a16f3f252d67bfea8c1e905) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* [3.12] gh-109022: [Enum] require `names=()` to create empty enum type ↵Miss Islington (bot)2023-09-123-4/+14
| | | | | | | | | | | | | | (GH-109048) (#109122) gh-109022: [Enum] require `names=()` to create empty enum type (GH-109048) add guard so that ``Enum('bar')`` raises a TypeError instead of creating a new enum class called `bar`. To create the new but empty class, use: huh = Enum('bar', names=()) (cherry picked from commit c74e440168fab9bf91346471087a394af13fa2db) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* [3.12] gh-108732: include comprehension locals in frame.f_locals (GH-109026) ↵Miss Islington (bot)2023-09-123-4/+19
| | | | | | | | | | (#109097) gh-108732: include comprehension locals in frame.f_locals (GH-109026) (cherry picked from commit f2584eade378910b9ea18072bb1dab3dd58e23bb) Co-authored-by: Carl Meyer <carl@oddbird.net> Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-106922: Fix error location for constructs with spaces and ↵Miss Islington (bot)2023-09-084-3/+68
| | | | | | parentheses (GH-108959) (#109147) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.12] gh-103186: Suppress RuntimeWarning about unclosed async iterator in ↵Miss Islington (bot)2023-09-081-4/+28
| | | | | | | | test_sys_settrace (GH-109075) (#109138) gh-103186: Suppress RuntimeWarning about unclosed async iterator in test_sys_settrace (GH-109075) (cherry picked from commit d485551c9d1792ff3539eef1d6374bd4c01dcd5d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] Add version directives to ast docs (GH-108788) (#109106)Miss Islington (bot)2023-09-081-4/+42
| | | | | | Add version directives to ast docs (GH-108788) (cherry picked from commit 74fc96bc60f5c02bde50ff2f3516add99483e402) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.12] gh-68403: Fix test_coverage in test_trace (GH-108910) (#109104)Miss Islington (bot)2023-09-081-3/+8
| | | | | | | | gh-68403: Fix test_coverage in test_trace (GH-108910) Its behavior no longer affected by test running options such as -m. (cherry picked from commit 7e1a7abb9831965cdec477e62dbe4f8415b8a582) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-75743: Restore test_timeout.testConnectTimeout() (GH-109087) (#109103)Miss Islington (bot)2023-09-081-16/+10
| | | | | | | | | gh-75743: Restore test_timeout.testConnectTimeout() (GH-109087) This un-skips this test now that pythontest.net implements appropriate firewall rules for it. (cherry picked from commit 1829a3c9a3712b6a68a3a449e4a08787c73da51d) Co-authored-by: Ee Durbin <ewdurbin@gmail.com>
* [3.12] gh-107924: re-order os.sendfile() flag documentation (GH-107926) ↵Miss Islington (bot)2023-09-081-19/+20
| | | | | | | | | (#109099) gh-107924: re-order os.sendfile() flag documentation (GH-107926) (cherry picked from commit 403ab1306a6e9860197bce57eadcb83418966f21) Co-authored-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-102823: Document return type of floor division on floats ↵Miss Islington (bot)2023-09-082-3/+7
| | | | | | | | | (GH-102824) (#109092) gh-102823: Document return type of floor division on floats (GH-102824) (cherry picked from commit b72251de930c8ec6893f1b3f6fdf1640cc17dfed) Co-authored-by: Mark Dickinson <dickinsm@gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] socket documentation fix - rename triple to 3-tuple (GH-24722) (#109073)Miss Islington (bot)2023-09-081-2/+2
| | | | | | | socket documentation fix - rename triple to 3-tuple (GH-24722) (cherry picked from commit 6b15ff52351787644115a4dd9d5d6717d66b9806) Co-authored-by: Ori Hoch <ori@uumpa.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-71770: Add more details on behavior of configparser's ↵Miss Islington (bot)2023-09-081-2/+4
| | | | | | | | | default_section (GH-31562) (#109088) gh-71770: Add more details on behavior of configparser's default_section (GH-31562) (cherry picked from commit 891236f48263e2d4c650b7a127fc9bffb8327807) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-103186: Remove debug print in test_sys_settrace (GH-109077) (#109084)Miss Islington (bot)2023-09-081-1/+0
| | | | | | gh-103186: Remove debug print in test_sys_settrace (GH-109077) (cherry picked from commit e4bb0026b9a21d066e7a5c4716ea4d755b95d2d5) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] GH-90915: Document that SystemExit doesn't trigger sys.excepthook ↵Miss Islington (bot)2023-09-081-1/+1
| | | | | | | | | | (GH-31357) (#109082) GH-90915: Document that SystemExit doesn't trigger sys.excepthook (GH-31357) (cherry picked from commit 1294fcede09af6c781553b7a3a6ff612c7dfa431) Co-authored-by: Colin Watson <cjwatson@debian.org> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] bpo-38157: Add example about per file output for mock_open. ↵Miss Islington (bot)2023-09-081-0/+24
| | | | | | | | | | | (GH-16090) (#109071) bpo-38157: Add example about per file output for mock_open. (GH-16090) (cherry picked from commit e183a71eef1ec3ac86bb4d81a158c21d6f1a783b) Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com> Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-103186: Suppress and assert expected RuntimeWarnings in ↵Miss Islington (bot)2023-09-082-32/+43
| | | | | | | | | | test_sys_settrace (GH-103244) (#109066) gh-103186: Suppress and assert expected RuntimeWarnings in test_sys_settrace (GH-103244) Caused as a result of frame manipulation where locals are never assigned / initialised. (cherry picked from commit 3e53ac99038920550358c1ea0212c3907a8cb385) Co-authored-by: Ijtaba Hussain <ijtabahussain@live.com>
* [3.12] test.pythoninfo logs freedesktop_os_release() (GH-109057) (#109064)Miss Islington (bot)2023-09-081-1/+21
| | | | | | test.pythoninfo logs freedesktop_os_release() (GH-109057) (cherry picked from commit babdced23fc299b7607ac76abfdd7a81050f8359) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-108915: Removes extra backslashes in str.split docstring ↵Shantanu2023-09-082-5/+5
| | | | | | | | | | | | | | (GH-109044). (#109061) * [3.12] gh-108915: Removes extra backslashes in str.split docstring (GH-109044). (cherry picked from commit e7d5433f944a5725aa82595f9251abfc8a63d333) Co-authored-by: Daniel Weiss <134341009+justdan6@users.noreply.github.com> * re-clinic --------- Co-authored-by: Daniel Weiss <134341009+justdan6@users.noreply.github.com>
* [3.12] gh-108740: Fix "make regen-all" race condition (#108741) (#109019)Victor Stinner2023-09-084-10/+38
| | | | | | | | | | | | | | | | | | | | | gh-108740: Fix "make regen-all" race condition (#108741) Fix a race condition in "make regen-all". The deepfreeze.c source and files generated by Argument Clinic are now generated or updated before generating "global objects". Previously, some identifiers may miss depending on the order in which these files were generated. * "make regen-global-objects": Make sure that deepfreeze.c is generated and up to date, and always run "make clinic". * "make clinic" no longer runs generate_global_objects.py script. * "make regen-deepfreeze" now only updates deepfreeze.c (C file). It doesn't build deepfreeze.o (object) anymore. * Remove misleading messages in "make regen-global-objects" and "make clinic". They are now outdated, these commands are now safe to use. * Document generates files in Doc/using/configure.rst. Co-authored-by: Erlend E. Aasland <erlend@python.org> (cherry picked from commit db1ee6a19ab62191c16ecb732cb4dcaede98a902)
* [3.12] gh-108851: Fix tomllib recursion tests (GH-108853) (#109012)Miss Islington (bot)2023-09-087-41/+177
| | | | | | | | | | | | | | | | gh-108851: Fix tomllib recursion tests (GH-108853) * Add get_recursion_available() and get_recursion_depth() functions to the test.support module. * Change infinite_recursion() default max_depth from 75 to 100. * Fix test_tomllib recursion tests for WASI buildbots: reduce the recursion limit and compute the maximum nested array/dict depending on the current available recursion limit. * test.pythoninfo logs sys.getrecursionlimit(). * Enhance test_sys tests on sys.getrecursionlimit() and sys.setrecursionlimit(). (cherry picked from commit 8ff11425783806f8cb78e99f667546b1f7f3428e) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-89392: Use unittest test runner for doctests in test_getopt ↵Miss Islington (bot)2023-09-081-35/+36
| | | | | | | | (GH-108916) (#108919) gh-89392: Use unittest test runner for doctests in test_getopt (GH-108916) (cherry picked from commit f980cc19b9cafc09ef21e906871f810a1c89e62f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-89392: Use normal unittest runner in test_type_cache (GH-108911) ↵Miss Islington (bot)2023-09-081-1/+1
| | | | | | | | (#108913) gh-89392: Use normal unittest runner in test_type_cache (GH-108911) (cherry picked from commit eaabaac7c099884f92428a7bb04ffa1f1d6080dd) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-91960: Skip test_gdb if gdb cannot retrive Python frames ↵Miss Islington (bot)2023-09-082-4/+10
| | | | | | | | | | | | | | | | | (GH-108999) (#109010) gh-91960: Skip test_gdb if gdb cannot retrive Python frames (GH-108999) Skip test_gdb if gdb is unable to retrieve Python frame objects: if a frame is "<optimized out>". When Python is built with "clang -Og", gdb can fail to retrive the 'frame' parameter of _PyEval_EvalFrameDefault(). In this case, tests like py_bt() are likely to fail. Without getting access to Python frames, python-gdb.py is mostly clueless on retrieving the Python traceback. Moreover, test_gdb is no longer skipped on macOS if Python is built with Clang. (cherry picked from commit fbce43a251488f666be9794c908a6613bf8ae260) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-108983: Add more PEP 526 tests to `test_grammar` (GH-108984) (#109000)Miss Islington (bot)2023-09-081-0/+11
| | | | | | gh-108983: Add more PEP 526 tests to `test_grammar` (GH-108984) (cherry picked from commit 1fb20d42c58924e2e941622b3539645c7b843e0e) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-108962: Skip test_tempfile.test_flags() if not supported ↵Miss Islington (bot)2023-09-082-1/+20
| | | | | | | | | | | (GH-108964) (#108967) gh-108962: Skip test_tempfile.test_flags() if not supported (GH-108964) Skip test_tempfile.test_flags() if chflags() fails with "OSError: [Errno 45] Operation not supported" (ex: on FreeBSD 13). (cherry picked from commit cd2ef21b076b494224985e266c5f5f8b37c66618) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-108834: Sync libregrtest with the main branch (#108966)Victor Stinner2023-09-0829-499/+892
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gh-108834: regrtest reruns failed tests in subprocesses (#108839) When using --rerun option, regrtest now re-runs failed tests in verbose mode in fresh worker processes to have more deterministic behavior. So it can write its final report even if a test killed a worker progress. Add --fail-rerun option to regrtest: exit with non-zero exit code if a test failed pass passed when re-run in verbose mode (in a fresh process). That's now more useful since tests can pass when re-run in a fresh worker progress, whereas they failed when run after other tests when tests are run sequentially. Rename --verbose2 option (-w) to --rerun. Keep --verbose2 as a deprecated alias. Changes: * Fix and enhance statistics in regrtest summary. Add "(filtered)" when --match and/or --ignore options are used. * Add RunTests class. * Add TestResult.get_rerun_match_tests() method * Rewrite code to serialize/deserialize worker arguments as JSON using a new WorkerJob class. * Fix stats when a test is run with --forever --rerun. * If failed test names cannot be parsed, log a warning and don't filter tests. * test_regrtest.test_rerun_success() now uses a marker file, since the test is re-run in a separated process. * Add tests on normalize_test_name() function. * Add test_success() and test_skip() tests to test_regrtest. (cherry picked from commit 31c2945f143c6b80c837fcf09a5cfb85fea9ea4c) * gh-108834: regrtest --fail-rerun exits with code 5 (#108896) When the --fail-rerun option is used and a test fails and then pass, regrtest now uses exit code 5 ("rerun) instead of 2 ("bad test"). (cherry picked from commit 1170d5a292b46f754cd29c245a040f1602f70301) * gh-108416: Mark slow but not CPU bound test methods with requires_resource('walltime') (GH-108480) (cherry picked from commit 1e0d62793a84001e92f1c80b511d3a212b435acc) * Manually sync Lib/test/libregrtest/ from main --------- Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-107755: Document the correct default value of slice step ↵Miss Islington (bot)2023-09-081-1/+1
| | | | | | | | | | (GH-107756) (#108955) gh-107755: Document the correct default value of slice step (GH-107756) Document the correct default value of slice step. (cherry picked from commit 9bf350b0662fcf1a8b43b9293e6c8ecf3c711561) Co-authored-by: wim glenn <hey@wimglenn.com>
* [3.12] gh-107732: Mention dir support in importlib.resources docs ↵Hugo van Kemenade2023-09-082-5/+14
| | | | | | | | | | | (GH-107734) (#109058) gh-107732: Mention dir support in importlib.resources docs (#107734) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> (cherry picked from commit 9f0c0a46f00d687e921990ee83894b2f4ce8a6e7) Co-authored-by: Shahriar Heidrich <smheidrich@weltenfunktion.de>