]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Nikita Sobolev [Wed, 8 Nov 2023 16:56:24 +0000 (19:56 +0300)]
[3.12] gh-108303: Move more typing related files to Lib/test/typinganndata (GH-111825) (#111859)
[3.12] gh-108303: Move more typing related files to Lib/test/typinganndata(GH-111825)
Miss Islington (bot) [Wed, 8 Nov 2023 14:45:17 +0000 (15:45 +0100)]
[3.12] Glossary: Add "static type checker" (GH-111837) (#111854)
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>
Miss Islington (bot) [Tue, 7 Nov 2023 22:04:29 +0000 (23:04 +0100)]
[3.12] gh-111806: Fix `test_recursion` in `test_richcmp` on WASI builds (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>
Miss Islington (bot) [Tue, 7 Nov 2023 12:06:21 +0000 (13:06 +0100)]
[3.12] gh-111765: Move old PyFloat_* tests to 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>
Miss Islington (bot) [Tue, 7 Nov 2023 01:00:16 +0000 (02:00 +0100)]
[3.12] gh-111729: update generic syntax for `typing.Concatenate` sample code in `Doc/library/typing.rst` (GH-111734) (#111814)
(cherry picked from commit
c3e19c3a62e82b9e77563e934059895b6230de6e )
Co-authored-by: 方糖 <cubesugarcheese@qq.com>
Miss Islington (bot) [Mon, 6 Nov 2023 11:31:58 +0000 (12:31 +0100)]
[3.12] gh-101180: Fix a bug where iso2022_jp_3 and iso2022_jp_2004 codecs 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>
Miss Islington (bot) [Sun, 5 Nov 2023 08:12:57 +0000 (09:12 +0100)]
[3.12] gh-111495: Add tests for PyComplex C API (GH-111591) (GH-111753)
(cherry picked from commit
24b5cbd3dce3fe37cdc787ccedd1e73a4f8cfc3c )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Miss Islington (bot) [Sun, 5 Nov 2023 08:01:31 +0000 (09:01 +0100)]
[3.12] gh-111495: Add tests for PyFloat C API (GH-111624) (GH-111752)
(cherry picked from commit
b452202a11c4cb60f69a098a0076a8a8aabade38 )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Miss Islington (bot) [Sun, 5 Nov 2023 04:28:58 +0000 (05:28 +0100)]
[3.12] gh-111747: DOC: fix moved link to Documentation Translations (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>
Miss Islington (bot) [Sat, 4 Nov 2023 19:55:55 +0000 (20:55 +0100)]
[3.12] gh-111724: Fix doctest `ResourceWarning` in `howto/descriptor.rst` (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>
Serhiy Storchaka [Sat, 4 Nov 2023 10:28:34 +0000 (12:28 +0200)]
[3.12] gh-111495: Test C API functions with extreme sizes and indices (GH-111631) (GH-111731)
(cherry picked from commit
a8e1f474c20ab15140dd0cfcb96b696857907a60 )
Miss Islington (bot) [Sat, 4 Nov 2023 10:21:06 +0000 (11:21 +0100)]
[3.12] gh-111159: Fix `SyntaxError` doctests for non-builtin exception 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>
Miss Islington (bot) [Sat, 4 Nov 2023 06:29:20 +0000 (07:29 +0100)]
[3.12] gh-111644: Fix asyncio test_unhandled_exceptions() (GH-111713) (#111718)
gh-111644: Fix asyncio test_unhandled_exceptions() (GH-111713)
Fix test_unhandled_exceptions() of test_asyncio.test_streams: break
explicitly a reference cycle.
Fix also StreamTests.tearDown(): the loop must not be closed
explicitly, but using set_event_loop() which takes care of shutting
down the executor with executor.shutdown(wait=True).
BaseEventLoop.close() calls executor.shutdown(wait=False).
(cherry picked from commit
ac01e2243a1104b2154c0d1bdbc9f8d5b3ada778 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Sat, 4 Nov 2023 00:56:34 +0000 (01:56 +0100)]
[3.12] gh-111644: Fix support threading_cleanup() (GH-111714) (#111716)
gh-111644: Fix support threading_cleanup() (GH-111714)
Copy the list of dangling threads to make sure that the list of
"Dangling thread" is complete. Previously, the list was incomplete if
threads completed just before the list was displayed.
Changes:
* Rewrite the warning to make it easier to understand.
* Use support.sleeping_retry().
* threading_cleanup() no longer copies threading._dangling,
but only counts the number of dangling thread.
* Remove support.gc_support() call.
(cherry picked from commit
f62c7ccf9abf6e0493978da9cf9ca43adcd403f9 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Jelle Zijlstra [Fri, 3 Nov 2023 14:02:07 +0000 (07:02 -0700)]
[3.12] gh-111654: remove redundant decref in LOAD_FROM_DICT_OR_DEREF (GH-111655) (#111674)
(cherry picked from commit
3a1b09e6d070778d78d81084f88d37377d38ee9b )
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Miss Islington (bot) [Fri, 3 Nov 2023 06:28:55 +0000 (07:28 +0100)]
[3.12] gh-54434: Make difflib.rst doctests pass. (GH-111677) (#111678)
gh-54434: Make difflib.rst doctests pass. (GH-111677)
(cherry picked from commit
0d3df272fbd131bff7f02d4d4279ad1e35081121 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Thu, 2 Nov 2023 22:58:20 +0000 (23:58 +0100)]
[3.12] Fix typo in documentation of `SysLogHandler.createSocket` (GH-111665) (#111669)
(cherry picked from commit
489b80640ff9c4f10b25da6d562b06c62a10a76b )
Miss Islington (bot) [Thu, 2 Nov 2023 12:04:27 +0000 (13:04 +0100)]
[3.12] gh-111625: Fix link to Info-ZIP homepage (GH-111626) (#111639)
Co-authored-by: partev <petrosyan@gmail.com>
Kumar Aditya [Thu, 2 Nov 2023 08:18:49 +0000 (13:48 +0530)]
[3.12] GH-110894: Call loop exception handler for exceptions in client_connected_cb (GH-111601) (#111632)
Call loop exception handler for exceptions in `client_connected_cb` of `asyncio.start_server` so that applications can handle it..
(cherry picked from commit
229f44d353c71185414a072017f46f125676bdd6 )
Miss Islington (bot) [Wed, 1 Nov 2023 20:01:28 +0000 (21:01 +0100)]
[3.12] gh-111253: Fix error checking in _socket module init (GH-111254) (#111299)
gh-111253: Fix error checking in _socket module init (GH-111254)
(cherry picked from commit
3052c098ca2779c2d9ab9800dabe66d0efa01794 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Wed, 1 Nov 2023 19:58:02 +0000 (20:58 +0100)]
[3.12] gh-111295: Fix error checking in time extension module init (GH-111296) (#111300)
gh-111295: Fix error checking in time extension module init (GH-111296)
Introduce ADD_INT macro wrapper for PyModule_AddIntConstant()
(cherry picked from commit
81b03e78101c97c1d3fe5f90908bbf94e83d7df1 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Wed, 1 Nov 2023 18:23:39 +0000 (19:23 +0100)]
[3.12] gh-111495: Add tests for PyBytes and PyByteArray C API (GH-111496) (GH-111607)
(cherry picked from commit
97b3cd38d105fd891ba46dd27d08f03d1c6dd348 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Victor Stinner [Wed, 1 Nov 2023 17:13:31 +0000 (18:13 +0100)]
[3.12] gh-110968: Py_MOD_PER_INTERPRETER_GIL_SUPPORTED was added to 3.12 (#111588)
Constants like Py_MOD_PER_INTERPRETER_GIL_SUPPORTED were only added
to the limited C API version 3.12 and newer.
Miss Islington (bot) [Wed, 1 Nov 2023 10:43:14 +0000 (11:43 +0100)]
[3.12] gh-111576: Improve documention for tkinter.messagebox (GH-111578) (GH-111597)
(cherry picked from commit
eaf67e37a2da28c1241362e3b4ff1202945c83c5 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sergey B Kirpichev [Wed, 1 Nov 2023 07:43:56 +0000 (10:43 +0300)]
[3.12] gh-111495: add stub files for C API test modules (GH-111586) (GH-111592)
This is to reduce merge conflicts (Modules/Setup.stdlib.in) for
subsequent pull requests for the issue.
(cherry picked from commit
33ed5fa69dbe25d64a910c450be527f4db9dc5dd )
Miss Islington (bot) [Wed, 1 Nov 2023 03:51:24 +0000 (04:51 +0100)]
[3.12] gh-110367: Make regrtest --verbose3 compatible with --huntrleaks -jN (GH-111577) (#111589)
gh-110367: Make regrtest --verbose3 compatible with --huntrleaks -jN (GH-111577)
"./python -m test -j1 -R 3:3 --verbose3" now works as expected, since
run_single_test() does not replace sys.stdout with StringIO in this
case.
(cherry picked from commit
d9a5530d2327efa1fe66a04d31b5c67e42dbcd9c )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Tue, 31 Oct 2023 22:14:21 +0000 (23:14 +0100)]
[3.12] gh-111282: Fix NamedTemporaryFile example code (GH-111283) (GH-111579)
(cherry picked from commit
102685c4c8481ec5d9c132fcf06b46057e815969 )
Co-authored-by: Krzysiek Karbowiak <krzysztof.karbowiak@interia.pl>
Miss Islington (bot) [Tue, 31 Oct 2023 22:01:28 +0000 (23:01 +0100)]
[3.12] gh-111181: Fix enum doctests (GH-111180) (GH-111518)
gh-111181: Fix enum doctests (GH-111180)
(cherry picked from commit
c4dc5a6ae8aa13abb743182df088f1a3526d1bcd )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Pablo Galindo Salgado [Tue, 31 Oct 2023 18:18:11 +0000 (18:18 +0000)]
[3.12] gh-109181: Speed up Traceback object creation by lazily compute the line number (GH-111548) (#111551)
.
(cherry picked from commit
abb15420c11d9dda9c89f74eac8417240b321109 )
Miss Islington (bot) [Tue, 31 Oct 2023 16:40:12 +0000 (17:40 +0100)]
[3.12] gh-102249: Expand sys.call_tracing documentation (GH-102806) (#111557)
Co-authored-by: Quentin Peter <impact27@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Tue, 31 Oct 2023 16:27:37 +0000 (17:27 +0100)]
[3.12] gh-93607: document `root` attribute of `iterparse` (GH-99410) (#111555)
Co-authored-by: Prometheus3375 <35541026+Prometheus3375@users.noreply.github.com>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Tue, 31 Oct 2023 16:22:50 +0000 (17:22 +0100)]
[3.12] gh-106861: Docs: Add availability directives to all Unix-only modules (GH-108975) (#111553)
Co-authored-by: xzmeng <aumo@foxmail.com>
Miss Islington (bot) [Tue, 31 Oct 2023 07:26:31 +0000 (08:26 +0100)]
[3.12] gh-111531: Tkinter: fix reference leaks in bind_class() and bind_all() (GH-111533) (GH-111535)
(cherry picked from commit
e3353c498d79f0f3f108a9baf8807a12e77c2ebe )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Hugo van Kemenade [Tue, 31 Oct 2023 06:49:24 +0000 (08:49 +0200)]
[3.12] gh-111301: Move `importlib.resources.files` change to What's new in Python 3.12 (#111512) (#111534)
Co-authored-by: Karolina Surma <33810531+befeleme@users.noreply.github.com>
Miss Islington (bot) [Mon, 30 Oct 2023 21:47:22 +0000 (22:47 +0100)]
[3.12] Remove myself from typing CODEOWNERS (GH-111523) (#111525)
Co-authored-by: Ken Jin <kenjin@python.org>
Pablo Galindo Salgado [Mon, 30 Oct 2023 19:53:01 +0000 (19:53 +0000)]
[3.12] gh-111366: Correctly show custom syntax error messages in the codeop module functions (GH-111384). (#111517)
Miss Islington (bot) [Mon, 30 Oct 2023 18:00:57 +0000 (19:00 +0100)]
[3.12] gh-111284: Make multiprocessing tests with threads faster and more reliable (GH-111285) (GH-111510)
(cherry picked from commit
624ace5a2f02715d084c29eaf2211cd0dd550690 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 30 Oct 2023 17:36:00 +0000 (18:36 +0100)]
[3.12] gh-108082: C API: Add tests for PyErr_WriteUnraisable() (GH-111455) (GH-111507)
Also document the behavior when called with NULL.
(cherry picked from commit
bca330542912532baa33af20a107fcf956cf007a )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 29 Oct 2023 19:43:53 +0000 (20:43 +0100)]
[3.12] gh-111165: Remove documentation for moved functions (GH-111467) (GH-111471)
(cherry picked from commit
4d6bdf8aabcc92303041420a96750fbc52c9f213 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 29 Oct 2023 19:39:27 +0000 (20:39 +0100)]
[3.12] gh-101100: Fix sphinx warnings in `library/asyncio-eventloop.rst` (GH-111222) (#111469)
gh-101100: Fix sphinx warnings in `library/asyncio-eventloop.rst` (GH-111222)
* gh-101100: Fix sphinx warnings in `library/asyncio-eventloop.rst`
* Update Doc/library/socket.rst
* Update asyncio-eventloop.rst
* Update socket.rst
---------
(cherry picked from commit
46389c32750f79ab3f398a0132cd002e8a64f809 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Sun, 29 Oct 2023 17:29:29 +0000 (18:29 +0100)]
[3.12] gh-111347: Remove wrong assertion in test_sendfile (GH-111377) (#111461)
gh-111347: Remove wrong assertion in test_sendfile (GH-111377)
Windows is different.
(cherry picked from commit
fa35b9e89b2e207fc8bae9eb0284260d0d922e7a )
Co-authored-by: zcxsythenew <30565051+zcxsythenew@users.noreply.github.com>
Miss Islington (bot) [Sat, 28 Oct 2023 23:40:02 +0000 (01:40 +0200)]
[3.12] gh-111426: Remove `test_cmd.test_coverage` (GH-111427) (#111432)
gh-111426: Remove `test_cmd.test_coverage` (GH-111427)
(cherry picked from commit
66bea2555dc7b3dd18282cc699fe9a22dea50de3 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sat, 28 Oct 2023 18:42:53 +0000 (20:42 +0200)]
[3.12] gh-79033: Try to fix asyncio.Server.wait_closed() again (GH-111336) (#111424)
gh-79033: Try to fix asyncio.Server.wait_closed() again (GH-111336)
* Try to fix asyncio.Server.wait_closed() again
I identified the condition that `wait_closed()` is intended
to wait for: the server is closed *and* there are no more
active connections.
When this condition first becomes true, `_wakeup()` is called
(either from `close()` or from `_detach()`) and it sets `_waiters`
to `None`. So we just check for `self._waiters is None`; if it's
not `None`, we know we have to wait, and do so.
A problem was that the new test introduced in 3.12 explicitly
tested that `wait_closed()` returns immediately when the server
is *not* closed but there are currently no active connections.
This was a mistake (probably a misunderstanding of the intended
semantics). I've fixed the test, and added a separate test that
checks exactly for this scenario.
I also fixed an oddity where in `_wakeup()` the result of the
waiter was set to the waiter itself. This result is not used
anywhere and I changed this to `None`, to avoid a GC cycle.
* Update Lib/asyncio/base_events.py
---------
(cherry picked from commit
26553695592ad399f735d4dbaf32fd871d0bb1e1 )
Co-authored-by: Guido van Rossum <guido@python.org>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Miss Islington (bot) [Sat, 28 Oct 2023 07:57:55 +0000 (09:57 +0200)]
[3.12] CI: Include Python version in cache.config key (GH-111410) (#111421)
CI: Include Python version in cache.config key (GH-111410)
* Include Python version in cache.config key, after Python setup
* Remove EOL 3.7 from branch triggers
(cherry picked from commit
9d4a1a480b65196c3aabbcd2d165d1fb86d0c8e5 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Sat, 28 Oct 2023 05:27:33 +0000 (07:27 +0200)]
[3.12] gh-111342: fix typo in math.sumprod (GH-111416) (gh-111419)
Miss Islington (bot) [Fri, 27 Oct 2023 23:36:05 +0000 (01:36 +0200)]
[3.12] gh-110205: Fix asyncio ThreadedChildWatcher._join_threads() (GH-110884) (#111412)
- `ThreadedChildWatcher.close()` is now *officially* a no-op; `_join_threads()` never did anything.
- Threads created by that class are now named `asyncio-waitpid-NNN`.
- `test.test_asyncio.utils.TestCase.close_loop()` now waits for the child watcher's threads, but not forever; if a thread hangs, it raises `RuntimeError`.
(cherry picked from commit
c3bb10c9303503e7b55a7bdf9acfa6b3bcb699c6 )
Co-authored-by: Guido van Rossum <guido@python.org>
Miss Islington (bot) [Fri, 27 Oct 2023 18:44:33 +0000 (20:44 +0200)]
[3.12] gh-111406: Fix broken link to bpython's site (GH-111407) (#111408)
gh-111406: Fix broken link to bpython's site (GH-111407)
(cherry picked from commit
8a158a753c48d166ebceae0687e88ae0c0725c02 )
Co-authored-by: Zack Cerza <zack@cerza.org>
Miss Islington (bot) [Fri, 27 Oct 2023 15:15:06 +0000 (17:15 +0200)]
[3.12] gh-111276: Clarify docs and comments about the role of LC_CTYPE (GH-111319) (#111391)
Fix locale.LC_CTYPE documentation to no longer mention string.lower() et al. Those functions were removed in Python 3.0:
https://docs.python.org/2/library/string.htmlGH-deprecated-string-functions
Also, fix a comment in logging about locale-specific behavior of `str.lower()`.
(cherry picked from commit
6d42759c5e47ab62d60a72b4ff15d29864554579 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Fri, 27 Oct 2023 15:01:00 +0000 (17:01 +0200)]
[3.12] gh-111343: Fix `itertools` docs: `start` arg is optional for `count` (gh-111344) (gh-111385)
Miss Islington (bot) [Fri, 27 Oct 2023 13:29:55 +0000 (15:29 +0200)]
[3.12] Fix typos in import system docs (GH-111396) (#111397)
Fix typos in import system docs (GH-111396)
(cherry picked from commit
9a2f2f46caa556eae4c3ac3b45efa85bd91cc807 )
Co-authored-by: Jonathan Berthias <jvberthias@gmail.com>
Hugo van Kemenade [Fri, 27 Oct 2023 13:08:45 +0000 (16:08 +0300)]
[3.12] gh-111187: Postpone removal version for locale.getdefaultlocale() to 3.15 (GH-111188) (#111323)
Miss Islington (bot) [Fri, 27 Oct 2023 04:02:17 +0000 (06:02 +0200)]
[3.12] gh-111380: Show SyntaxWarnings only once when parsing if invalid syntax is encouintered (GH-111381) (#111382)
gh-111380: Show SyntaxWarnings only once when parsing if invalid syntax is encouintered (GH-111381)
(cherry picked from commit
3d2f1f0b830d86f16f42c42b54d3ea4453dac318 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Thu, 26 Oct 2023 22:44:47 +0000 (00:44 +0200)]
[3.12] GH-94438: Fix RuntimeWarning for jump tests in test_sys_settrace (GH-111369)
(cherry picked from commit
a254120f2f1dd99fa64f12594d1ed19c67df7d64 )
Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Pablo Galindo Salgado [Thu, 26 Oct 2023 21:43:38 +0000 (06:43 +0900)]
[3.12] bpo-43950: handle wide unicode characters in tracebacks (GH-28150) (#111346)
Miss Islington (bot) [Thu, 26 Oct 2023 17:08:41 +0000 (19:08 +0200)]
GH-111293: Fix DirEntry.inode dropping higher bits on Windows (GH-111294)
(cherry picked from commit
b468538d356552f0242763fe44a17b1939e8bd55 )
Co-authored-by: zcxsythenew <30565051+zcxsythenew@users.noreply.github.com>
Miss Islington (bot) [Thu, 26 Oct 2023 13:10:58 +0000 (15:10 +0200)]
[3.12] gh-111348: Fix direct invocation of `test_doctest`; remove `test_doctest.test_coverage` (GH-111349) (#111359)
gh-111348: Fix direct invocation of `test_doctest`; remove `test_doctest.test_coverage` (GH-111349)
(cherry picked from commit
31c05b72c15885ad5ff298de39456d8baed28448 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Miss Islington (bot) [Wed, 25 Oct 2023 18:13:05 +0000 (20:13 +0200)]
[3.12] Docs: Add `restart_events()` and positional arg semantics for `sys.monitoring` (GH-111291) (#111335)
Docs: Add `restart_events()` and positional arg semantics for `sys.monitoring` (GH-111291)
(cherry picked from commit
3f84a19e6291db682fc9a570e7612e80e2ffbbb5 )
Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Wed, 25 Oct 2023 15:28:07 +0000 (17:28 +0200)]
[3.12] gh-111165: Add missed "support." prefix for "verbose" (GH-111327) (GH-111328)
(cherry picked from commit
a4981921aa2c00f3883ef593fde1dbc034e3c304 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 25 Oct 2023 14:08:10 +0000 (16:08 +0200)]
[3.12] gh-108590: Improve sqlite3 docs on encoding issues and how to handle those (GH-108699) (#111324)
Add a guide for how to handle non-UTF-8 text encodings.
Link to that guide from the 'text_factory' docs.
(cherry picked from commit
1262e41842957c3b402fc0cf0a6eb2ea230c828f )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Corvin <corvin@corvin.dev>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Artyom Romanov [Wed, 25 Oct 2023 12:54:05 +0000 (17:54 +0500)]
[3.12] Sync location of `mypy` pin with the `main` branch (#111317)
Serhiy Storchaka [Wed, 25 Oct 2023 11:56:27 +0000 (14:56 +0300)]
[3.12] gh-111165: Move test running code from test.support to libregrtest (GH-111166) (GH-111316)
Remove no longer used functions run_unittest() and run_doctest() from
the test.support module.
(cherry picked from commit
f6a45a03d0e0ef6b00c45a0de9a606b1d23cbd2f )
Miss Islington (bot) [Wed, 25 Oct 2023 11:25:31 +0000 (13:25 +0200)]
[3.12] gh-111174: Fix crash in getbuffer() called repeatedly for empty BytesIO (GH-111210) (GH-111314)
(cherry picked from commit
9da98c0d9a7cc55c67fb0bd3fa162fd3b2c2629b )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Artyom Romanov [Wed, 25 Oct 2023 11:04:55 +0000 (16:04 +0500)]
[3.12] Bump test deps: `ruff` and `mypy` (GH-111288) (#111313)
Bump test deps: `ruff` and `mypy`
Serhiy Storchaka [Wed, 25 Oct 2023 09:10:03 +0000 (12:10 +0300)]
[3.12] gh-111065: Add more tests for the C API with the PySys_ prefix (GH-111067) (GH-111305)
* Move existing tests for PySys_GetObject() and PySys_SetObject() into
specialized files.
* Add test for PySys_GetXOptions() using _testcapi.
* Add tests for PySys_FormatStdout(), PySys_FormatStderr(),
PySys_WriteStdout() and PySys_WriteStderr() using ctypes.
(cherry picked from commit
b2ba2985275d1200e5c44c3f224d754141fc5292 )
Miss Islington (bot) [Wed, 25 Oct 2023 00:32:08 +0000 (02:32 +0200)]
[3.12] gh-102956: Fix returning of empty byte strings after seek in zipfile … (GH-103565) (#111289)
gh-102956: Fix returning of empty byte strings after seek in zipfile … (GH-103565)
(cherry picked from commit
c73b0f35602abf5f283bf64266641f19bc82fce0 )
gh-102956: Fix returning of empty byte strings after seek in zipfile module. This was a regression in 3.12.0 due to a performance enhancement.
Co-authored-by: Jokimax <77680901+Jokimax@users.noreply.github.com>
Miss Islington (bot) [Tue, 24 Oct 2023 21:28:35 +0000 (23:28 +0200)]
[3.12] Fix first parameter name in `tool` functions from `sys.monitoring` (GH-111286) (#111290)
Fix first parameter name in `tool` functions from `sys.monitoring` (GH-111286)
(cherry picked from commit
8b44f3c54bb4f99445c108bc0240c458adae9c6f )
Co-authored-by: Pavel Karateev <lancelote.du.lac@gmail.com>
Miss Islington (bot) [Tue, 24 Oct 2023 17:52:17 +0000 (19:52 +0200)]
[3.12] GH-111182: Update EnumType.__contains__ docs (GH-111184) (GH-111281)
GH-111182: Update EnumType.__contains__ docs (GH-111184)
(cherry picked from commit
c0ea67dd0d67a8ac59c61c777eae26288d3ac0f6 )
Co-authored-by: InSync <122007197+InSyncWithFoo@users.noreply.github.com>
Miss Islington (bot) [Tue, 24 Oct 2023 17:44:46 +0000 (19:44 +0200)]
[3.12] gh-109017: Use non alternate name for Kyiv (GH-109251) (GH-111280)
tzdata provides Kiev as an alternative to Kyiv:
https://sources.debian.org/src/tzdata/2023c-10/backward/?hl=314GH-L314
But Debian moved it to the tzdata-legacy package breaking the test:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=
1050530
This patch switches to the name provided by tzdata.
Also check that the new name is actually available.
(cherry picked from commit
46407fe79ca78051cbf6c80e8b8e70a228f9fa50 )
Co-authored-by: Jochen Sprickerhof <github@jochen.sprickerhof.de>
Miss Islington (bot) [Tue, 24 Oct 2023 16:26:31 +0000 (18:26 +0200)]
[3.12] Revert "Fix a code snippet typo in asyncio docs (GH-108427)" (GH-111271) (GH-111272)
Revert "Fix a code snippet typo in asyncio docs (GH-108427)" (GH-111271)
This reverts commit
7f316763402a7d5556deecc3acd06cb719e189b3 .
The change resulted in a tautology and should not have been made. There
may be an opportunity for additional clarity in this section, but this
change wasn't it :)
(cherry picked from commit
c7d68f907ad3e3aa17546df92a32bddb145a69bf )
Ref: https://github.com/python/cpython/pull/108427#-issuecomment-
1777525740
Co-authored-by: Zachary Ware <zach@python.org>
Miss Islington (bot) [Tue, 24 Oct 2023 15:30:21 +0000 (17:30 +0200)]
[3.12] gh-111151: Convert monospaced directives to :ref: (GH-111152) (#111269)
gh-111151: Convert monospaced directives to :ref: (GH-111152)
(cherry picked from commit
1198076447f35b19a9173866ccb9839f3bcf3f17 )
Co-authored-by: InSync <122007197+InSyncWithFoo@users.noreply.github.com>
Miss Islington (bot) [Tue, 24 Oct 2023 11:53:21 +0000 (13:53 +0200)]
[3.12] gh-75666: Tkinter: add tests for binding (GH-111202) (GH-111255)
(cherry picked from commit
9bb202a1a90ef0edce20c495c9426d9766df11bb )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 24 Oct 2023 08:12:05 +0000 (10:12 +0200)]
[3.12] Fix typo in sys docs (GH-111196) (#111248)
Co-authored-by: James Tocknell <aragilar+github@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Tue, 24 Oct 2023 06:39:26 +0000 (08:39 +0200)]
[3.12] GH-94438: Restore ability to jump over None tests (GH-111243)
(cherry picked from commit
6640f1d8d2462ca0877e1d2789e1721767e9caf2 )
Co-authored-by: Savannah Ostrowski <sostrowski@microsoft.com>
Miss Islington (bot) [Tue, 24 Oct 2023 06:37:41 +0000 (08:37 +0200)]
[3.12] Fix a code snippet typo in asyncio docs (GH-108427) (#111245)
Co-authored-by: A <5249513+Dumeng@users.noreply.github.com>
Miss Islington (bot) [Mon, 23 Oct 2023 19:19:26 +0000 (21:19 +0200)]
[3.12] gh-101100: Fix Sphinx warnings for `fileno` (GH-111118) (#111226)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Mon, 23 Oct 2023 16:09:59 +0000 (18:09 +0200)]
[3.12] Add a version added note for PY_VECTORCALL_ARGUMENTS_OFFSET (GH-110963) (#111219)
Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
Miss Islington (bot) [Mon, 23 Oct 2023 16:03:54 +0000 (18:03 +0200)]
[3.12] typo: missing line of output in pull parser example (GH-111068) (#111217)
Co-authored-by: Don Patterson <37046246+don-patterson@users.noreply.github.com>
Miss Islington (bot) [Mon, 23 Oct 2023 15:49:12 +0000 (17:49 +0200)]
[3.12] gh-106310 - document the __signature__ attribute (GH-106311) (#111145)
Co-authored-by: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Furkan Onder [Mon, 23 Oct 2023 09:50:07 +0000 (12:50 +0300)]
[3.12] gh-67565: Add tests for C-contiguity checks (GH-110951) (GH-111198)
(cherry picked from commit
9376728ce45191fcc0b908c7487ad7985454537e )
Miss Islington (bot) [Mon, 23 Oct 2023 08:11:41 +0000 (10:11 +0200)]
[3.12] gh-110383: Italicize variable name (GH-111206) (#111207)
Co-authored-by: Nick <Nikki1993@users.noreply.github.com>
Miss Islington (bot) [Mon, 23 Oct 2023 07:31:56 +0000 (09:31 +0200)]
[3.12] gh-110383: Added explanation about simplest regex use case for quantifiers. (GH-111110) (#111204)
Co-authored-by: Nick <Nikki1993@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Sun, 22 Oct 2023 19:14:50 +0000 (21:14 +0200)]
[3.12] gh-110196: Fix ipaddress.IPv6Address.__reduce__ (GH-110198) (GH-111191)
(cherry picked from commit
767f416feb551f495bacfff1e9ba1e6672c2f24e )
Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Miss Islington (bot) [Sun, 22 Oct 2023 17:28:09 +0000 (19:28 +0200)]
[3.12] gh-101100: Fix sphinx warnings in `library/asyncio-dev.rst` (GH-111179) (#111185)
gh-101100: Fix sphinx warnings in `library/asyncio-dev.rst` (GH-111179)
* gh-101100: Fix sphinx warnings in `library/asyncio-dev.rst`
* Update Doc/library/asyncio-eventloop.rst
* Update Doc/library/asyncio-eventloop.rst
---------
(cherry picked from commit
8c689c9b88426384a9736c708701923a1ab1da79 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Miss Islington (bot) [Sun, 22 Oct 2023 12:01:24 +0000 (14:01 +0200)]
[3.12] gh-101100: Fix Sphinx warning in `tutorial/introduction.rst` (GH-111173) (#111175)
gh-101100: Fix Sphinx warning in `tutorial/introduction.rst` (GH-111173)
(cherry picked from commit
663cf513b0e973ab7aa4a8609d6616ad2c283f22 )
Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
Miss Islington (bot) [Sat, 21 Oct 2023 19:48:53 +0000 (21:48 +0200)]
[3.12] gh-111085: Fix invalid state handling in TaskGroup and Timeout (GH-111111) (GH-111171)
asyncio.TaskGroup and asyncio.Timeout classes now raise proper RuntimeError
if they are improperly used.
* When they are used without entering the context manager.
* When they are used after finishing.
* When the context manager is entered more than once (simultaneously or
sequentially).
* If there is no current task when entering the context manager.
They now remain in a consistent state after an exception is thrown,
so subsequent operations can be performed correctly (if they are allowed).
(cherry picked from commit
6c23635f2b7067ef091a550954e09f8b7c329e3f )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: James Hilton-Balfe <gobot1234yt@gmail.com>
Miss Islington (bot) [Sat, 21 Oct 2023 19:46:41 +0000 (21:46 +0200)]
[3.12] Synchronize test_contextlib with test_contextlib_async (GH-111000) (GH-111114)
(cherry picked from commit
ff4e53cb747063e95eaec181fd396f062f885ac2 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 21 Oct 2023 18:39:34 +0000 (20:39 +0200)]
[3.12] gh-111159: Fix `doctest` output comparison for exceptions with notes (GH-111160) (#111169)
gh-111159: Fix `doctest` output comparison for exceptions with notes (GH-111160)
(cherry picked from commit
fd60549c0ac6c81f05594a5141d24b4433ae39be )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Serhiy Storchaka [Sat, 21 Oct 2023 17:33:26 +0000 (20:33 +0300)]
[3.12] gh-110918: regrtest: allow to intermix --match and --ignore options (GH-110919) (GH-111167)
Test case matching patterns specified by options --match, --ignore,
--matchfile and --ignorefile are now tested in the order of
specification, and the last match determines whether the test case be run
or ignored.
(cherry picked from commit
9a1fe09622cd0f1e24c2ba5335c94c5d70306fd0 )
Miss Islington (bot) [Sat, 21 Oct 2023 17:07:09 +0000 (19:07 +0200)]
[3.12] gh-111157: Mention `__notes__` in `traceback.format_exception_only` docstring (GH-111158) (#111163)
gh-111157: Mention `__notes__` in `traceback.format_exception_only` docstring (GH-111158)
(cherry picked from commit
5e7727b05232b43589d177c15263d7f4f8c584a0 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sat, 21 Oct 2023 12:57:22 +0000 (14:57 +0200)]
[3.12] gh-110572: Fix potential leaks in test_*_code in _testcapi/getargs.c (GH-110573) (GH-111161)
(cherry picked from commit
f71cd5394efe154ba92228b2b67be910cc1ede95 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sat, 21 Oct 2023 09:18:35 +0000 (11:18 +0200)]
[3.12] gh-110932: Fix regrtest for SOURCE_DATE_EPOCH (GH-111143) (#111154)
gh-110932: Fix regrtest for SOURCE_DATE_EPOCH (GH-111143)
If the SOURCE_DATE_EPOCH environment variable is defined, use its
value as the random seed.
(cherry picked from commit
7237fb578dc9db9dc557759a24d8083425107b91 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Fri, 20 Oct 2023 22:23:15 +0000 (00:23 +0200)]
[3.12] gh-111046: for wasi-threads, export memory as well via the linker (GH-111099) (GH-111141)
gh-111046: for wasi-threads, export memory as well via the linker (GH-111099)
(cherry picked from commit
5dfa71769f547fffa893a89b0b04d963a41b2441 )
Co-authored-by: YAMAMOTO Takashi <yamamoto@midokura.com>
Miss Islington (bot) [Fri, 20 Oct 2023 18:27:35 +0000 (20:27 +0200)]
[3.12] gh-111126: Use `isinstance` instead of `assert[Not]IsInstance` in `test_typing` (GH-111127) (#111130)
gh-111126: Use `isinstance` instead of `assert[Not]IsInstance` in `test_typing` (GH-111127)
(cherry picked from commit
ea7c26e4b89c71234c4a603567a93f0a44c9cc97 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Fri, 20 Oct 2023 12:37:31 +0000 (14:37 +0200)]
gh-110913: Fix WindowsConsoleIO chunking of UTF-8 text (GH-111007)
(cherry picked from commit
11312eae6ec3acf51aacafce4cb6d1a5edfd5f2e )
Co-authored-by: Tamás Hegedűs <sorgloomer@users.noreply.github.com>
Miss Islington (bot) [Fri, 20 Oct 2023 10:22:09 +0000 (12:22 +0200)]
[3.12] Add tests for failing PyUnicode_AsUTF8AndSize() with psize=NULL (GH-111100) (GH-111105)
(cherry picked from commit
b60f05870816019cfd9b2f7d104364613e66fc78 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 20 Oct 2023 08:09:18 +0000 (10:09 +0200)]
[3.12] gh-101100: Fix sphinx warnings in `library/codecs.rst` (GH-110979) (#111070)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Fri, 20 Oct 2023 04:49:41 +0000 (06:49 +0200)]
[3.12] gh-101100: Fix Sphinx warnings in `library/tty.rst` (GH-111079) (#111097)
gh-101100: Fix Sphinx warnings in `library/tty.rst` (GH-111079)
Fix Sphinx warnings in library/tty.rst
(cherry picked from commit
c42c68aa7bd19b0de7f2132ed468bc4ce83d8aa9 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Fri, 20 Oct 2023 04:22:15 +0000 (06:22 +0200)]
[3.12] gh-111092: Make turtledemo run without default root enabled (GH-111093) (#111095)
gh-111092: Make turtledemo run without default root enabled (GH-111093)
Add missing 'root' argument to PanedWindow call.
Other root children already have it.
(cherry picked from commit
b802882fb2bff8b431df661322908c07491f3ce7 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Hugo van Kemenade [Thu, 19 Oct 2023 15:38:58 +0000 (18:38 +0300)]
[3.12] gh-101100: Fix sphinx warnings in `library/getpass.rst` (GH-110461) (#111080)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Thu, 19 Oct 2023 15:35:04 +0000 (17:35 +0200)]
[3.12] gh-109510: Clearly explain "Which Docstrings Are Examined" (GH-109696) (#111077)
Co-authored-by: Unique-Usman <86585626+Unique-Usman@users.noreply.github.com>
Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
Co-authored-by: Jacob Coffee <jacob@z7x.org>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>