summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] Fix typo in perf profiling docs (GH-112112) (#112117)Miss Islington (bot)2023-11-151-1/+1
| | | | | | Fix typo in perf profiling docs (GH-112112) (cherry picked from commit 0cfdd6e3d17fee8c1c1f4b42b2146abcb43aa34b) Co-authored-by: Ryuji Tsutsui <ryu22e+github@gmail.com>
* [3.12] gh-111942: Fix SystemError in the TextIOWrapper constructor ↵Victor Stinner2023-11-153-5/+14
| | | | | | | | | | | (GH-112061) (GH-112089) In non-debug more the check for the "errors" argument is skipped, and then PyUnicode_AsUTF8() can fail, but its result was not checked. Co-authored-by: Victor Stinner <vstinner@python.org> (cherry picked from commit 9302f05f9af07332c414b3c19003efd1b1763cf3) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-108303: Delete `imp_dummy` test file (GH-112110) (#112114)Miss Islington (bot)2023-11-151-3/+0
| | | | | | gh-108303: Delete `imp_dummy` test file (GH-112110) (cherry picked from commit 422c0f030170490c001575303d9e628a0298d457) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] Docs: Add the time to the HTML last updated format (GH-110091) (#112102)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.12] gh-111942: Fix crashes in TextIOWrapper.reconfigure() (GH-111976) ↵Miss Islington (bot)2023-11-143-5/+122
| | | | | | | | | | | | | (GH-112058) * 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.12] 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-112024) 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.12] gh-111622: Fix doc for items views (GH-112051) (#112052)Miss Islington (bot)2023-11-141-5/+8
| | | | | | | They are set-like even when some values are not hashable, but work even better when all are. (cherry picked from commit e31d65e0b7bb6d6fee4e8df54e10976b4cfab1de) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-111460: Restore ncurses widechar support on macOS (GH-111878) ↵Miss Islington (bot)2023-11-143-3/+8
| | | | | | | | (gh-112034) gh-111460: Restore ncurses widechar support on macOS (GH-111878) (cherry picked from commit d2f305dfd183025a95592319b280fcf4b20c8694) Co-authored-by: Davide Rizzo <sorcio@gmail.com>
* [3.12] gh-112007: Re-organize help utility intro message (GH-112017) (#112047)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>
* gh-111856: Fix os.fstat on windows with FAT32 and exFAT filesystem (GH-112038)Miss Islington (bot)2023-11-132-3/+10
| | | | | (cherry picked from commit 29af7369dbbbba8cefafb196e977bce8189a527d) Co-authored-by: AN Long <aisk@users.noreply.github.com>
* [3.12] gh-102837: more tests for the math module (GH-111930)(GH-102523) ↵Petr Viktorin2023-11-131-0/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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 * sumprod: L2744, L2754, L2774, L2778, L2781, L2785, L2831, L2835, L2838 * 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>
* [3.12] gh-111681: minor fixes to typing doctests; remove unused imports in ↵Alex Waygood2023-11-132-3/+3
| | | | | | `test_typing` (#111682) (#112035) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] Bump mypy to 1.7.0 (GH-111961) (#112033)Alex Waygood2023-11-132-1/+2
|
* [3.12] Docs: Add `make htmllive` to rebuild and reload HTML files in your ↵Miss Islington (bot)2023-11-132-0/+7
| | | | | | browser (GH-111900) (#112022) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-111944: Add assignment expression parentheses requirements ↵Miss Islington (bot)2023-11-131-4/+5
| | | | | | | | | | (GH-111977) (#112010) 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>
* [3.12] gh-112001: Fix test_builtins_have_signatures in test_inspect ↵Miss Islington (bot)2023-11-121-12/+7
| | | | | | | | (GH-112002) (GH-112003) (cherry picked from commit 40752c1c1e8cec80e99a2c9796f4fde2f8b5d3e2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-111933: fix broken link to A.Neumaier article (gh-111937) (gh-111993)Miss Islington (bot)2023-11-121-1/+4
|
* [3.12] gh-111777: Fix assertion errors on incorrectly still-tracked GC ↵Miss Islington (bot)2023-11-121-1/+3
| | | | | | | | | | | | | | | object destruction (GH-111778) (#111989) gh-111777: Fix assertion errors on incorrectly still-tracked GC object destruction (GH-111778) In PyObject_GC_Del, in Py_DEBUG mode, when warning about GC objects that were not properly untracked before starting destruction, take care to untrack the object _before_ warning, to avoid triggering a GC run and causing the problem the code tries to warn about. Also make sure to save and restore any pending exceptions, which the warning would otherwise clobber or trigger an assertion error on. (cherry picked from commit ce6a533c4bf1afa3775dfcaee5fc7d5c15a4af8c) Co-authored-by: T. Wouters <thomas@python.org>
* [3.12] Fix undefined behaviour in datetime.time.fromisoformat() (GH-111982) ↵Miss Islington (bot)2023-11-121-1/+1
| | | | | | | | | | (#111992) Fix undefined behaviour in datetime.time.fromisoformat() (GH-111982) Fix undefined behaviour in datetime.time.fromisoformat() when parsing a string without a timezone. 'tzoffset' is not assigned to by parse_isoformat_time if it returns 0, but time_fromisoformat then passes tzoffset to another function, which is undefined behaviour (even if the function in question does not use the value). (cherry picked from commit 21615f77b5a580e83589abae618dbe7c298700e2) Co-authored-by: T. Wouters <thomas@python.org>
* [3.12] gh-110395: invalidate open kqueues after fork (GH-110517) (#111745)Gregory P. Smith2023-11-113-7/+163
| | | | | | | | | | | | * [3.12] gh-110395: invalidate open kqueues after fork (GH-110517) Invalidate open select.kqueue instances after fork as the fd will be invalid in the child. (cherry picked from commit a6c1c04d4d2339f0094422974ae3f26f8c7c8565) Co-authored-by: Davide Rizzo <sorcio@gmail.com> * move assert to after the child dying this is in `main` via https://github.com/python/cpython/pull/111816/files
* [3.12] gh-111841: Fix os.putenv() and os.unsetenv() with embedded NUL on ↵Miss Islington (bot)2023-11-114-9/+19
| | | | | | | Windows (GH-111842) (GH-111966) (cherry picked from commit 0b06d2482d77e02c5d40e221f6046c9c355458b2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-111251: Fix error checking in _blake2 module init (GH-111252) ↵Miss Islington (bot)2023-11-102-8/+18
| | | | | | (#111297) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-111912: Run test_posix on Windows (GH-111913) (GH-111953)Miss Islington (bot)2023-11-101-3/+7
| | | | | (cherry picked from commit 64fea3211d08082236d05c38ee728f922eb7d8ed) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-103791: handle `BaseExceptionGroup` in `contextlib.suppress()` ↵Miss Islington (bot)2023-11-104-4/+25
| | | | | | | | (GH-111910) (#111955) gh-103791: handle `BaseExceptionGroup` in `contextlib.suppress()` (GH-111910) (cherry picked from commit d61313bdb1eee3e4bb111e0b248ac2dbb48be917) Co-authored-by: Zac Hatfield-Dodds <zac.hatfield.dodds@gmail.com>
* [3.12] gh-109181: Fix refleak in tb_get_lineno() (#111948)Victor Stinner2023-11-101-1/+4
| | | PyFrame_GetCode() returns a strong reference.
* [3.12] gh-108303: Install `Lib/test/configdata` (GH-111899) (#111946)Miss Islington (bot)2023-11-101-0/+1
| | | | | | gh-108303: Install `Lib/test/configdata` (GH-111899) (cherry picked from commit 65d6dc27156112ac6a9f722b7b62529c94e0344b) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* gh-111929: Fix regrtest --pgo: test_str => test_unicode (#111938)Victor Stinner2023-11-101-1/+1
| | | | test_unicode was renamed to test_str in Python 3.13, but Python 3.12 still uses test_unicode name.
* gh-111356: io: Add missing documented objects to io.__all__ (GH-111370)Miss Islington (bot)2023-11-103-11/+17
| | | | | | Add DEFAULT_BUFFER_SIZE, text_encoding, and IncrementalNewlineDecoder. (cherry picked from commit baeb7718f8981319c5cb1fbdd46d162ded7964ea) Co-authored-by: Nicolas Tessore <n.tessore@ucl.ac.uk>
* [3.12] gh-109370: Fix unexpected traceback output in test_concurrent_futures ↵Serhiy Storchaka2023-11-102-3/+3
| | | | | | | | | | (GH-109780) (GH-111934) Follow-up of gh-107219. * Only close the connection writer on Windows. * Also use existing constant _winapi.ERROR_OPERATION_ABORTED instead of WSA_OPERATION_ABORTED. (cherry picked from commit 0b4e090422db5f959184353d53552d1675f74212)
* [3.12] GH-111804: Drop posix.fallocate() under WASI (GH-111869) (GH-111919)Brett Cannon2023-11-093-5/+10
| | | | | | | | | GH-111804: Drop posix.fallocate() under WASI (GH-111869) Drop posix.fallocate() under WASI. The underlying POSIX function, posix_fallocate(), was found to vary too much between implementations to remain in WASI. As such, while it was available in WASI preview1, it's been dropped in preview2.
* [3.12] gh-110875: Handle '.' properties in logging formatter configuration ↵Miss Islington (bot)2023-11-092-5/+41
| | | | | | c… (GH-110943) (GH-111911) Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
* [3.12] gh-111895: Convert definition list to bullet list for readability on ↵Miss Islington (bot)2023-11-091-6/+6
| | | | | | | | | | mobile (GH-111898) (#111908) gh-111895: Convert definition list to bullet list for readability on mobile (GH-111898) Convert definition list to bullet list for readability on mobile (cherry picked from commit 7d21e3d5ee9858aee570aa6c5b6a6e87d776f4b5) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-111881: Import doctest lazily in libregrtest (GH-111884) (#111893)Miss Islington (bot)2023-11-091-5/+8
| | | | | | | | | | gh-111881: Import doctest lazily in libregrtest (GH-111884) In most cases, doctest is not needed. So don't always import it at startup. The change reduces the number of modules already imported when a test is run. (cherry picked from commit 6f09f69b7f85962f66d10637c3325bbb2b2d9853) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-111881: Use lazy import in test.support (#111885) (#111890)Victor Stinner2023-11-092-8/+13
| | | | | | | | gh-111881: Use lazy import in test.support (#111885) * Import lazily getpass in test.support * Only import ctypes on Windows in test.support.os_helper. (cherry picked from commit 0372e3b02a7e3dc1c564dba94dcd817c5472b04f)
* [3.12] gh-108303: Move more files to `Lib/test/test_module` (GH-111880) ↵Miss Islington (bot)2023-11-093-5/+5
| | | | | | | | (#111891) gh-108303: Move more files to `Lib/test/test_module` (GH-111880) (cherry picked from commit 0c42f7304a2757fe0f78bc6c6fbb33225cd9da15) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-108303: Move config parser data to `Lib/test/configparserdata/` ↵Miss Islington (bot)2023-11-095-12/+12
| | | | | | | | (gh-111879) (gh-111882) gh-108303: Move config parser data to `Lib/test/configparserdata/` (gh-111879) (cherry picked from commit cc18b886a51672c59622837a2b8e83bf6be28c58) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-110543: Fix CodeType.replace in presence of comprehensions ↵Miss Islington (bot)2023-11-083-2/+75
| | | | | | | | (GH-110586) (#111866) gh-110543: Fix CodeType.replace in presence of comprehensions (GH-110586) (cherry picked from commit 0b718e6407da65b838576a2459d630824ca62155) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-111495: Add tests for PyList C API (GH-111562) (GH-111861)Miss Islington (bot)2023-11-082-1/+456
| | | | | | | | (cherry picked from commit a3903c8ec838f82338f7a7af68a6699118778e1d) Signed-off-by: kalyanr <kalyan.ben10@live.com> Co-authored-by: Kalyan <kalyan.ben10@live.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-108303: Move more typing related files to Lib/test/typinganndata ↵Nikita Sobolev2023-11-084-3/+2
| | | | | (GH-111825) (#111859) [3.12] gh-108303: Move more typing related files to Lib/test/typinganndata(GH-111825)
* [3.12] Glossary: Add "static type checker" (GH-111837) (#111854)Miss Islington (bot)2023-11-084-7/+14
| | | | | | | Glossary: Add "static type checker" (GH-111837) (cherry picked from commit 8ab7ad63086b1793c24b1c5aaa19b60fc0e6540e) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-111806: Fix `test_recursion` in `test_richcmp` on WASI builds ↵Miss Islington (bot)2023-11-071-0/+1
| | | | | | | | (GH-111830) (GH-111831) gh-111806: Fix `test_recursion` in `test_richcmp` on WASI builds (GH-111830) (cherry picked from commit f115a55f0e455a4b43a1da9fd838a60a101f182a) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-111765: Move old PyFloat_* tests to ↵Miss Islington (bot)2023-11-072-65/+65
| | | | | | | Lib/test/test_capi/test_float.py (GH-111766) (GH-111818) (cherry picked from commit a077b2fbb88f5192bb47e514334f760bf08d0295) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
* [3.12] gh-111729: update generic syntax for `typing.Concatenate` sample code ↵Miss Islington (bot)2023-11-071-5/+2
| | | | | | | in `Doc/library/typing.rst` (GH-111734) (#111814) (cherry picked from commit c3e19c3a62e82b9e77563e934059895b6230de6e) Co-authored-by: 方糖 <cubesugarcheese@qq.com>
* [3.12] gh-101180: Fix a bug where iso2022_jp_3 and iso2022_jp_2004 codecs ↵Miss Islington (bot)2023-11-063-3/+53
| | | | | | | | read out of bounds (gh-111695) (gh-111769) gh-101180: Fix a bug where iso2022_jp_3 and iso2022_jp_2004 codecs read out of bounds (gh-111695) (cherry picked from commit c8faa3568afd255708096f6aa8df0afa80cf7697) Co-authored-by: Masayuki Moriyama <masayuki.moriyama@miraclelinux.com>
* [3.12] gh-111495: Add tests for PyComplex C API (GH-111591) (GH-111753)Miss Islington (bot)2023-11-052-0/+238
| | | | | (cherry picked from commit 24b5cbd3dce3fe37cdc787ccedd1e73a4f8cfc3c) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
* [3.12] gh-111495: Add tests for PyFloat C API (GH-111624) (GH-111752)Miss Islington (bot)2023-11-052-0/+191
| | | | | (cherry picked from commit b452202a11c4cb60f69a098a0076a8a8aabade38) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
* [3.12] gh-111747: DOC: fix moved link to Documentation Translations ↵Miss Islington (bot)2023-11-051-1/+1
| | | | | | | | (GH-111748) (#111749) Update old link in bugs.rst to the table of doc translators and translation repositories at Github. (cherry picked from commit 72e27a67b97993f277e69c9dafb063007ba79adf) Co-authored-by: partev <petrosyan@gmail.com>
* [3.12] gh-111724: Fix doctest `ResourceWarning` in `howto/descriptor.rst` ↵Miss Islington (bot)2023-11-041-0/+4
| | | | | | | | | | (GH-111725) (#111727) gh-111724: Fix doctest `ResourceWarning` in `howto/descriptor.rst` (GH-111725) Close database connection explicitly in test cleanup. (cherry picked from commit f48e669504ce53040a04e0181064c11741a87817) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-111495: Test C API functions with extreme sizes and indices ↵Serhiy Storchaka2023-11-044-41/+130
| | | | | (GH-111631) (GH-111731) (cherry picked from commit a8e1f474c20ab15140dd0cfcb96b696857907a60)
* [3.12] gh-111159: Fix `SyntaxError` doctests for non-builtin exception ↵Miss Islington (bot)2023-11-043-1/+24
| | | | | | | | classes (GH-111541) (#111732) gh-111159: Fix `SyntaxError` doctests for non-builtin exception classes (GH-111541) (cherry picked from commit 18c954849bcdd5acb6ef91cd90d92f3b5c685134) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>