summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [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
|
* [3.12] gh-109408: Add the docs whitespace check from patchcheck to ↵Miss Islington (bot)2023-10-102-33/+13
| | | | | | | | | | pre-commit (GH-109854) (#110594) gh-109408: Add the docs whitespace check from patchcheck to pre-commit (GH-109854) (cherry picked from commit 7426ed0347d66f7ef61ea7ae6c3163258b8fb128) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] Add some 'meta hooks' to our pre-commit config (GH-110587) (#110599)Miss Islington (bot)2023-10-101-0/+5
| | | | | | Add some 'meta hooks' to our pre-commit config (GH-110587) (cherry picked from commit d5ec77fafd352b4eb290b86d70e4d0b4673459eb) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] Remove unused `SPHINXLINT` var from `Doc/Makefile`. (GH-110570) (#110585)Miss Islington (bot)2023-10-101-1/+0
| | | | | | | | Remove unused `SPHINXLINT` var from `Doc/Makefile`. (GH-110570) Remove unused `SPHINXLINT` var. (cherry picked from commit bdbe43c7d0ad5ebda0232a4ab39689ea79a9733a) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* [3.12] gh-110519: Improve deprecation warning in the gettext module ↵Miss Islington (bot)2023-10-093-51/+144
| | | | | | | | | | | | | (GH-110520) (GH-110563) Deprecation warning about non-integer numbers in gettext now always refers to the line in the user code where gettext function or method is used. Previously, it could refer to a line in gettext code. Also, increase test coverage for NullTranslations and domain-aware functions like dngettext(). (cherry picked from commit 326c6c4e07137b43c49b74bd5528619360080469) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-109191: Fix build with newer editline (gh-110239) (gh-110562)Miss Islington (bot)2023-10-095-1/+31
| | | | | | gh-109191: Fix build with newer editline (gh-110239) (cherry picked from commit f4cb0d27cc08f490c42a22e646eb73cc7072d54a) Co-authored-by: Bo Anderson <mail@boanderson.me>
* [3.12] gh-110549: Remove unused includes of <stddef.h> in _testcapi ↵Serhiy Storchaka2023-10-093-6/+0
| | | | | | | (GH-110552) (GH-110553) (cherry picked from commit 89df5b73d07872d554da60b455b46c98e01a022d) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-110437: Allow overriding VCRuntimeDLL with a semicolon separated ↵Miss Islington (bot)2023-10-092-1/+6
| | | | | | | | list of DLLs to bundle (GH-110470) gh-110437: Allow overriding VCRuntimeDLL with a semicolon separated list of DLLs to bundle (GH-110470) (cherry picked from commit 12cc6792d0ca1d0b72712d77c6efcb0aa0c7e7ba) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.12] gh-110525: Cover PySet_Add corner case with frozenset objects ↵Miss Islington (bot)2023-10-091-0/+37
| | | | | | | (GH-110544) (GH-110554) (cherry picked from commit ea39c877c0a8e7a717f2e4bf7d92a3a8780e67c0) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-109286: Update macOS installer to use SQLite 3.43.1 (GH-110482) ↵Miss Islington (bot)2023-10-092-3/+4
| | | | | | | (#110550) (cherry picked from commit 48419a50b44a195ad7de958f479a924e7c2d3e1b) Co-authored-by: jtranquilli <76231120+jtranquilli@users.noreply.github.com>
* [3.12] gh-110525: Add CAPI tests for set and frozenset objects (GH-110526). ↵Nikita Sobolev2023-10-096-1/+383
| | | | | (GH-110547) (cherry picked from commit c49edd7d9c5395a6a6696a4846f56bc8b2b22792)
* [3.12] gh-110497: Add note about `OSError` being an alias to `IOError` in ↵Miss Islington (bot)2023-10-095-9/+11
| | | | | | | | docs (GH-110498) (#110546) gh-110497: Add note about `OSError` being an alias to `IOError` in docs (GH-110498) (cherry picked from commit 5e7edac7717bfe5f3c533d83ddd0f564db8de40b) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-109151: Revert readline support in the sqlite3 CLI (#110542)Serhiy Storchaka2023-10-092-5/+0
| | | | | Revert "[3.12] gh-109151: Enable readline in the sqlite3 CLI (GH-109152) (#110352)" This reverts commit bc1fe3549b32896ef0cbae3d2220ebeaf111d9b8.
* [3.12] gh-109286: Update Windows installer to use SQLite 3.43.1 (GH-110403) ↵Miss Islington (bot)2023-10-094-3/+4
| | | | | | | | | | (#110478) gh-109286: Update Windows installer to use SQLite 3.43.1 (GH-110403) (cherry picked from commit 201dc11aeb4699de3c5ebaea9798796c30087bcc) Co-authored-by: jtranquilli <76231120+jtranquilli@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-110514: Add PY_THROW to `sys.setprofile` events (GH-110524) (#110541)Miss Islington (bot)2023-10-093-1/+27
| | | | | | gh-110514: Add PY_THROW to `sys.setprofile` events (GH-110524) (cherry picked from commit dd4bb0529e44ac6f75a9ebbfcbf5d73dc251b7a7) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* [3.12] gh-110534 fix a URL redirect to wikipedia article on Fibonacci ↵Miss Islington (bot)2023-10-091-1/+1
| | | | | | | | numbers (GH-110535) (#110536) gh-110534 fix a URL redirect to wikipedia article on Fibonacci numbers (GH-110535) (cherry picked from commit 892ee72b3622de30acd12576b59259fc69e2e40a) Co-authored-by: partev <petrosyan@gmail.com>
* [3.12] gh-110237: Check `PyList_Append` for errors in `_PyEval_MatchClass` ↵Miss Islington (bot)2023-10-082-3/+12
| | | | | | | | (GH-110238) (#110511) gh-110237: Check `PyList_Append` for errors in `_PyEval_MatchClass` (GH-110238) (cherry picked from commit dd9d781da30aa3740e54c063a40413c542d78c25) Co-authored-by: denballakh <47365157+denballakh@users.noreply.github.com>
* [3.12] Update floatingpoint.rst (GH-110509) (#110513)Miss Islington (bot)2023-10-081-1/+1
| | | | | | | | | | | | | | | | Update floatingpoint.rst (GH-110509) This commit removes a ':'. I believe the extra colon causes a display error. What I believe to be an error: Above this expression `round(math.pi, ndigits=2) == round(22 / 7, ndigits=2)` the page displays `.. doctest::`. What I observed: After I remove the extra colon, the page does not display `.. doctest::` (cherry picked from commit 8e56d551ceef37a307280bcc5303bf69ccc9f9c1) Co-authored-by: zipperer <47086307+zipperer@users.noreply.github.com>
* [3.12] gh-109848: Make test_rot13_func in test_codecs independent ↵Miss Islington (bot)2023-10-071-1/+2
| | | | | | | (GH-109850) (GH-110504) (cherry picked from commit b987fdb19b981ef6e7f71b41790b5ed4e2064646) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-109864: Make test_gettext tests order independent (GH-109866) ↵Miss Islington (bot)2023-10-071-2/+13
| | | | | | | (GH-110502) (cherry picked from commit 1aad4fc5dba993899621de86ae5955883448d6f6) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] GH-110455: Guard `assert(tstate->thread_id > 0)` with `GH-ifndef ↵Miss Islington (bot)2023-10-062-2/+5
| | | | | | | | HAVE_PTHREAD_STUBS` (GH-110487) (GH-110491) GH-110455: Guard `assert(tstate->thread_id > 0)` with `GH-ifndef HAVE_PTHREAD_STUBS` (GH-110487) (cherry picked from commit 5fd8821cf8eb1fe2e8575f8c7cc747cf78855a88) Co-authored-by: Brett Cannon <brett@python.org>
* [3.12] Fix typo in Doc/library/textwrap.rst (GH-110328) (#110473)Miss Islington (bot)2023-10-061-1/+1
| | | | Co-authored-by: InSync <122007197+InSyncWithFoo@users.noreply.github.com>
* [3.12] gh-110184: Fix subprocess test_pipesize_default() (GH-110465) (#110471)Miss Islington (bot)2023-10-061-18/+23
| | | | | | | | | | gh-110184: Fix subprocess test_pipesize_default() (GH-110465) For proc.stdin, get the size of the read end of the test pipe. Use subprocess context manager ("with proc:"). (cherry picked from commit d023d4166b255023dac448305270350030101481) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-103053: Fix test_tools.test_freeze on FreeBSD (GH-110451) (#110456)Miss Islington (bot)2023-10-062-14/+22
| | | | | | | | | | | | | | | | gh-103053: Fix test_tools.test_freeze on FreeBSD (GH-110451) Fix test_tools.test_freeze on FreeBSD: run "make distclean" instead of "make clean" in the copied source directory to remove also the "python" program. Other test_freeze changes: * Log executed commands and directories, and the current directory. * No longer uses make -C option to change the directory, instead use subprocess cwd parameter. (cherry picked from commit a4baa9e8ac62cac3ea6363b15ea585b1998ea1f9) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] Add support.MS_WINDOWS constant (#110446) (#110452)Victor Stinner2023-10-0610-23/+27
| | | | | Add support.MS_WINDOWS constant (#110446) (cherry picked from commit e0c44377935de3491b2cbe1e5f87f8b336fdc922)
* [3.12] gh-103053: Fix make check-clean-src: check "python" program ↵Miss Islington (bot)2023-10-062-1/+5
| | | | | | | | | | | (GH-110449) (#110453) gh-103053: Fix make check-clean-src: check "python" program (GH-110449) "make check-clean-src" now also checks if the "python" program is found in the source directory: fail with an error if it does exist. (cherry picked from commit a155f9f3427578ca5706d27e20bd0576f0395073) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-109888: Fix test_os _kill_with_event() on Windows (GH-110421) ↵Miss Islington (bot)2023-10-051-23/+27
| | | | | | | | | | | | | | | | | | | | (#110442) gh-109888: Fix test_os _kill_with_event() on Windows (GH-110421) Replace os.kill() with proc.kill() which catchs PermissionError. Rewrite _kill_with_event(): * Use subprocess context manager ("with proc:"). * Use sleeping_retry() to wait until the child process is ready. * Replace SIGINT with proc.kill() on error. * Replace 10 seconds with SHORT_TIMEOUT to wait until the process is ready. * Replace 0.5 seconds with SHORT_TIMEOUT to wait for the process exit. (cherry picked from commit aaf297c048694cd9652790f8b74e69f7ddadfbde) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-110393: Remove watchdog with hardcoded timeout (GH-110400) (#110445)Miss Islington (bot)2023-10-052-9/+0
| | | | | | | | | | | | | gh-110393: Remove watchdog with hardcoded timeout (GH-110400) test_builtin and test_socketserver no longer use signal.alarm() to implement a watchdog with a hardcoded timeout (2 and 60 seconds). Python test runner regrtest has two watchdogs: faulthandler and timeout on running worker processes. Tests using short hardcoded timeout can fail on slowest buildbots just because the timeout is too short. (cherry picked from commit 1328fa31fe9c72748fc6fd11d017c82aafd48a49) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-110429: Fix race condition in "make regen-all" (GH-110433) (#110438)Miss Islington (bot)2023-10-051-2/+2
| | | | | | | | | | | gh-110429: Fix race condition in "make regen-all" (GH-110433) "make regen-pegen" now creates a temporary file called "parser.c.new" instead of "parser.new.c". Previously, if "make clinic" was run in parallel with "make regen-all", clinic may try but fail to open "parser.new.c" if the temporay file was removed in the meanwhile. (cherry picked from commit fb6c4ed2bbb2a867d5f0b9a94656e4714be5d9c2) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-110167: Increase support.LOOPBACK_TIMEOUT to 10 seconds (#110413) ↵Victor Stinner2023-10-052-14/+11
| | | | | | | | | | | | (#110427) gh-110167: Increase support.LOOPBACK_TIMEOUT to 10 seconds (#110413) Increase support.LOOPBACK_TIMEOUT from 5 to 10 seconds. Also increase the timeout depending on the --timeout option. For example, for a test timeout of 40 minutes (ARM Raspbian 3.x), use LOOPBACK_TIMEOUT of 20 seconds instead of 5 seconds before. (cherry picked from commit 0db2f1475e6539e1954e1f8bd53e005c3ecd6a26)
* [3.12] gh-110383: Swap 'the all' -> 'all the' in socket docs (GH-110434) ↵Miss Islington (bot)2023-10-051-1/+1
| | | | | | (#110435) Co-authored-by: Bradley Reynolds <bradley.reynolds@darbia.dev>