summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-109216: Fix possible memory leak in `BUILD_MAP` (#109324)Nikita Sobolev2023-10-153-255/+251
|
* [3.12] gh-101100: Fix sphinx warnings in `library/time.rst` (GH-110862) ↵Miss Islington (bot)2023-10-142-34/+60
| | | | | | | | (#110877) gh-101100: Fix sphinx warnings in `library/time.rst` (GH-110862) (cherry picked from commit 12deda763359d46d4eccbb8991afed71fa31a68b) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] remove redundant call to attach_loop in watcher (GH-110847) (#110867)Miss Islington (bot)2023-10-141-2/+0
| | | | | (cherry picked from commit 596589104fe5a4d90cb145b2cc69b71cc9aa9f07) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* [3.12] gh-110715: Add missing import in zipfile (gh-110822) (gh-110861)Miss Islington (bot)2023-10-142-7/+19
| | | | | | gh-110715: Add missing import in zipfile (gh-110822) (cherry picked from commit 4110cfec1233139b4e7c63459ba465ab80554e3e) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* [3.12] gh-110628: Add tests for PyLong C API (GH-110629) (GH-110854)Serhiy Storchaka2023-10-143-0/+590
| | | (cherry picked from commit 9d40ebf1902812fad6aa85ede7b6f1fdff3c1291)
* [3.12] gh-107705: Fix file leak in test_tkinter in the C locale (GH-110507) ↵Miss Islington (bot)2023-10-141-5/+10
| | | | | | | (GH-110857) (cherry picked from commit ca0f3d858d069231ce7c5b382790a774f385b467) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-109747: Improve errors for unsupported look-behind patterns ↵Miss Islington (bot)2023-10-146-13/+46
| | | | | | | | | | | (GH-109859) (GH-110859) Now re.error is raised instead of OverflowError or RuntimeError for too large width of look-behind pattern. The limit is increased to 2**32-1 (was 2**31-1). (cherry picked from commit e2b3d831fd2824d8a5713e3ed2a64aad0fb6b62d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-101100: Fix sphinx warnings in `usage/cmdline.rst` (GH-110841) ↵Miss Islington (bot)2023-10-142-9/+9
| | | | | | (#110855) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-110392: Fix tty functions (GH-110642) (GH-110853)Miss Islington (bot)2023-10-143-2/+12
| | | | | | | | | | | | * tty.setraw() and tty.setcbreak() previously returned partially modified list of the original tty attributes. Now they return the correct list of the original tty attributes * tty.cfmakeraw() and tty.cfmakecbreak() now make a copy of the list of special characters before modifying it. (cherry picked from commit 84e2096fbdea880799f2fdb3f0992a8961106bed) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-108303: Move all inspect test files to `test_inspect/` (GH-109607) ↵Nikita Sobolev2023-10-1311-7/+15
| | | | | (#110732) (cherry picked from commit 732532b0af9d1b5c7ae4932526c8d20d86c15507)
* [3.12] Bump sphinx-lint to 0.7.0 (GH-110830) (#110833)Miss Islington (bot)2023-10-131-3/+2
| | | | | | Bump sphinx-lint to 0.7.0 (GH-110830) (cherry picked from commit 0ed2329a1627fc8ae97b009114cd960c25567f75) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-110815: Improve tests for PyArg_ParseTupleAndKeywords() ↵Miss Islington (bot)2023-10-132-18/+70
| | | | | | | (GH-110817) (GH-110825) (cherry picked from commit 548ce0923b9ef93b1c1df59f8febc4bb3daff28a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-110703: Add asyncio.wait_for() change notes for 3.11 (GH-110818) ↵Miss Islington (bot)2023-10-131-3/+3
| | | | | | | | | | | | | | | | | | | | (#110826) gh-110703: Add asyncio.wait_for() change notes for 3.11 (GH-110818) * Remove redundant versionchanged * Add missing versionchanged * Update Doc/library/asyncio-task.rst --------- (cherry picked from commit f81e36f700ac8c6766207fcf3bc2540692af868b) Co-authored-by: paskozdilar <53006174+paskozdilar@users.noreply.github.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* [3.12] gh-110803: Reorganize docs for what PyType_Slot doesn't cover ↵Miss Islington (bot)2023-10-132-15/+32
| | | | | | | | | | | | | | | | | | (GH-110813) (#110823) gh-110803: Reorganize docs for what PyType_Slot doesn't cover (GH-110813) * gh-110803: Reorganize docs for what PyType_Slot doesn't cover - Cover the offset fields first - Mention the old alternative for MANAGED flags, which is needed to support older Pythons - De-emphasize the internal flags: use an inline list. - Add a note to PyMemberDef saying what to do with it * Remove an older draft... (cherry picked from commit 2ab34f0e425d90d0a153104ef2f4343dce2a414d) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.12] gh-107450: Fix parser column offset overflow test on Windows ↵Miss Islington (bot)2023-10-131-2/+4
| | | | | | | | (GH-110768) (#110808) (cherry picked from commit 05439d308740b621d03562451a7608eb725937ae) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-110782: Fix crash when TypeVar is constructed with keyword args ↵Miss Islington (bot)2023-10-123-18/+28
| | | | | | | | (GH-110784) (#110787) gh-110782: Fix crash when TypeVar is constructed with keyword args (GH-110784) (cherry picked from commit d2a536b1706d4a79303b7ac53684bb82eac2de23) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-110756: Sync regrtest with main branch (#110779)Victor Stinner2023-10-124-1228/+61
| | | | | | gh-110756: Sync regrtest with main branch * Remove runtest.py and runtest_mp.py of Lib/test/libregrtest/. * Backport support._parse_memlimit().
* [3.12] gh-110756: Sync regrtest with main branch (#110758)Victor Stinner2023-10-1223-980/+3372
| | | | | | | | | | | | | | | | | | | | | | | | | | gh-110756: Sync regrtest with main branch Copy files from main to this branch: * Lib/test/libregrtest/*.py * Lib/test/__init__.py * Lib/test/__main__.py * Lib/test/autotest.py * Lib/test/pythoninfo.py * Lib/test/regrtest.py * Lib/test/test_regrtest.py Do not modify scripts running tests such as Makefile.pre.in, .github/workflows/build.yml or Tools/scripts/run_tests.py: do not use --fast-ci and --slow-ci in this change. Changes: * SPLITTESTDIRS: don't include test_inspect. * Add utils.process_cpu_count() using len(os.sched_getaffinity(0)). * test_regrtest doesn't use @support.without_optimizer which doesn't exist in Python 3.12. * Add support.set_sanitizer_env_var(). * Update test_faulthandler to use support.set_sanitizer_env_var().
* [3.12] gh-110696: Fix incorrect syntax error message for incorrect argument ↵Pablo Galindo Salgado2023-10-124-1134/+1500
| | | | | unpacking (GH-110706) (#110765) (cherry picked from commit 3d180347ae73119bb51500efeeafdcd62bcc6f78)
* [3.12] gh-107450: Raise OverflowError when parser column offset overflows ↵Miss Islington (bot)2023-10-122-0/+10
| | | | | | | (GH-110754) (#110762) (cherry picked from commit fb7843ee895ac7f6eeb58f356b1a320eea081cfc) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* [3.12] GH-107518: Remove the Argument Clinic How-To (#109900) (#110760)Erlend E. Aasland2023-10-123-1893/+6
| | | | | | | | | (cherry picked from commit d1f7fae424d51b0374c8204599583c4a26c1a992) * Remove the content of the Argument Clinic HOWTO * Update cross-references to the Argument Clinic * Add a note directing readers to the devguide Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] gh-110673: test_pty raises on short write (GH-110677) (#110742)Miss Islington (bot)2023-10-121-5/+14
| | | | | | | | | | gh-110673: test_pty raises on short write (GH-110677) Add write_all() helper function to test_pty to raise an exception on short write: if os.writes() does not write all bytes. It should not happen for a PTY. (cherry picked from commit b4e8049766a46a9e6548b18d7e9a0c9f573cd122) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-110631: Fix reST indentation in `Doc/reference` (GH-110708) (#110740)Miss Islington (bot)2023-10-114-77/+79
| | | | | | | | gh-110631: Fix reST indentation in `Doc/reference` (GH-110708) Fix wrong indentation in the Doc/reference dir. (cherry picked from commit 41d8ec5a1bae1e5d4452da0a1a0649ace4ecb7b0) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* [3.12] gh-110631: Fix reST indentation (GH-110724) (#110738)Ezio Melotti2023-10-117-53/+51
| | | | | | * Fix wrong indentation in the other dirs. * Fix more wrong indentation.. (cherry picked from commit 718391f475f2550d99dd794069ca76312f7f6aa6)
* [3.12] gh-110631: Fix reST indentation in `Doc/library` (GH-110685) (#110736)Miss Islington (bot)2023-10-1134-926/+933
| | | | | | | | gh-110631: Fix reST indentation in `Doc/library` (GH-110685) Fix wrong indentation in the Doc/library dir. (cherry picked from commit bb7923f556537a463c403dc1097726d8a8e1a6f2) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* [3.12] gh-108826: Document `dis` module CLI and rename `_test` function to ↵Hugo van Kemenade2023-10-1112-3/+95
| | | | | | | | `main` (#108827) (#110681) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
* [3.12] gh-65052: Prevent pdb from crashing when trying to display objects ↵Miss Islington (bot)2023-10-113-7/+62
| | | | | | | | (GH-110578) (#110734) gh-65052: Prevent pdb from crashing when trying to display objects (GH-110578) (cherry picked from commit c523ce0f434582580a3721e15cb7dd6b56ad0236) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* [3.12] gh-109408: Revert pre-commit whitespace checks pending portable ↵Miss Islington (bot)2023-10-112-34/+110
| | | | | | | | solution (GH-110726) (#110730) gh-109408: Revert pre-commit whitespace checks pending portable solution (GH-110726) (cherry picked from commit de956b263b98bb9928ce4377c42ca8271c4f2682) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-76106: Remove the cleanup lock in test_socket (GH-110539) (GH-110699)Miss Islington (bot)2023-10-111-24/+2
| | | | | | | It does not already work (because it locks only addCleanup(), not doCleanups()), and it is no longer needed since the clean up procedure waits for all test threads to join. (cherry picked from commit f27b83090701b9c215e0d65f1f924fb9330cb649) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-110631: fix wrong indentation in the `Doc/whatsnew` dir ↵Ezio Melotti2023-10-116-191/+191
| | | | | | (GH-110632) (#110690) fix wrong indentation in the `Doc/whatsnew` dir (#110632)
* [3.12] gh-84489: C API: Add tests for Py_BuildValue() (GH-110596) (GH-110680)Miss Islington (bot)2023-10-112-0/+117
| | | | | (cherry picked from commit 5c6e85480ad8365c1b05fdbd678c7867103f7d76) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] GH-110488: Fix two small issues in `pathlib.PurePath.with_name()` ↵Barney Gale2023-10-113-6/+15
| | | | | | | | | | (GH-110651) (#110678) Ensure that `PurePath('foo/a').with_name('.')` raises `ValueError` Ensure that `PureWindowsPath('foo/a').with_name('a:b')` does not raise `ValueError`. (cherry picked from commit b5f7777cb3ecae02d49e0b348968c1ff1ffe21f4)
* [3.12] gh-110662: multiprocessing test_async_timeout() increase timeout ↵Miss Islington (bot)2023-10-111-1/+1
| | | | | | | | | | | (GH-110663) (#110674) gh-110662: multiprocessing test_async_timeout() increase timeout (GH-110663) Increase timeout from 1 second to 30 seconds, if not longer. The important part is that apply_async() takes longer than TIMEOUT2. (cherry picked from commit 790ecf6302e47b84da5d1c3b14dbdf070bce615b) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-110666: Fix multiprocessing test_terminate() elapsed (GH-110667) ↵Miss Islington (bot)2023-10-111-20/+15
| | | | | | | | | | | | | (#110668) gh-110666: Fix multiprocessing test_terminate() elapsed (GH-110667) multiprocessing test_terminate() and test_wait_socket_slow() no longer test the CI performance: no longer check maximum elapsed time. Add CLOCK_RES constant: tolerate a difference of 100 ms. (cherry picked from commit 1556f426da3f2fb5842689999933c8038b65c034) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-110656: Fix logging test_post_fork_child_no_deadlock() if ASAN ↵Miss Islington (bot)2023-10-114-10/+15
| | | | | | | | | | | | (GH-110657) (#110664) gh-110656: Fix logging test_post_fork_child_no_deadlock() if ASAN (GH-110657) Skip test_post_fork_child_no_deadlock() if Python is built with ASAN. Add support.HAVE_ASAN_FORK_BUG. (cherry picked from commit f901f56313610389027cb4eae80d1d4b071aef69) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-110647: Fix signal test_stress_modifying_handlers() (GH-110650) ↵Miss Islington (bot)2023-10-112-2/+4
| | | | | | | | | | | (#110658) gh-110647: Fix signal test_stress_modifying_handlers() (GH-110650) * cycle_handlers() now waits until at least one signal is received. * num_received_signals can be equal to num_sent_signals. (cherry picked from commit e07c37cd5212c9d13749b4d02a1d68e1efcba6cf) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-108303: Move all certificates to `Lib/test/certdata/` (GH-109489) ↵Miss Islington (bot)2023-10-1042-29/+32
| | | | | | | | | | | | | (#109682) * gh-108303: Move all certificates to `Lib/test/certdata/` (GH-109489) (cherry picked from commit e57ecf6bbc59f999d27b125ea51b042c24a07bd9) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Python 3.12 backport: update also `test_nntplib`. Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: T. Wouters <thomas@python.org>
* [3.12] gh-110631: Set three-space indents for reST in EditorConfig ↵Miss Islington (bot)2023-10-101-0/+3
| | | | | | | | | | (GH-110635) (#110637) gh-110631: Set three-space indents for reST in EditorConfig (GH-110635) Set three-space indents in EditorConfig (cherry picked from commit 66a9b1082049855889854bfde617059499c26dd2) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] GH-109408: Move the C file whitespace check from patchcheck to ↵Adam Turner2023-10-103-90/+23
| | | | | pre-commit (GH-109890) (#110636) (cherry picked from commit f5edb56328b46f262b74a53343b8098a3934f761)
* [3.12] GH-109408: Move the Python file whitespace check from patchcheck to ↵Miss Islington (bot)2023-10-102-25/+16
| | | | | | | | | pre-commit (GH-109891) (#110633) GH-109408: Move the Python file whitespace check from patchcheck to pre-commit (GH-109891) (cherry picked from commit 08ec4a1dbf66383303de9ce5cb55b2b437ef92c0) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] Don't doubly-parallelise sphinx-lint (GH-110617) (#110626)Miss Islington (bot)2023-10-101-0/+1
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] gh-110388: Add tests for tty (GH-110394) (#110621)Miss Islington (bot)2023-10-102-0/+81
| | | | | cherry picked from commit 7f702b26dbbf24ab5ef2be5444ae652300733b5b) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-81002: Add tests for termios (GH-110386) (GH-110619)Miss Islington (bot)2023-10-102-0/+221
| | | | | (cherry picked from commit 92a9e980245156bf75ede0869f8ba9512e04d2eb) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-101100: Fix sphinx warnings in `library/socketserver.rst` ↵Miss Islington (bot)2023-10-102-26/+52
| | | | | | | (GH-110207) (GH-110623) (cherry picked from commit 756062b296df6242ba324e4cdc8f3e38bfc83617) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-110378: Fix test_async_gen_propagates_generator_exit in ↵Miss Islington (bot)2023-10-101-9/+5
| | | | | | | | test_contextlib_async (GH-110500) (#110610) It now fails if the original bug is not fixed, and no longer produce ResourceWarning with fixed code. (cherry picked from commit 5aa62a8de15212577a13966710b3aede46e93824) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-110590: Fix a bug where _sre.compile would overwrite exceptions ↵Miss Islington (bot)2023-10-103-0/+9
| | | | | | | | | (GH-110591) (#110613) TypeError would be overwritten by OverflowError if 'code' param contained non-ints. (cherry picked from commit 344d3a222a7864f8157773749bdd77d1c9dfc1e6) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-110558: Enable ruff's pyupgrade rules when running on Argument ↵Miss Islington (bot)2023-10-104-5/+20
| | | | | | | | Clinic (GH-110603) (#110609) gh-110558: Enable ruff's pyupgrade rules when running on Argument Clinic (GH-110603) (cherry picked from commit fc811c8d205db9c19f42890e2c4193a0c2f87965) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-78469: Declare missing sethostname for Solaris 10 (GH-109447) ↵Miss Islington (bot)2023-10-104-2/+23
| | | | | | | | (#110580) Add OS version specific macro for Solaris: Py_SUNOS_VERSION. (cherry picked from commit 3b1580af07c0ce90d1c2073ab087772283d7e3b9) Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
* [3.12] gh-110378: Close invalid generators in contextmanager and ↵Miss Islington (bot)2023-10-104-7/+43
| | | | | | | | | asynccontextmanager (GH-110499) (#110588) contextmanager and asynccontextmanager context managers now close an invalid underlying generator object that yields more then one value. (cherry picked from commit 96fed66a65097eac2dc528ce29c9ba676bb07689) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-110558: Run ruff on Argument Clinic in CI (#110559) (#110598)Alex Waygood2023-10-105-3/+21
|