summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [3.11] gh-109413: regrtest: add WorkerRunTests class (GH-112588) (#112594)Miss Islington (bot)2023-12-014-22/+28
| | | | | | gh-109413: regrtest: add WorkerRunTests class (GH-112588) (cherry picked from commit f8ff80f63536e96b004d29112452a8f1738fde37) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.11] gh-82565: Add tests for pickle and unpickle with bad files (GH-16606) ↵Miss Islington (bot)2023-12-011-0/+78
| | | | | | | (GH-112592) (cherry picked from commit 058444308abee79bb1b3358883adfa8c97bd043a) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* [3.11] gh-104231: Add more tests for str(), repr(), ascii(), and bytes() ↵Serhiy Storchaka2023-12-012-50/+121
| | | | | (GH-112551) (GH-112556) (cherry picked from commit 2223899adce858a09ebeaaf82111e6cda9b42415)
* [3.11] gh-66819: More IDLE htest updates (GH-112574) (#112576)Miss Islington (bot)2023-12-011-55/+52
| | | | | | Revise htest.py docstring and move 2 specs to alphabetical position. (cherry picked from commit e44f1940bd6d2ba4a3f8ac4585b3cf4f9cb93e49) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] IDLE: fix config_key htest (GH-112545) (#112547)Miss Islington (bot)2023-11-302-2/+2
| | | | | | Change 'Dialog' to 'Window' in two places to match the name of the config_key class being tested. (cherry picked from commit 81261fa67ff82b03c255733b0d1abbbb8a228187) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-112509: Fix keys being present in both required_keys and ↵Miss Islington (bot)2023-11-293-5/+63
| | | | | | | | optional_keys in TypedDict (GH-112512) (#112531) (cherry picked from commit 403886942376210662610627b01fea6acd77d331) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.11] gh-110930: Correct book title by Alan D. Moore (GH-112490) (#112524)Miss Islington (bot)2023-11-291-2/+2
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.11] gh-112431: Unconditionally call `hash -r` (GH-112432) (GH-112492)Miss Islington (bot)2023-11-281-10/+4
| | | | | | | | | | | | | | gh-112431: Unconditionally call `hash -r` (GH-112432) The `activate` script calls `hash -r` in two places to make sure the shell picks up the environment changes the script makes. Before that, it checks to see if the shell running the script is bash or zsh. `hash -r` is specified by POSIX and is not exclusive to bash and zsh. This guard prevents the script from calling `hash -r` in other `GH-!/bin/sh`-compatible shells like dash. (cherry picked from commit a194938f33a71e727e53490815bae874eece1460) Co-authored-by: James Morris <6653392+J-M0@users.noreply.github.com>
* [3.11] gh-112105: Make completer delims work on libedit (gh-112106) (gh-112488)Miss Islington (bot)2023-11-283-0/+37
| | | | | | gh-112105: Make completer delims work on libedit (gh-112106) (cherry picked from commit 2df26d83486b8f9ac6b7df2a9a4669508aa61983) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* [3.11] Docs: fix markup for `importlib.machinery.NamespaceLoader` ↵Miss Islington (bot)2023-11-281-1/+1
| | | | | | | | (GH-112479) (#112482) Docs: fix markup for `importlib.machinery.NamespaceLoader` (GH-112479) (cherry picked from commit 2e632fa07d13a58be62f59be4e656ad58b378f9b) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.11] Backport PR #112477: correct socket AF_PACKET docs (#112478)Gregory P. Smith2023-11-271-3/+2
| | | | | | | | Backport PR #112477: correct socket AF_PACKET docs Network byte order is not involved in the `int` on the Python side. That happens under the hood. Correctly use the term addresses instead of packets.
* [3.11] gh-68166: Tkinter: Add tests and examples for element_create() ↵Miss Islington (bot)2023-11-273-3/+203
| | | | | | | | | | | (GH-111453) (GH-111858) * Remove mention of "vsapi" element type from the documentation. * Add tests for element_create() and other ttk.Style methods. * Add examples for element_create() in the documentation. (cherry picked from commit 005d1e8fc81539c60c6b21ebba34de3edd5bb232) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.11] gh-112387: Fix error positions for decoded strings with backwards ↵Miss Islington (bot)2023-11-273-0/+10
| | | | | | | | | tokenize errors (GH-112409) (#112469) gh-112387: Fix error positions for decoded strings with backwards tokenize errors (GH-112409) (cherry picked from commit 45d648597b1146431bf3d91041e60d7f040e70bf) Signed-off-by: Pablo Galindo <pablogsal@gmail.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.11] gh-112388: Fix an error that was causing the parser to try to ↵Miss Islington (bot)2023-11-273-0/+7
| | | | | | | | | overwrite tokenizer errors (GH-112410) (#112467) gh-112388: Fix an error that was causing the parser to try to overwrite tokenizer errors (GH-112410) (cherry picked from commit 2c8b19174274c183eb652932871f60570123fe99) Signed-off-by: Pablo Galindo <pablogsal@gmail.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.11] bpo-41422: Visit the Pickler's and Unpickler's memo in tp_traverse ↵Serhiy Storchaka2023-11-272-0/+16
| | | | | | | (GH-21664) (GH-112465) (cherry picked from commit 967f2a3052c2d22e31564b428a9aa8cc63dc2a9f) Co-authored-by: kale-smoothie <34165060+kale-smoothie@users.noreply.github.com>
* [3.11] gh-112438: Fix support of format units with the "e" prefix in nested ↵Serhiy Storchaka2023-11-273-1/+30
| | | | | tuples in PyArg_Parse (gh-112439) (GH-112461) (cherry picked from commit 4eea1e82369fbf7a795d1956e7a8212a1b58009f)
* [3.11] gh-84443: SSLSocket.recv_into() now support buffer protocol with ↵Serhiy Storchaka2023-11-273-4/+32
| | | | | | | | | itemsize != 1 (GH-20310) (GH-112459) It is also no longer use __len__(). (cherry picked from commit 812360fddda86d7aff5823f529ab720f57ddc411) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* [3.11] GH-101100: Fix reference warnings for ``socket`` methods (GH-110114) ↵Miss Islington (bot)2023-11-273-17/+17
| | | | | | | (#112456) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.11] Docs: fix typo in doc for sqlite3.Cursor.execute (GH-112442) (#112445)Miss Islington (bot)2023-11-271-1/+1
| | | | | | Docs: fix typo in doc for sqlite3.Cursor.execute (GH-112442) (cherry picked from commit fb79e1ed4a985a487a02bb8585cc1bd2933dfa7c) Co-authored-by: Tom Levy <tomlevy93@gmail.com>
* [3.11] gh-101100: Fix Sphinx reference warnings (GH-112416) (#112422)Hugo van Kemenade2023-11-268-14/+20
|
* [3.11] gh-112331: Fix reference manual description of attribute lookup ↵Miss Islington (bot)2023-11-251-6/+12
| | | | mechanics (gh-112375) (gh-112413)
* [3.11] gh-101100 : Fix Sphinx warnings in `library/doctest.rst` (GH-112399) ↵Hugo van Kemenade2023-11-253-21/+29
| | | | | | (#112404) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.11] gh-94722: fix DocTest.__eq__ for case of no line number on one side ↵Miss Islington (bot)2023-11-253-2/+23
| | | | | | | | (GH-112385) (#112401) gh-94722: fix DocTest.__eq__ for case of no line number on one side (GH-112385) (cherry picked from commit fbb9027a037ff1bfaf3f596df033ca45743ee980) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.11] gh-101100: Define `_tkinter` module to fix references (GH-112382) ↵Miss Islington (bot)2023-11-251-0/+3
| | | | | | | | | | (#112393) gh-101100: Define `_tkinter` module to fix references (GH-112382) Define _tkinter module to fix references (cherry picked from commit 6b961b8ceaba372b78d03feaceb4837bf7236694) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.11] gh-101100: Define `test.regrtest` module to fix references ↵Miss Islington (bot)2023-11-251-0/+3
| | | | | | | | | | (GH-112381) (#112391) gh-101100: Define `test.regrtest` module to fix references (GH-112381) Define test.regrtest module to fix references (cherry picked from commit d525d01e2794e7e736527eaa7ee309ca1252f5bd) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.11] gh-59254: mention in open() doc that line buffering is for writing ↵Miss Islington (bot)2023-11-241-1/+1
| | | | | | | | (GH-112318) (#112379) gh-59254: mention in open() doc that line buffering is for writing (GH-112318) (cherry picked from commit fafae08cc7caa25f2bd6b29106b50ef76c3e296f) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.11] Remove bogus annotations from the descriptor howto guide (gh-112349) ↵Miss Islington (bot)2023-11-231-3/+3
| | | | (gh-112350)
* [3.11] Fix docstring and var name of itertools recipe (GH-112113) (#112311)Miss Islington (bot)2023-11-221-3/+3
| | | | | | | | | Fix docstring and var name of itertools recipe (GH-112113) `prepend()` works with arbitrary iterables, not only iterators. In fact, the example given uses a `list`, which is iterable, but not an iterator. (cherry picked from commit 6c47eaccfa2550c140a24bc6e520d968731d9689) Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
* [3.11] gh-110950: add upstream Tk fixes to macOS installer. (GH-111041) ↵Miss Islington (bot)2023-11-217-2/+206
| | | | | | | | | | | | | | | | | | | | | (#112293) Add upstream Tk patches for three problems affecting tkinter users: - Update macOS installer to include a fix accepted by upstream Tcl/Tk for a crash encountered after the first :meth:`tkinter.Tk` instance is destroyed. (gh-92603) - Update macOS installer to include an upstream Tcl/Tk fix for the ``ttk::ThemeChanged`` error encountered in Tkinter. (gh-71383) - Update macOS installer to include an upstream Tcl/Tk fix for the ``Secure coding is not enabled for restorable state!`` warning encountered in Tkinter on macOS 14 Sonoma. (gh-110950) (cherry picked from commit d67f947c72af8a215db2fd285e5de9b1e671fde1) Co-authored-by: Christopher Chavez <chrischavez@gmx.us> Co-authored-by: Ned Deily <nad@python.org>
* [3.11] gh-109538: Catch closed loop runtime error and issue warning ↵DPR2023-11-203-2/+62
| | | | | | | | | (GH-111983) (#112141) Issue a ResourceWarning instead. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> (cherry picked from commit e0f512797596282bff63260f8102592aad37cdf1)
* [3.11] gh-112266: Remove `(if defined)` part from `__dict__` and ↵Nikita Sobolev2023-11-203-18/+20
| | | | `__weakref__` docstrings (GH-112268) (#112276)
* [3.11] gh-73561: Omit interface scope from IPv6 when used as Host header ↵Miss Islington (bot)2023-11-193-2/+27
| | | | | | | | | | | | | | | | (GH-93324) (#112273) gh-73561: Omit interface scope from IPv6 when used as Host header (GH-93324) Omit the `@interface_scope` from an IPv6 address when used as Host header by `http.client`. --------- (cherry picked from commit ce1096f974d3158a92e050f9226700775b8db398) [Google LLC] Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
* [3.11] gh-110383: Explained which error message is generated when there is ↵Miss Islington (bot)2023-11-191-2/+1
| | | | | | | an unhandled exception (GH-111574) (#112265) Co-authored-by: Unique-Usman <86585626+Unique-Usman@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.11] gh-110383: Fix documentation profile cumtime fix (GH-112221) (#112263)Miss Islington (bot)2023-11-191-2/+2
| | | | | Co-authored-by: Alex Ptakhin <me@aptakhin.name> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.11] IDLE: Fix test_debugger bug and buildbot failures (GH-112258) (#112260)Miss Islington (bot)2023-11-191-5/+7
| | | | | | | | | | | | | IDLE: Fix test_debugger bug and buildbot failures (GH-112258) Missing "requires('gui')" causes Tk() to fail when no gui. This caused CI Hypothesis test to fail, but I did not understand the its error message. Then buildbots failed. IdbTest failed on draft Bdb replacement because so different. Simplified version works on old and new. (cherry picked from commit 14fd86a59d0d91fe72641efeb14a59d99127dec3) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-79871: IDLE - Fix and test debugger module (GH-11451) (#112257)Miss Islington (bot)2023-11-195-77/+400
| | | | | | | | | | | Add docstrings to the debugger module. Fix two bugs: initialize Idb.botframe (should be in Bdb); In Idb.in_rpc_code, check whether prev_frame is None before trying to use it. Make other code changes. Expand test_debugger coverage from 19% to 66%. --------- (cherry picked from commit adedcfa06b553242d8033f6d9bebbcb3bc0dbb4d) Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-112155: Run `typing.py` doctests during tests (GH-112156) (#112231)Nikita Sobolev2023-11-181-0/+6
|
* [3.11] gh-112194: Convert more examples to doctests in `typing.py` ↵Miss Islington (bot)2023-11-171-31/+43
| | | | | | | | | (GH-112195) (#112209) gh-112194: Convert more examples to doctests in `typing.py` (GH-112195) (cherry picked from commit 949b2cc6eae6ef4f3312dfd4e2650a138446fe77) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.11] gh-112165: Fix typo in `__main__.py` (GH-112183) (#112185)Miss Islington (bot)2023-11-171-1/+1
| | | | | | | | gh-112165: Fix typo in `__main__.py` (GH-112183) Change '[2]' to '[1]' to get second argument. (cherry picked from commit 8cd70eefc7f3363cfa0d43f34522c3072fa9e160) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-111811: Fix test_recursive_repr for WASI (GH-112130) (#112132)Miss Islington (bot)2023-11-161-0/+1
| | | | | | gh-111811: Fix test_recursive_repr for WASI (GH-112130) (cherry picked from commit 7218bac8c84115a8e9a18a4a8f3146235068facb) Co-authored-by: Kushal Das <mail@kushaldas.in>
* [3.11] gh-110812: Isolating Extension Modules HOWTO: List GC-related gotchas ↵Miss Islington (bot)2023-11-161-6/+97
| | | | | | | | | | (GH-111504) (GH-112147) gh-110812: Isolating Extension Modules HOWTO: List GC-related gotchas (GH-111504) (cherry picked from commit 985679f05d1b72965bfbed99d1499c22815375e4) Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.11] gh-102837: more tests for the math module (GH-111930)(GH-102523) ↵Petr Viktorin2023-11-161-0/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-112030) (GH-112041) [3.12] gh-102837: more tests for the math module (GH-111930)(GH-102523) (GH-112030) * gh-102837: improve test coverage for math module (GH-102523) (Only the test changes from GH-102523 are cherry-picked) - input checks for math_1(L989), math_1a(L1023), math_2(L1064,L1071), hypot(L2682), log(L2307), ldexp(L2168), ceil(L1165), floor(L1236,L1239) and dist(L2587,L2588,L2628). - improve fsum coverage for exceptional cases (L1433,L1438,L1451,L1497), ditto fmod(L2378) (all line numbers are wrt the main branch at 5e6661bce9) * gh-102837: more tests for the math module (GH-111930) Add tests to improve coverage: * fsum: L1369, L1379, L1383, L1412 * trunc: L2081 * log: L2267 * dist: L2577, L2579 * hypot: L2632 * (not cherry-picked for 3.11: sumprod) * pow: L2982 * prod: L3294, L3308, L3318-3330 // line numbers wrt to 9dc4fb8204 (cherry picked from commit c61de456db0186b65d479d41e84127832205d30d) --------- Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com> (cherry picked from commit c6aea46a71d158f993cc723c14b4bf7982b73a2a)
* [3.11] gh-111062: CI: Move OS test jobs to reusable workflows (gh-111570)Hugo van Kemenade2023-11-164-147/+184
| | | | | CI: Move OS test jobs to reusable workflows Co-authored-by: Donghee Na <donghee.na@python.org>
* [3.11] gh-111942: Fix crashes in TextIOWrapper.reconfigure() (GH-111976) ↵Miss Islington (bot)2023-11-154-6/+132
| | | | | | | | | | | | | (GH-112059) * Fix crash when encoding is not string or None. * Fix crash when both line_buffering and write_through raise exception when converted ti int. * Add a number of tests for constructor and reconfigure() method with invalid arguments. (cherry picked from commit ee06fffd38cb51ce1c045da9d8336d9ce13c318a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.11] Docs: Add the time to the HTML last updated format (GH-110091) (#112103)Miss Islington (bot)2023-11-151-3/+2
| | | | | | Docs: Add the time to the HTML last updated format (GH-110091) (cherry picked from commit 6c214dea7c503eb42bd130d43e8880f39bff0350) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.11] gh-110944: Move pty helper to test.support and add basic pdb ↵Miss Islington (bot)2023-11-143-54/+91
| | | | | | | | completion test (GH-111826) (GH-112025) gh-110944: Move pty helper to test.support and add basic pdb completion test (GH-111826) (cherry picked from commit 1c7ed7e9ebc53290c831d7b610219fa737153a1b) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* [3.11] gh-112007: Re-organize help utility intro message (GH-112017) (#112048)Miss Islington (bot)2023-11-131-11/+13
| | | | | | | | | | | gh-112007: Re-organize help utility intro message (GH-112017) Most important: move how-to-quit sentence to the end and mention 'q'. Re-group the other sentences and improve some wording. --------- (cherry picked from commit b28bb130bbc2ad956828819967d83e06d30a65c5) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-111681: minor fix to a typing doctest (#111682) (#112037)Alex Waygood2023-11-131-1/+1
|
* [3.11] Docs: Add `make htmllive` to rebuild and reload HTML files in your ↵Hugo van Kemenade2023-11-132-4/+32
| | | | | | browser (GH-111900) (#112023) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.11] gh-111944: Add assignment expression parentheses requirements ↵Miss Islington (bot)2023-11-131-4/+5
| | | | | | | | | | (GH-111977) (#112011) Augment the list of places where parentheses are required around assignnment statements. In particular, 'a := 0' and 'a = b := 1' are syntax errors. (cherry picked from commit 9a2f25d374f027f6509484d66e1c7bba03977b99) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>