summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-106368: Increase Argument Clinic test coverage (GH-106389) (#106390)Miss Islington (bot)2023-07-041-0/+24
| | | | | | | | | Add: - test_disallowed_gropuing__no_matching_bracket - test_double_slash (cherry picked from commit 3406f8cce542ea4edf4153c0fac5216df283a9b1) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-106368: Harden Argument Clinic parser tests (GH-106384) (#106387)Miss Islington (bot)2023-07-031-42/+68
| | | | | (cherry picked from commit 648688c137744a623a71dc2413d2879b80c99eae) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-106368: Clean up Argument Clinic tests (#106373) (#106379)Erlend E. Aasland2023-07-031-357/+441
| | | (cherry picked from commit 3ee8dac7a1b3882aa3aac7703bdae2de7b6402ad)
* [3.12] gh-106368: Increase Argument Clinic test coverage (GH-106369) (#106370)Miss Islington (bot)2023-07-031-0/+57
| | | | | | Add tests for 'self' and 'defining_class' converter requirements. (cherry picked from commit 7f4c8121db62a9f72f00f2d9f73381e82f289581) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-106359: Fix corner case bugs in Argument Clinic converter parser ↵Miss Islington (bot)2023-07-031-0/+16
| | | | | | | | | | | | (GH-106361) (#106364) gh-106359: Fix corner case bugs in Argument Clinic converter parser (GH-106361) DSLParser.parse_converter() could return unusable kwdicts in some rare cases (cherry picked from commit 0da4c883cf4185efe27b711c3e0a1e6e94397610) Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-102541: Fix Helper.help("mod") for non-existent mod (GH-105934) ↵Miss Islington (bot)2023-07-012-1/+12
| | | | | | | | | | | | | (#106322) gh-102541: Fix Helper.help("mod") for non-existent mod (GH-105934) If the output arg to Helper() is a stream rather than the default None, which means 'page to stdout', the ImportError from pydoc.resolve is currently not caught in pydoc.doc. The same error is caught when output is None. --------- (cherry picked from commit 0530f4f64629ff97f3feb7524da0833b9535e8b6) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-105486: Change the `repr` of `ParamSpec` list of args in ↵Miss Islington (bot)2023-07-012-0/+24
| | | | | | | | `GenericAlias` (GH-105488) (#106297) gh-105486: Change the `repr` of `ParamSpec` list of args in `GenericAlias` (GH-105488) (cherry picked from commit eb7d6e7ad844955f9af88707d296e003c7ce4394) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-106145: Make `end_{lineno,col_offset}` required on `type_param` ↵Miss Islington (bot)2023-07-011-1/+1
| | | | | | | | nodes (GH-106224) (#106295) gh-106145: Make `end_{lineno,col_offset}` required on `type_param` nodes (GH-106224) (cherry picked from commit 46c1097868745eeb47abbc8af8c34e8fcb80ff1d) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] GH-106152: Add PY_THROW event to cProfile (GH-106256)Miss Islington (bot)2023-06-291-0/+20
| | | | | | GH-106152: Add PY_THROW event to cProfile (GH-106161) (cherry picked from commit cea9d4ea82abcb2c6f1d83a2fe819859da4bbda4) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* [3.12] gh-106194: Rename duplicated tests in `test_curses` (GH-106196) (#106216)Miss Islington (bot)2023-06-281-4/+11
| | | | Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-106197: Deduplicate tests in `test_buffer` (GH-106198) (#106206)Miss Islington (bot)2023-06-281-1/+1
| | | | | | gh-106197: Deduplicate tests in `test_buffer` (GH-106198) (cherry picked from commit c283a0cff5603540f06d9017e484b3602cc62e7c) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] GH-106160: Fix test_gzip failing under WASI, which does not have ↵Miss Islington (bot)2023-06-281-1/+1
| | | | | | | | | | | | zlib. (GH-106167) (#106170) GH-106160: Fix test_gzip failing under WASI, which does not have zlib. (GH-106167) Fix test_gzip's failure under WASI, which does not have zlib, by using test.support.import_helper.import_module to import zlib. (gzip unconditionally imports zlib, so this does not cause any new skips.) (cherry picked from commit 161012fc25910a47423bae8012398bf519a88140) Co-authored-by: T. Wouters <thomas@python.org>
* [3.12] gh-101634: regrtest reports decoding error as failed test (GH-106169) ↵Miss Islington (bot)2023-06-282-1/+47
| | | | | | | | | | | | (#106174) gh-101634: regrtest reports decoding error as failed test (GH-106169) When running the Python test suite with -jN option, if a worker stdout cannot be decoded from the locale encoding report a failed testn so the exitcode is non-zero. (cherry picked from commit 2ac3eec103cf450aaaebeb932e51155d2e7fb37b) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] IDLE: Condense run.main threading.Thread start. (GH-106125) (#106154)Miss Islington (bot)2023-06-271-5/+6
| | | | | | | | | IDLE: Condense run.main threading.Thread start. (GH-106125) Use daemon argument added in 3.3 and directly call .start. Remove now unused 'sockthread' name. (cherry picked from commit eaa1eae55ea66d74c5303924320185dac74d4eb1) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-84976: Add back UTC to datetime.__all__ (GH-104920) (#106019)Miss Islington (bot)2023-06-271-1/+1
| | | | Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.12] Revert "GH-96145: Add AttrDict to JSON module for use with ↵Miss Islington (bot)2023-06-263-197/+1
| | | | | | | | | | object_hook (GH-96146)" (GH-105948) (#106117) Revert "GH-96145: Add AttrDict to JSON module for use with object_hook (GH-96146)" (GH-105948) This reverts commit 1f0eafa844bf5a380603d55e8d4b42d8c2a3439d. (cherry picked from commit d3af83b9342457d8b24476baeb799f7506ff04f3) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.12] Update test.support.interpreters to include missing RunFailedError ↵Miss Islington (bot)2023-06-261-1/+1
| | | | | | | | import (GH-103841) (#106110) (cherry picked from commit 1a2bc94fc2bbdf5f810b441ebbbd8fec95a3207c) Co-authored-by: Bruce Eckel <BruceTEckel@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-106075: add `asyncio.taskgroups.__all__` to `asyncio.__all__` ↵Miss Islington (bot)2023-06-262-1/+2
| | | | | | | | | (GH-106090) (#106098) gh-106075: add `asyncio.taskgroups.__all__` to `asyncio.__all__` (GH-106090) (cherry picked from commit a12e8ffb49e05a1d1874389318911ce9685db232) Co-authored-by: James Webber <jamestwebber@users.noreply.github.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* [3.12] gh-105987: Fix reference counting issue in `_asyncio._swap_cur… ↵Kumar Aditya2023-06-261-1/+18
| | | | | | | | (#106099) [3.12] gh-105987: Fix reference counting issue in `_asyncio._swap_current_task` (GH-105989). (cherry picked from commit d2cbb6e918d9ea39f0dd44acb53270f2dac07454) Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com>
* [3.12] gh-105979: Fix exception handling in `unmarshal_frozen_code` ↵Miss Islington (bot)2023-06-261-0/+8
| | | | | | | | (`Python/import.c`) (GH-105980) (#106055) gh-105979: Fix exception handling in `unmarshal_frozen_code` (`Python/import.c`) (GH-105980) (cherry picked from commit cd5280367a3a7065d13b8f7234474f7a2e9a18fd) Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com>
* [3.12] gh-105974: Revert unintentional behaviour change for protocols with ↵Miss Islington (bot)2023-06-232-32/+73
| | | | | | | | non-callable members and custom `__subclasshook__` methods (GH-105976) (#106032) gh-105974: Revert unintentional behaviour change for protocols with non-callable members and custom `__subclasshook__` methods (GH-105976) (cherry picked from commit 9499b0f138cc53b9a2590350d0b545d2f69ee126) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-98931: Add custom error messages to invalid import/from with ↵Miss Islington (bot)2023-06-221-0/+16
| | | | | | | multiple targets (GH-105985) (#105991) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-105915: Fix SyntaxWarning becoming a SyntaxError with -We in ↵Miss Islington (bot)2023-06-201-3/+3
| | | | | | | test_fstring (GH-105943) (#105945) (cherry picked from commit 6e40ee6e8456da04d6970a46863300c043c81208) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* Merge branch '3.12' of https://github.com/python/cpython into 3.12Thomas Wouters2023-06-202-3/+18
|\
| * [3.12] gh-105915: Add 'r' prefix to not emit SyntaxWarning in test_fstring ↵Miss Islington (bot)2023-06-201-1/+1
| | | | | | | | | | | | | | | | (GH-105940) (#105942) (cherry picked from commit 4b431d2e90bf5760a57aa40af2dd78e7bbf0b1ae) Co-authored-by: @sunmy2019 Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
| * [3.12] gh-105938: Emit a SyntaxWarning for escaped braces in an f-string ↵Miss Islington (bot)2023-06-201-2/+9
| | | | | | | | | | | | | | (GH-105939) (#105941) (cherry picked from commit 6586cee27f32f0354fe4e77c7b8c6e399329b5e2) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
| * [3.12] gh-105908: fix `barry_as_FLUFL` future import (GH-105909) (#105930)Miss Islington (bot)2023-06-201-0/+8
| | | | | | | | | | (cherry picked from commit 28187a9c4f95affe50fd37e0db0db177e2b9c2e9) Co-authored-by: Crowthebird <78076854+thatbirdguythatuknownot@users.noreply.github.com>
* | Python 3.12.0b3v3.12.0b3Thomas Wouters2023-06-191-17/+21
|/
* [3.12] GH-105808: Fix a regression introduced in GH-101251 (GH-105910) (#105920)Miss Islington (bot)2023-06-192-1/+51
| | | | | | | | | GH-105808: Fix a regression introduced in GH-101251 (GH-105910) Fix a regression introduced in pythonGH-101251, causing GzipFile.flush() to not flush the compressor (nor pass along the zip_mode argument). (cherry picked from commit 1858db7cbdbf41aa600c954c15224307bf81a258) Co-authored-by: T. Wouters <thomas@python.org>
* [3.12] GH-105840: Fix assertion failures when specializing calls with too ↵Miss Islington (bot)2023-06-161-0/+29
| | | | | | | | many __defaults__ (GH-105863) GH-105840: Fix assertion failures when specializing calls with too many __defaults__ (GH-105847) (cherry picked from commit 2beab5bdef5fa2a00a59371e6137f769586b7404) Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
* [3.12] gh-104799: PEP 695 backward compatibility for ast.unparse (GH-105846) ↵Miss Islington (bot)2023-06-162-3/+77
| | | | | | | (#105862) (cherry picked from commit 957a974d4fc1575787e4a29a399a47520d6df6d3) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-105834: Add tests for calling `issubclass()` between two protocols ↵Miss Islington (bot)2023-06-161-0/+74
| | | | | | | | (GH-105835) (#105859) Some parts of the implementation of `typing.Protocol` had poor test coverage (cherry picked from commit 70c075c194d3739ae10ce76265f05fa82ed46487) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-105433: Add `pickle` tests for PEP695 (GH-105443) (#105845)Miss Islington (bot)2023-06-162-4/+131
| | | | | (cherry picked from commit 1af8251d9ec2f18e131c19ccf776fb9ec132c7a8) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] GH-105588: Add missing error checks to some obj2ast_* converters ↵Miss Islington (bot)2023-06-151-0/+27
| | | | | | | | (GH-105838) GH-105588: Add missing error checks to some obj2ast_* converters (GH-105589) (cherry picked from commit a4056c8f9c2d9970d39e3cb6bffb255cd4b8a42c) Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
* [3.12] gh-105820: Fix tok_mode expression buffer in file & readline ↵Miss Islington (bot)2023-06-152-1/+27
| | | | | | | tokenizer (GH-105828) (#105832) (cherry picked from commit d382ad49157b3802fc5619f68d96810def517869) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* [3.12] gh-102541: Hide traceback in help prompt (gh-102614) (gh-105778)Miss Islington (bot)2023-06-151-8/+13
| | | | | | gh-102541: Hide traceback in help prompt (gh-102614) (cherry picked from commit ba516e70c6d156dc59dede35b6fc3db0151780a5) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* [3.12] gh-105821: Use a raw f-string in test_httpservers.py (GH-105822) ↵Miss Islington (bot)2023-06-151-2/+2
| | | | | | | | | | (#105824) gh-105821: Use a raw f-string in test_httpservers.py (GH-105822) Use a raw f-string in test_httpservers.py (cherry picked from commit 09ce8c3b48f940eb8865330f029b8069854c3106) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.12] gh-105800: Issue SyntaxWarning in f-strings for invalid escape ↵Miss Islington (bot)2023-06-151-0/+3
| | | | | | sequences (GH-105801) (#105806) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.12] gh-105745: Fix open method of webbrowser.Konqueror (GH-105746) (#105777)Miss Islington (bot)2023-06-141-9/+0
| | | | | | gh-105745: Fix open method of webbrowser.Konqueror (GH-105746) (cherry picked from commit e5d45b7444733861153d6e8959c34323fd361322) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-104812: Run Pending Calls in any Thread (gh-104813) (gh-105752)Eric Snow2023-06-142-3/+409
| | | | For a while now, pending calls only run in the main thread (in the main interpreter). This PR changes things to allow any thread run a pending call, unless the pending call was explicitly added for the main thread to run. (cherry picked from commit 757b402)
* [3.12] gh-105436: Ignore unrelated errors when checking empty env ↵Miss Islington (bot)2023-06-131-3/+4
| | | | | | | | (GH-105742) (#105756) gh-105436: Ignore unrelated errors when checking empty env (GH-105742) (cherry picked from commit 4cefe3cf10f498c0927ae4fdba4880d5a64826e4) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.12] gh-102613: Bump recursion limit to fix running test_pathlib under ↵Miss Islington (bot)2023-06-131-1/+1
| | | | | | | | Coverage (GH-105744) (#105749) gh-102613: Bump recursion limit to fix running test_pathlib under Coverage (GH-105744) (cherry picked from commit 4e80082723b768df124f77d2b73b3ba6b584a735) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.12] gh-105603: Change the PyInterpreterConfig.own gil Field (gh-105620) ↵Miss Islington (bot)2023-06-132-2/+6
| | | | | | | | (gh-105731) We are changing it to be more flexible that a strict bool can be for possible future expanded used cases. (cherry picked from commit b97e14a806477af4225777d215ac38c0d9b845f0) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.12] gh-105718: Fix buffer allocation in tokenizer with readline ↵Miss Islington (bot)2023-06-131-0/+10
| | | | | | (GH-105728) (#105729) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* [3.12] gh-105084: Tests: Use setuptools+wheel from ↵Miro Hrončok2023-06-132-33/+64
| | | | | | | | | | sysconfig.get_config_var('WHEEL_PKG_DIR') if set (#105056) (#105424) Includes part of the changes from afa759fb800be416f69e3e9c9b3efe68006316f5, to make this apply. Co-Authored-By: Lysandros Nikolaou <lisandrosnik@gmail.com> (cherry picked from commit bd98b65e974b7a1e086a51e7b55131582f7a0491)
* [3.12] gh-105436: The environment block should end with two null wchar_t ↵Miss Islington (bot)2023-06-121-0/+7
| | | | | | | | values (GH-105495) (#105700) gh-105436: The environment block should end with two null wchar_t values (GH-105495) (cherry picked from commit 4f7d3b602d47d61137e82145f601dccfe6f6cd3c) Co-authored-by: Dora203 <66343334+sku2000@users.noreply.github.com>
* [3.12] gh-103968: PyType_FromMetaclass: Allow metaclasses with tp_new=NULL ↵Miss Islington (bot)2023-06-121-7/+36
| | | | | | | | (GH-105386) (GH-105697) gh-103968: PyType_FromMetaclass: Allow metaclasses with tp_new=NULL (GH-105386) (cherry picked from commit 2b90796be6959d5ef46b38c434a514fce25be971) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.12] Fix typo in configparser module docstring (GH-105652) (#105653)Miss Islington (bot)2023-06-111-1/+1
| | | | | | | | Fix typo in configparser module docstring (GH-105652) "zc.buildbot" -> "zc.buildout" (cherry picked from commit 845e593c4ec97dd9f73b50536c1e1e7ed10ceecd) Co-authored-by: litlighilit <97860435+litlighilit@users.noreply.github.com>
* [3.12] gh-105549: Tokenize separately NUMBER and NAME tokens and allow ↵Miss Islington (bot)2023-06-091-0/+33
| | | | | | 0-prefixed literals (GH-105555) (#105602) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.12] gh-105557: Remove duplicate sqlite3 test method (GH-105558) (#105561)Miss Islington (bot)2023-06-091-7/+2
| | | | | | | test_func_return_too_large_int() was defined twice. Keep only the redefined method, as that also checks the tracebacks. (cherry picked from commit b8fa7bda4f286503447dc12327b789bbfc836458) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>