summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* [3.13] gh-58124: Avoid CP_UTF8 in UnicodeDecodeError (GH-137415) (#137461)Miss Islington (bot)2025-08-061-1/+1
| | | | | | | | | | gh-58124: Avoid CP_UTF8 in UnicodeDecodeError (GH-137415) Fix name of the Python encoding in Unicode errors of the code page codec: use "cp65000" and "cp65001" instead of "CP_UTF7" and "CP_UTF8" which are not valid Python code names. (cherry picked from commit ce1b747ff68754635b7b12870dfc527184ee3b39) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.13] gh-81325: Support path-like objects with streaming TarFile ↵Miss Islington (bot)2025-08-051-0/+10
| | | | | | | (GH-137188) (#137366) Co-authored-by: Alexander Urieles <aeurielesn@users.noreply.github.com> Co-authored-by: Emma Smith <emma@emmatyping.dev>
* [3.13] gh-137397: Skip test_os_open on NetBSD due to indefinite hang ↵Miss Islington (bot)2025-08-051-0/+2
| | | | | | | | (GH-137398) (#137407) gh-137397: Skip test_os_open on NetBSD due to indefinite hang (GH-137398) (cherry picked from commit 7f416c867445dd94d11ee9df5f1a2d9d6eb8d883) Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
* [3.13] gh-132710: only use stable `_uuid.generate_time_safe()` to deduce MAC ↵Bénédikt Tran2025-08-051-0/+28
| | | | | | | | address (GH-132901) (#134704) This commit includes the original commit and the NEWS entry that was added separately. (cherry picked from commit 3bffada46728e51f84c41ecbb0d3722595693e63) (cherry picked from commit 9eb84d83e00070cec3cfe78f1d0c7a7a0fbef30f)
* [3.13] gh-130077: Properly match full soft keywords in the parser ↵Pablo Galindo Salgado2025-08-041-0/+7
| | | | | | | | | | | | | | (GH-135317) (#135399) * [3.13] gh-130077: Properly match full soft keywords in the parser (GH-135317) (cherry picked from commit ff2b5f40c2bf5c71255caac8a743c09ba0758c02) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> * Remove line the main-branch commit removed --------- Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.13] gh-137194: Fix requires_debug_ranges when _testcpi doesn't exist ↵Miss Islington (bot)2025-08-041-1/+6
| | | | | | | (GH-137195) (GH-137275) (cherry picked from commit 0282eef880c8c8db782a2088b0257250e0f76d48) Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>
* [3.13] Fix typo in `Lib/test/test_ast/test_ast.py` (GH-136767) (#137356)Brian Schubert2025-08-041-1/+1
| | | | | | `ASTOptimiziationTests` -> `ASTOptimizationTests` (cherry picked from commit 60146f4f6f24f37e3bfcb9f101565f6e86cf0146) Co-authored-by: Hunter Hogan <hunterhogan@users.noreply.github.com>
* [3.13] Doc: fix duplicated words (GH-136086) (#137357)Brian Schubert2025-08-032-2/+2
| | | | | | (cherry picked from commit 698bab5a4031c8f54e04e1dd42bcbe3e4564eba5) Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.13] gh-137341: Remove more word duplications (GH-137342) (GH-137347)Serhiy Storchaka2025-08-032-2/+2
| | | (cherry picked from commit 1612dcbafe763014deefd679fe75ac5831a14a43)
* [3.13] gh-137314: Fix incorrect treatment of format specs in raw fstrings ↵Miss Islington (bot)2025-08-031-0/+28
| | | | | | | | (GH-137328) (#137345) gh-137314: Fix incorrect treatment of format specs in raw fstrings (GH-137328) (cherry picked from commit 0153d82a5ab0c6ac16c046bdd4438ea11b58d59d) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.13] gh-135444: fix `asyncio.DatagramTransport.sendto` to account for ↵Miss Islington (bot)2025-08-032-0/+43
| | | | | | | | | datagram header size when data cannot be sent (GH-135445) (#137246) gh-135444: fix `asyncio.DatagramTransport.sendto` to account for datagram header size when data cannot be sent (GH-135445) (cherry picked from commit e3ea8613519bd08aa6ce7d142403e644ae32d843) Co-authored-by: Justin Bronder <jsbronder@cold-front.org> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* [3.13] gh-137273: Fix debug assertion failure in locale.setlocale() on ↵Miss Islington (bot)2025-08-011-21/+49
| | | | | | | | | Windows (GH-137300) (GH-137306) It happened when there were at least 16 characters after dot in the locale name. (cherry picked from commit 718e0c89ba0610bba048245028ac133bbf2d44c2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] GH-116738: document thread-safety of bisect (GH-136555) (#137222)Miss Islington (bot)2025-07-301-0/+79
| | | | | | | * GH-116738: document thread-safety of bisect (GH-136555) (cherry picked from commit 5236b0281b91a874b14cf15f3fdef9b7beffb22f) Co-authored-by: Neil Schemenauer <nas-github@arctrix.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* [3.13] gh-130577: tarfile now validates archives to ensure member offsets ↵Miss Islington (bot)2025-07-281-0/+156
| | | | | | | | | are non-negative (GH-137027) (#137170) gh-130577: tarfile now validates archives to ensure member offsets are non-negative (GH-137027) (cherry picked from commit 7040aa54f14676938970e10c5f74ea93cd56aa38) Co-authored-by: Alexander Urieles <aeurielesn@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.13] gh-134698: Hold a lock when the thread state is detached in ssl ↵Gregory P. Smith2025-07-271-0/+19
| | | | | | | | (GH-134724) (#137126) Lock when the thread state is detached. (cherry picked from commit e047a35b23c1aa69ab8d5da56f36319cec4d36b8) or really from the 3.14 backport fd565fdfc9c0001900d03d627e2fda83f1bcca90 Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* [3.13] gh-131038: Use text=True in subprocesses in test_perf_profiler ↵Miss Islington (bot)2025-07-261-5/+5
| | | | (GH-137117) (#137125)
* [3.13] gh-130522: Fix unraisable TypeError in threading at interpreter ↵Miss Islington (bot)2025-07-251-0/+17
| | | | | | | | | shutdown (GH-131537) (GH-137106) gh-130522: Fix unraisable TypeError in threading at interpreter shutdown (GH-131537) (cherry picked from commit cb93b6fc5ea525f8075cb53ec373356fec63903a) Co-authored-by: Tyler Kennedy <tk@tkte.ch> Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* [3.13] gh-118350: Fix support of elements "textarea" and "title" in ↵Miss Islington (bot)2025-07-221-0/+96
| | | | | | | | | HTMLParser (GH-135310) (GH-136985) (cherry picked from commit 4d02f31cdd45d81b95540d9076222b709d4f2335) Co-authored-by: Timon Viola <44016238+timonviola@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.13] gh-135661: Fix parsing attributes with whitespaces around the "=" ↵Miss Islington (bot)2025-07-221-12/+16
| | | | | | | | separator in HTMLParser (GH-136908) (GH-136918) This fixes a regression introduced in GH-135930. (cherry picked from commit dee650189497735edbc08a54edabb5b06ef1bd09) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-135148: Correctly handle f/t strings with comments and debug ↵Lysandros Nikolaou2025-07-211-0/+12
| | | | | | expressions (#135198) (#136899) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.13] gh-130655: gettext: Add fallback testcase (GH-136857) (#136863)Miss Islington (bot)2025-07-201-0/+7
| | | | | | gh-130655: gettext: Add fallback testcase (GH-136857) (cherry picked from commit c6e6fe92cd8b90d546652764e3eaf1631da16f8f) Co-authored-by: Dominic H <dom@dominic.sk>
* [3.13] gh-130664: support '_' (just as ',') in Decimal's formatting ↵Miss Islington (bot)2025-07-141-0/+5
| | | | | | | | (GH-132155) (#136649) gh-130664: support '_' (just as ',') in Decimal's formatting (GH-132155) (cherry picked from commit e10fe81cc6ae0979938eb3925139d56a74c620e3) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
* [3.13] gh-127971: fix off-by-one read beyond the end of a string during ↵Duane Griffin2025-07-141-0/+9
| | | | | search (#132574) (#136648) (cherry picked from commit 85ec3b3b503ffd5b7e45f8b3fa2cec0c10e4bef0)
* [3.13] gh-136523: Fix wave.Wave_write emitting an unraisable when open ↵Miss Islington (bot)2025-07-131-0/+9
| | | | | | | raises (GH-136529) (GH-136607) (cherry picked from commit 171de05b4884d1353044417ea51a4efcb55ba633) Co-authored-by: Sachin Shah <39803835+inventshah@users.noreply.github.com>
* [3.13] gh-136549: Fix signature of threading.excepthook() (GH-136559) ↵Miss Islington (bot)2025-07-121-0/+1
| | | | | | | (GH-136590) (cherry picked from commit be2c3d284ecce67474a260b8c37e2f1e0628a9cf) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` when ↵Bénédikt Tran2025-07-121-0/+35
| | | | | | | `ind.__index__` has side-effects (GH-132379) (#136582) (cherry picked from commit 5e1e21dee35b8e9066692d08033bbbdb562e2c28) Co-authored-by: Bast <52266665+bast0006@users.noreply.github.com>
* [3.13] gh-134759: fix `UnboundLocalError` in ↵Miss Islington (bot)2025-07-121-0/+9
| | | | | | | | | `email.message.Message.get_payload` (GH-136071) (#136580) gh-134759: fix `UnboundLocalError` in `email.message.Message.get_payload` (GH-136071) (cherry picked from commit 25335d297b5248922a4c82183bcdf0c0ada8352b) Co-authored-by: Kliment Lamonov <klimentlamonov@yandex.ru> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* [3.13] gh-136438: Make sure `test_builtins` pass with all optimization ↵sobolevn2025-07-101-1/+1
| | | | | levels (GH-136474) (#136502) (cherry picked from commit c17654334946b232aa296696cf70ec93a09d8156)
* [3.13] gh-136297: Fix `hypothesis` and `subTest` usage in ↵Miss Islington (bot)2025-07-081-9/+7
| | | | | | | | `test_zoneinfo_property.py` (GH-136384) (#136408) gh-136297: Fix `hypothesis` and `subTest` usage in `test_zoneinfo_property.py` (GH-136384) (cherry picked from commit db699db99d214dccb7c4849fa609fdd5188ee038) Co-authored-by: sobolevn <mail@sobolevn.me>
* [3.13] gh-124486: Fix test_whichdb_ndbm in test_dbm on NetBSD (GH-136335) ↵Miss Islington (bot)2025-07-071-1/+2
| | | | | | | | (GH-136379) On NetBSD, ndbm.open() does not fail for empty file. (cherry picked from commit b7aa2a4b4df697db6ea45a555eeb3fefa5ca5bd4) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-136289: Fix test_sqlite3 on platforms with strict UTF-8 filesystem ↵Miss Islington (bot)2025-07-071-12/+14
| | | | | | | (GH-136326) (GH-136351) (cherry picked from commit 85b817da94cf911a964d42e81a57e1de9ab71ef9) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-136297: Test all `pickle` protocols in `test_zoneinfo_property.py` ↵Miss Islington (bot)2025-07-051-7/+11
| | | | | | | | (GH-136298) (#136312) gh-136297: Test all `pickle` protocols in `test_zoneinfo_property.py` (GH-136298) (cherry picked from commit 5de7e3f9739b01ad180fffb242ac57cea930e74d) Co-authored-by: sobolevn <mail@sobolevn.me>
* [3.13] gh-102555: Fix comment parsing in HTMLParser according to the HTML5 ↵Miss Islington (bot)2025-07-041-2/+30
| | | | | | | | | | | | | | standard (GH-135664) (GH-136272) * "--!>" now ends the comment. * "-- >" no longer ends the comment. * Support abnormally ended empty comments "<-->" and "<--->". --------- (cherry picked from commit 8ac7613dc8b8f82253d7c0e2b6ef6ed703a0a1ee) Co-author: Kerim Kabirov <the.privat33r+gh@pm.me> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* [3.13] gh-135661: Fix parsing start and end tags in HTMLParser according to ↵Miss Islington (bot)2025-07-031-55/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the HTML5 standard (GH-135930) (GH-136256) * Whitespaces no longer accepted between `</` and the tag name. E.g. `</ script>` does not end the script section. * Vertical tabulation (`\v`) and non-ASCII whitespaces no longer recognized as whitespaces. The only whitespaces are `\t\n\r\f `. * Null character (U+0000) no longer ends the tag name. * Attributes and slashes after the tag name in end tags are now ignored, instead of terminating after the first `>` in quoted attribute value. E.g. `</script/foo=">"/>`. * Multiple slashes and whitespaces between the last attribute and closing `>` are now ignored in both start and end tags. E.g. `<a foo=bar/ //>`. * Multiple `=` between attribute name and value are no longer collapsed. E.g. `<a foo==bar>` produces attribute "foo" with value "=bar". * Whitespaces between the `=` separator and attribute name or value are no longer ignored. E.g. `<a foo =bar>` produces two attributes "foo" and "=bar", both with value None; `<a foo= bar>` produces two attributes: "foo" with value "" and "bar" with value None. --------- (cherry picked from commit 0243f97cbadec8d985e63b1daec5d1cbc850cae3) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* [3.13] gh-130664: Treat '0' fill character with align '=' as zero-padding ↵Miss Islington (bot)2025-07-031-5/+2
| | | | | | | for Fraction's (GH-131067) (GH-136242) (cherry picked from commit c113a8e5236b31217d82ce289d3df6ec9e8411cd) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
* [3.13] gh-135640: Adds more type checking to ElementTree (GH-135643) (GH-136226)Miss Islington (bot)2025-07-031-0/+27
| | | | | (cherry picked from commit e0245c789f54b63d461717a91eec8ffccbe18966) Co-authored-by: Kira <kirawhoprograms@fastmail.com>
* [3.13] gh-135836: Fix `IndexError` in `asyncio.create_connection()` ↵Miss Islington (bot)2025-07-031-0/+29
| | | | | | | | (GH-135875) (#136222) gh-135836: Fix `IndexError` in `asyncio.create_connection()` (GH-135875) (cherry picked from commit 9084b151567d02936ea1374961809b69b4cd883d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-135836: Fix `IndexError` in `asyncio.create_connection` with empty ↵Miss Islington (bot)2025-07-031-0/+30
| | | | | | | | | exceptions list (GH-135845) (#136168) gh-135836: Fix `IndexError` in `asyncio.create_connection` with empty exceptions list (GH-135845) (cherry picked from commit 0e19db653dfa1a6e750e9cede1f6922e5fd1e808) Co-authored-by: heliang666s <147408835+heliang666s@users.noreply.github.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* [3.13] gh-87298: Add tests for find_in_strong_cache() bug in _zoneinfo ↵Miss Islington (bot)2025-07-011-0/+43
| | | | | | | | | (GH-24829) (GH-136182) (cherry picked from commit 12ce16bc134a602d2ac8acde86ae69f70183cb9f) Co-authored-by: Zackery Spytz <zspytz@gmail.com> Co-authored-by: Paul Ganssle <p.ganssle@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-133982: Use implementation-specific `open` in ↵Miss Islington (bot)2025-06-301-5/+7
| | | | | | | | `test_fileio.OtherFileTests` (GH-135364) (GH-136149) gh-133982: Use implementation-specific `open` in `test_fileio.OtherFileTests` (GH-135364) (cherry picked from commit 23caccf74ce2c8dc5d9c5eb6350d21ef20c6ea0b) Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
* [3.13] gh-85702: Catch IsADirectoryError in zoneinfo (GH-131333) (#136130)Miss Islington (bot)2025-06-301-0/+1
| | | | | | | gh-85702: Catch IsADirectoryError in zoneinfo (GH-131333) (cherry picked from commit d22604a6d1237c42ec5f43df51dfa9aa58240ba4) Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.13] gh-128051: Fix tests if sys.float_repr_style is 'legacy' (#135908) ↵Victor Stinner2025-06-3014-41/+47
| | | | | | | | | | (#136026) gh-128051: Fix tests if sys.float_repr_style is 'legacy' (#135908) (cherry picked from commit f3aec60d7a01c5f085a3ef2d6670d46b42b8ddd3) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
* [3.13] gh-135571: Guard `_hashlib` usage in `test_hashlib.py` (GH-135572) ↵Bénédikt Tran2025-06-281-2/+6
| | | | | | | (#136041) (cherry picked from commit 065194c1a971b59547f1bb2cc64760c4bf0ee674) Co-authored-by: Will Childs-Klein <willck93@gmail.com>
* [3.13] gh-136028: Fix parsing month names containing "İ" (U+0130) in ↵Miss Islington (bot)2025-06-271-0/+9
| | | | | | | | strptime() (GH-136029) (GH-136038) This affects locales az_AZ, ber_DZ, ber_MA and crh_UA. (cherry picked from commit 731f5b8ab3970e344bfbc4ff86df767a0795f0fc) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-78465: Fix error message for cls.__new__(cls, ...) where cls is ↵Serhiy Storchaka2025-06-272-6/+2
| | | | | | | | not instantiable (GH-135981) (GH-136031) Previous error message suggested to use cls.__new__(), which obviously does not work. Now the error message is the same as for cls(...). (cherry picked from commit c45f4f3ebe34529a8db3a7918e8dd2e9f7ce8e86)
* [3.13] gh-53203: Fix strptime() for %c, %x and %X formats on some locales ↵Miss Islington (bot)2025-06-271-15/+13
| | | | | | | | | | | | | | | (GH-135971) (GH-136020) * Add detection of decimal non-ASCII alt digits. * Add support of non-decimal alt digits on locale lzh_TW. * Accept only numbers in correct range if alt digits are known. * Fix bug in detecting the position of the week day name on locales byn_ER and wal_ET. * Fix support of single-digit hour on locales ar_SA and bg_BG. * Add support for %T, %R, %r, %C, %OC. * Prepare code to use nl_langinfo(). (cherry picked from commit 07183ebce36462aaaea4d20e0502b20821dd2682) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-91555: Revert disabling of logger while handling log record. ↵Miss Islington (bot)2025-06-251-83/+0
| | | | | | (GH-135858) (GH-135911) Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
* [3.13] gh-135855: Raise TypeError When Passing Non-dict Object to ↵Brian Schubert2025-06-241-0/+16
| | | | | `_interpreters.set___main___attrs` (gh-135903) (cherry picked from commit 4e6f0d116e, AKA gh-135856)
* [3.13] gh-135487: fix `reprlib.Repr.repr_int` when given very large integers ↵Miss Islington (bot)2025-06-241-8/+32
| | | | | | | | (GH-135506) (#135886) gh-135487: fix `reprlib.Repr.repr_int` when given very large integers (GH-135506) (cherry picked from commit e5f03b94b6d4decbf433d385f692c1b8d9b7e88d) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* [3.13] gh-135494: Fix python -m test --pgo -x test_re (#135713) (#135881)Victor Stinner2025-06-242-6/+21
| | | | | | | gh-135494: Fix python -m test --pgo -x test_re (#135713) Fix regrtest to support excluding tests from --pgo tests. (cherry picked from commit 15c6d63fe6fc62c6d78d2fad81965a8e6f7b7b98)