summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.11] [3.12] gh-83162: Rename re.error in idlelib (GH-101677) (GH-112987) ↵Miss Islington (bot)2023-12-122-2/+4
| | | | | | | | (#113013) Backport idlelib part of GH-101677 with simple rename. (cherry picked from commit fd3b8947256309ba478a4e3ba8c0c81b1260b67f) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-112953: Rename idlelib/NEWS.txt to News3.txt and update (GH… ↵Terry Jan Reedy2023-12-123-4/+9
| | | | (#112992)
* [3.11] gh-108303: Move `double_const` to `test_import` where it belongs ↵Miss Islington (bot)2023-12-112-3/+6
| | | | | | | | (GH-112108) (#112977) gh-108303: Move `double_const` to `test_import` where it belongs (GH-112108) (cherry picked from commit 0738b9a338fd27ff2d4456dd9c15801a8858ffd9) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.11] gh-94606: Fix error when message with Unicode surrogate not ↵Miss Islington (bot)2023-12-113-16/+46
| | | | | | | | surrogateescaped string (GH-94641) (GH-112972) (cherry picked from commit 27a5fd8cb8c88537216d7a498eba9d9177951d76) Co-authored-by: Sidney Markowitz <sidney@sidney.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.11] gh-112898: warn about unsaved files when quitting IDLE on macOS ↵Miss Islington (bot)2023-12-111-1/+1
| | | | | | | | | | | | | | | | | | (GH-112939) (#112961) gh-112898: warn about unsaved files when quitting IDLE on macOS (GH-112939) * gh-112898: warn about unsaved files when quitting IDLE on macOS Implement the TK function ``::tk::mac::Quit`` on macOS to ensure that IDLE asks about saving unsaved files when quitting IDLE. (cherry picked from commit 3251ba8f1af535bf28e31a6832511ba19e96b262) Co-authored-by: Christopher Chavez chrischavez@gmx.us Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* [3.11] Fix SyntaxWarning in test_syntax.py (GH-112944) (GH-112956)Miss Islington (bot)2023-12-111-1/+1
| | | | | (cherry picked from commit 97cd45bfdbb6525457ba9d6824386f1e0eea6657) Co-authored-by: Anthony Sottile <asottile@umich.edu>
* [3.11] gh-109980: Fix test_tarfile_vs_tar on macOS (GH-112905) (#112928)Miss Islington (bot)2023-12-101-0/+11
| | | | | | | | | | | | gh-109980: Fix test_tarfile_vs_tar on macOS (GH-112905) On recentish macOS versions the system tar command includes system metadata (ACLs, extended attributes and resource forks) in the tar archive, which shutil.make_archive will not do. This can cause spurious test failures. (cherry picked from commit dd2ebdf89ff144e89db180bd552c50615f712cb2) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* [3.11] IDLE: Tweak iomenu.IOBinding.maybesave (GH-112914) (#112918)Miss Islington (bot)2023-12-101-10/+11
| | | | | | Add docstring, use f-string, simplify code. (cherry picked from commit ca1bde894305a1b88fdbb191426547f35b7e9200) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-79429: Ignore FileNotFoundError when remove a temporary directory ↵Miss Islington (bot)2023-12-091-1/+4
| | | | | | | in the multiprocessing finalizer (GH-112865) (GH-112897) (cherry picked from commit 7e82c626c44a6924af38d0a8af3cc8b2d13873ec) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.11] gh-110190: Temporarily skip new test introduced in gh-112604 on ↵Łukasz Langa2023-12-081-45/+52
| | | | | PPC64LE (GH-112818) (#112830) (cherry picked from commit 9f67042f28bf886a9bf30fed6795d26cff255f1e)
* [3.11] gh-110017: Disable test_signal.test_stress_modifying_handlers on ↵Miss Islington (bot)2023-12-081-0/+1
| | | | | | | | | | | | macOS (GH-112834) (#112852) gh-110017: Disable test_signal.test_stress_modifying_handlers on macOS (GH-112834) Test test_stress_modifying_handlers in test_signal can crash the interpreter due to a bug in macOS. Filed as FB13453490 with Apple. (cherry picked from commit bf0beae6a05f3266606a21e22a4d803abbb8d731) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* [3.11] gh-79325: Fix recursion error in TemporaryDirectory cleanup on ↵Serhiy Storchaka2023-12-072-2/+19
| | | | | Windows (GH-112762) (GH-112848) (cherry picked from commit b2923a61a10dc2717f4662b590cc9f6d181c6983)
* [3.11] gh-91133: tempfile.TemporaryDirectory: fix symlink bug in cleanup ↵Serhiy Storchaka2023-12-072-15/+123
| | | | | | | (GH-99930) (GH-112839) (cherry picked from commit 81c16cd94ec38d61aa478b9a452436dc3b1b524d) Co-authored-by: Søren Løvborg <sorenl@unity3d.com>
* [3.11] gh-109981: Fix support.fd_count() on macOS 14 (GH-112797) (#112825)Miss Islington (bot)2023-12-071-2/+9
| | | | | | | | | | | | gh-109981: Fix support.fd_count() on macOS 14 (GH-112797) Use scanning "/dev/fd/" on macOS in support.fd_count(). That's both more efficient than scanning all possible file descriptors, and avoids crashing the interpreter when there are open "guarded" file descriptors. "Guarded" file descriptors are a macOS feature where file descriptors used by system libraries are marked and cause hard crashes when used by "user" code. (cherry picked from commit 953ee622b3901d3467e65e3484dcfa75ba6fcddf) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.11] gh-110190: Fix ctypes structs with array on Arm (#112604) (#112766)Diego Russo2023-12-061-2/+125
| | | | | | | | | Set MAX_STRUCT_SIZE to 32 in stgdict.c when on Arm platforms. This because on Arm platforms structs with at most 4 elements of any floating point type values can be passed through registers. If the type is double the maximum size of the struct is 32 bytes. On x86-64 Linux, it's maximum 16 bytes hence we need to differentiate. (cherry picked from commit bc68f4a4abcfbea60bb1db1ccadb07613561931c)
* [3.11] gh-75666: Tkinter: "unbind(sequence, funcid)" now only unbinds ↵Miss Islington (bot)2023-12-062-11/+45
| | | | | | | | | | | | | | | | "funcid" (GH-111322) (GH-112801) Previously, "widget.unbind(sequence, funcid)" destroyed the current binding for "sequence", leaving "sequence" unbound, and deleted the "funcid" command. Now it removes only "funcid" from the binding for "sequence", keeping other commands, and deletes the "funcid" command. It leaves "sequence" unbound only if "funcid" was the last bound command. (cherry picked from commit cc7e45cc572dd818412a649970fdee579417701f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: GiovanniL <13402461+GiovaLomba@users.noreply.github.com>
* [3.11] gh-112769: test_zlib: Fix comparison of ZLIB_RUNTIME_VERSION with ↵Miss Islington (bot)2023-12-051-12/+17
| | | | | | | | non-int suffix (GH-112771) (GH-112774) zlib-ng defines the version as "1.3.0.zlib-ng". (cherry picked from commit d384813ff18b33280a90b6d2011654528a2b6ad1) Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* [3.11] bpo-35332: Handle os.close() errors in shutil.rmtree() (GH-23766) ↵Miss Islington (bot)2023-12-052-2/+53
| | | | | | | | | | | | (GH-112764) * Ignore os.close() errors when ignore_errors is True. * Pass os.close() errors to the error handler if specified. * os.close no longer retried after error. (cherry picked from commit 11d88a178b077e42025da538b890db3151a47070) Co-authored-by: Zackery Spytz <zspytz@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.11] bpo-43153: Don't mask `PermissionError` with `NotADirectoryError` ↵Miss Islington (bot)2023-12-052-2/+37
| | | | | | | | | during tempdirectory cleanup (GH-29940) (GH-112754) (cherry picked from commit 8cdfee1bb902fd1e38d79170b751ef13a0907262) Co-authored-by: Ken Jin <kenjin@python.org> Co-authored-by: andrei kulakov <andrei.avk@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Python 3.11.7v3.11.7Pablo Galindo2023-12-041-117/+112
|
* [3.11] gh-108927: Fix removing testing modules from sys.modules (GH-108952) ↵Miss Islington (bot)2023-12-047-9/+63
| | | | | | | | | (ПР-112712) It breaks import machinery if the test module has submodules used in other tests. (cherry picked from commit e08b70fab1fbc45fa498020aac522ae1d5da6136) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.11] gh-109786: Fix leaks and crash when re-enter ↵Miss Islington (bot)2023-12-041-0/+72
| | | | | | | itertools.pairwise.__next__() (GH-109788) (GH-112700) (cherry picked from commit 6ca9d3e0173c38e2eac50367b187d4c1d43f9892) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.11] gh-112625: Protect bytearray from being freed by misbehaving iterator ↵Miss Islington (bot)2023-12-041-0/+17
| | | | | | | inside bytearray.join (GH-112626) (GH-112694) (cherry picked from commit 0e732d0997cff08855d98c17af4dd5527f10e419) Co-authored-by: chilaxan <chilaxan@gmail.com>
* [3.11] gh-66819: More IDLE htest updates(4) (GH-112686) (#112689)Miss Islington (bot)2023-12-0425-34/+62
| | | | | | Mostly double spacing before 'if __name__...'. (cherry picked from commit e5b0db0315941b968ebcc2414bfcdd2da44fd3c2) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-66819: More IDLE htest updates(3) (GH-112683) (#112685)Miss Islington (bot)2023-12-046-26/+27
| | | | | | Revise spec-callable pairs from percolator to end. (cherry picked from commit 5a1b5316af648ae79bb91f28253b6272bbbd2886) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-66819: More IDLE htest updates(2) (GH-112642) (#112644)Miss Islington (bot)2023-12-039-69/+70
| | | | | | | Examine and update spec -- callable pairs. Revise run method. (cherry picked from commit 3855b45874d5f8eb92a4957fb9de6fdce63eb760) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] [3.12] gh-112618: Make Annotated cache typed (GH-112619) (GH-112628) ↵Miss Islington (bot)2023-12-032-2/+41
| | | | | | | | (#112633) [3.12] gh-112618: Make Annotated cache typed (GH-112619) (GH-112628) (cherry picked from commit 2a378ca2efcb91db4b04fb4e052424fd610ffbc9) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.11] [3.12] gh-109413: libregrtest: Backport `.py`-file changes from ↵Miss Islington (bot)2023-12-017-12/+18
| | | | | | | | GH-112558 (GH-112605) (#112607) [3.12] gh-109413: libregrtest: Backport `.py`-file changes from GH-112558 (GH-112605) (cherry picked from commit acc62db8af4e472a4922c10b91c60c36c49a5f79) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.11] [3.12] gh-109413: libregrtest: enable mypy's `--strict-optional` ↵Miss Islington (bot)2023-12-014-4/+48
| | | | | | | | | | | | check on most files (GH-112586) (GH-112602) (#112603) [3.12] gh-109413: libregrtest: enable mypy's `--strict-optional` check on most files (GH-112586) (GH-112602) gh-109413: libregrtest: enable mypy's `--strict-optional` check on most files (GH-112586) (cherry picked from commit 36dbebed44785579034ffb1a59f0a1a5b987c9bf) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.11] bpo-35191: Fix unexpected integer truncation in socket.setblocking() ↵Alexey Izbyshev2023-12-011-2/+2
| | | | | | | | | (GH-10415) On platforms with 64-bit long, socket.setblocking(x) treated all x which lower 32 bits are zero as False due to integer truncation. Reported by ubsan.
* [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-292-5/+60
| | | | | | | | 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-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-281-0/+20
| | | | | | 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] gh-68166: Tkinter: Add tests and examples for element_create() ↵Miss Islington (bot)2023-11-271-1/+183
| | | | | | | | | | | (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-271-0/+4
| | | | | | | | | 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-271-0/+1
| | | | | | | | | 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] gh-112438: Fix support of format units with the "e" prefix in nested ↵Serhiy Storchaka2023-11-271-0/+27
| | | | | 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-272-4/+30
| | | | | | | | | 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-94722: fix DocTest.__eq__ for case of no line number on one side ↵Miss Islington (bot)2023-11-252-2/+21
| | | | | | | | (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-109538: Catch closed loop runtime error and issue warning ↵DPR2023-11-202-2/+61
| | | | | | | | | (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-201-14/+14
| | | | `__weakref__` docstrings (GH-112268) (#112276)
* [3.11] gh-73561: Omit interface scope from IPv6 when used as Host header ↵Miss Islington (bot)2023-11-192-2/+26
| | | | | | | | | | | | | | | | (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] 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-194-77/+396
| | | | | | | | | | | 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
|