Hugo van Kemenade
e7cdcccd26
[3.11] gh-111187: Postpone removal version for locale.getdefaultlocale() to 3.15 (GH-111188) ( #111326 )
2023-10-27 16:08:53 +03:00
Pablo Galindo Salgado
22cde39fbf
[3.11] bpo-43950: handle wide unicode characters in tracebacks (GH-28150) ( #111373 )
2023-10-27 09:46:20 +09:00
Miss Islington (bot)
762aba72eb
[3.11] gh-111348: Fix direct invocation of test_doctest; remove test_doctest.test_coverage (GH-111349) ( #111360 )
...
gh-111348: Fix direct invocation of `test_doctest`; remove `test_doctest.test_coverage` (GH-111349)
(cherry picked from commit 31c05b72c1 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2023-10-26 13:12:27 +00:00
Savannah Ostrowski
12c7e5071c
[3.11] GH-94438: Restore ability to jump over None tests (GH-111338)
...
(cherry picked from commit 6640f1d )
2023-10-25 20:47:16 +00:00
Miss Islington (bot)
6fea61a9e0
[3.11] gh-111165: Add missed "support." prefix for "verbose" (GH-111327) (GH-111329)
...
(cherry picked from commit a4981921aa )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2023-10-25 15:15:50 +00:00
Miss Islington (bot)
07664c9ddb
[3.11] gh-108590: Improve sqlite3 docs on encoding issues and how to handle those (GH-108699) ( #111325 )
...
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 1262e41842 )
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>
2023-10-25 14:07:44 +00:00
Serhiy Storchaka
fc9a5ef1a8
[3.11] [3.12] gh-111165: Move test running code from test.support to libregrtest (GH-111166) (GH-111316) (GH-111318)
...
Remove no longer used functions run_unittest() and run_doctest() from
the test.support module.
(cherry picked from commit f6a45a03d0 )
(cherry picked from commit 5c4f9a1c7e )
2023-10-25 12:37:19 +00:00
Serhiy Storchaka
14167031eb
[3.11] gh-111309: Use unittest to collect and run distutils tests (GH-111311)
...
* use unittest.main() instead of run_unittest(test_suite()) to run tests from
modules via the CLI
* add explicit load_tests() to load doctests
* use test.support.load_package_tests() to load tests in submodules of
distutils.tests
* removes no longer needed test_suite() functions
2023-10-25 14:57:17 +03:00
Miss Islington (bot)
bb92fdabc7
[3.11] gh-111174: Fix crash in getbuffer() called repeatedly for empty BytesIO (GH-111210) (GH-111315)
...
(cherry picked from commit 9da98c0d9a )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2023-10-25 11:18:30 +00:00
Artyom Romanov
d38843a7b6
[3.11] Bump ruff to the latest version (GH-111288) ( #111310 )
2023-10-25 11:33:09 +01:00
Miss Islington (bot)
652d3f33fb
[3.11] gh-109017: Use non alternate name for Kyiv (GH-109251) (GH-111279)
...
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 46407fe79c )
Co-authored-by: Jochen Sprickerhof <github@jochen.sprickerhof.de>
2023-10-24 23:56:02 +03:00
Miss Islington (bot)
ff7dc61643
[3.11] Revert "Fix a code snippet typo in asyncio docs (GH-108427)" (GH-111271) (GH-111273)
...
Revert "Fix a code snippet typo in asyncio docs (GH-108427)" (GH-111271)
This reverts commit 7f31676340 .
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 c7d68f907a )
Ref: https://github.com/python/cpython/pull/108427#-issuecomment-1777525740
Co-authored-by: Zachary Ware <zach@python.org>
2023-10-24 11:26:57 -05:00
Jelle Zijlstra
575bff3732
[3.11] gh-111151: Convert monospaced directives to :ref: (GH-111152) ( #111270 )
...
(cherry picked from commit 1198076447 )
Co-authored-by: InSync <122007197+InSyncWithFoo@users.noreply.github.com>
2023-10-24 15:34:46 +00:00
Miss Islington (bot)
c905fab338
[3.11] gh-75666: Tkinter: add tests for binding (GH-111202) (GH-111256)
...
(cherry picked from commit 9bb202a1a9 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2023-10-24 14:53:38 +03:00
Miss Islington (bot)
10376a164f
[3.11] Fix typo in sys docs (GH-111196) ( #111249 )
...
Co-authored-by: James Tocknell <aragilar+github@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-10-24 08:15:03 +00:00
Miss Islington (bot)
e35393fde9
[3.11] Fix a code snippet typo in asyncio docs (GH-108427) ( #111244 )
...
Co-authored-by: A <5249513+Dumeng@users.noreply.github.com>
2023-10-24 06:35:49 +00:00
Miss Islington (bot)
bf41dcda70
[3.11] gh-101100: Fix Sphinx warnings for fileno (GH-111118) ( #111227 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-10-23 19:18:00 +00:00
Miss Islington (bot)
09bd752d94
[3.11] Add a version added note for PY_VECTORCALL_ARGUMENTS_OFFSET (GH-110963) ( #111220 )
...
Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
2023-10-23 16:09:56 +00:00
Miss Islington (bot)
a449a70bcb
[3.11] typo: missing line of output in pull parser example (GH-111068) ( #111218 )
...
Co-authored-by: Don Patterson <37046246+don-patterson@users.noreply.github.com>
2023-10-23 16:04:52 +00:00
Miss Islington (bot)
135d5c5840
[3.11] gh-106310 - document the __signature__ attribute (GH-106311) ( #111146 )
...
Co-authored-by: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-10-23 18:49:17 +03:00
Furkan Onder
f446df741f
[3.11] gh-67565: Add tests for C-contiguity checks (GH-110951) (GH-111199)
...
(cherry picked from commit 9376728ce4 )
2023-10-23 12:49:44 +03:00
Miss Islington (bot)
0a23960266
[3.11] gh-110383: Italicize variable name (GH-111206) ( #111208 )
...
Co-authored-by: Nick <Nikki1993@users.noreply.github.com>
2023-10-23 11:11:54 +03:00
Miss Islington (bot)
6020a3e736
[3.11] gh-110383: Added explanation about simplest regex use case for quantifiers. (GH-111110) ( #111205 )
...
Co-authored-by: Nick <Nikki1993@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-10-23 07:31:32 +00:00
Miss Islington (bot)
3c3c489d41
[3.11] gh-110196: Fix ipaddress.IPv6Address.__reduce__ (GH-110198) (GH-111190)
...
(cherry picked from commit 767f416feb )
Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
2023-10-22 19:12:58 +00:00
Miss Islington (bot)
aaa755dd48
[3.11] gh-101100: Fix sphinx warnings in library/asyncio-dev.rst (GH-111179) ( #111186 )
...
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 8c689c9b88 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
2023-10-22 10:29:06 -07:00
Miss Islington (bot)
d0502a9c67
[3.11] gh-101100: Fix Sphinx warning in tutorial/introduction.rst (GH-111173) ( #111176 )
...
gh-101100: Fix Sphinx warning in `tutorial/introduction.rst` (GH-111173)
(cherry picked from commit 663cf513b0 )
Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
2023-10-22 12:03:39 +00:00
Miss Islington (bot)
cf777399a9
[3.11] gh-111085: Fix invalid state handling in TaskGroup and Timeout (GH-111111) (GH-111172)
...
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 6c23635f2b )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: James Hilton-Balfe <gobot1234yt@gmail.com>
2023-10-21 19:40:07 +00:00
Miss Islington (bot)
cf28c61c73
[3.11] gh-111159: Fix doctest output comparison for exceptions with notes (GH-111160) ( #111170 )
...
gh-111159: Fix `doctest` output comparison for exceptions with notes (GH-111160)
(cherry picked from commit fd60549c0a )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-10-21 18:23:38 +00:00
Serhiy Storchaka
4222dd93af
[3.11] gh-110918: regrtest: allow to intermix --match and --ignore options (GH-110919) (GH-111168)
...
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 9a1fe09622 )
2023-10-21 17:30:19 +00:00
Miss Islington (bot)
17b8e35b65
[3.11] gh-111157: Mention __notes__ in traceback.format_exception_only docstring (GH-111158) ( #111164 )
...
gh-111157: Mention `__notes__` in `traceback.format_exception_only` docstring (GH-111158)
(cherry picked from commit 5e7727b052 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-10-21 18:06:51 +01:00
Miss Islington (bot)
47670fbdd0
[3.11] gh-110932: Fix regrtest for SOURCE_DATE_EPOCH (GH-111143) ( #111153 )
...
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 7237fb578d )
Co-authored-by: Victor Stinner <vstinner@python.org>
2023-10-21 09:01:10 +00:00
Miss Islington (bot)
9addf2cf11
[3.11] gh-111126: Use isinstance instead of assert[Not]IsInstance in test_typing (GH-111127) ( #111131 )
...
gh-111126: Use `isinstance` instead of `assert[Not]IsInstance` in `test_typing` (GH-111127)
(cherry picked from commit ea7c26e4b8 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-10-20 18:28:41 +00:00
Miss Islington (bot)
7213fc248d
[3.11] Synchronize test_contextlib with test_contextlib_async (GH-111000) (GH-111115)
...
(cherry picked from commit ff4e53cb74 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2023-10-20 14:33:22 +00:00
Miss Islington (bot)
69bcaf7e0e
gh-110913: Fix WindowsConsoleIO chunking of UTF-8 text (GH-111007)
...
(cherry picked from commit 11312eae6e )
Co-authored-by: Tamás Hegedűs <sorgloomer@users.noreply.github.com>
2023-10-20 12:19:04 +00:00
Miss Islington (bot)
6df935c212
[3.11] gh-101100: Fix sphinx warnings in library/codecs.rst (GH-110979) ( #111071 )
...
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-10-20 11:09:23 +03:00
Miss Islington (bot)
f1dbde0d3a
[3.11] gh-101100: Fix Sphinx warnings in library/tty.rst (GH-111079) ( #111098 )
...
gh-101100: Fix Sphinx warnings in `library/tty.rst` (GH-111079)
Fix Sphinx warnings in library/tty.rst
(cherry picked from commit c42c68aa7b )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-10-20 07:50:17 +03:00
Miss Islington (bot)
69f0c90011
[3.11] gh-111092: Make turtledemo run without default root enabled (GH-111093) ( #111096 )
...
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 b802882fb2 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2023-10-20 04:25:17 +00:00
Miss Islington (bot)
2b3f9a5a1d
[3.11] gh-109510: Clearly explain "Which Docstrings Are Examined" (GH-109696) ( #111078 )
...
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>
2023-10-19 18:35:07 +03:00
Miss Islington (bot)
f22cdecb19
[3.11] GH-101100: Fix reference warnings for `__enter__ and __exit__` (GH-110112) ( #111076 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-10-19 18:34:27 +03:00
Miss Islington (bot)
1b60244b97
[3.11] GH-101100: Fix reference warnings for `__getitem__` (GH-110118) ( #111074 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-10-19 18:33:12 +03:00
Miss Islington (bot)
4fc5352a0d
[3.11] gh-101100: Fix sphinx warnings in library/getpass.rst (GH-110461) ( #111072 )
...
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-10-19 18:31:29 +03:00
Radislav Chugunov
26a028269b
[3.11] gh-108791: Fix pdb CLI invalid argument handling (GH-108816) ( #111063 )
...
* [3.11] gh-108791: Fix `pdb` CLI invalid argument handling (GH-108816)
(cherry picked from commit 162213f2db )
Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
2023-10-19 14:26:40 +01:00
Miss Islington (bot)
2258d6cfa2
[3.11] gh-111050: IDLE - Simplify configdialog.HighPage.theme_elements (GH-111053) ( #111056 )
...
gh-111050: IDLE - Simplify configdialog.HighPage.theme_elements (GH-111053)
Replace tuple value with internal name, removing numbers.
Remove sorting of already ordered dislay names.
Remove '[0]' indexing into now-gone tuple.
(cherry picked from commit 642eb8df95 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2023-10-19 04:30:43 +00:00
Tian Gao
fabfc2ccfc
[3.11] GH-65052: Prevent pdb from crashing when trying to display objects (GH-111002)
...
(cherry picked from commit c523ce0f43 )
2023-10-18 16:42:36 -07:00
Miss Islington (bot)
faa7c207bf
[3.11] GH-104232: Fix statement about trace return values (GH-111045)
...
(cherry picked from commit d9246c7b73 )
2023-10-18 20:34:20 +00:00
Miss Islington (bot)
8e3d90c332
[3.11] gh-111015: Install IDLE.app and Python Launcher.app on macOS with correct permissions (gh-111038)
...
(cherry picked from commit cb1bf89c40 )
Co-authored-by: Joshua Root <jmr@macports.org>
Co-authored-by: Ned Deily <nad@python.org>
2023-10-18 13:25:04 +00:00
Pablo Galindo Salgado
4e4a3e161f
[3.11] gh-110696: Fix incorrect syntax error message for incorrect argument unpacking (GH-110706) ( #110766 )
2023-10-18 13:59:17 +01:00
Miss Islington (bot)
7c308f4c64
[3.11] gh-103737: IDLE - Remove unneeded .keys() for dict iteration (GH-110960) ( #111027 )
...
gh-103737: IDLE - Remove unneeded .keys() for dict iteration (GH-110960)
Add comments where .keys() is needed.
Leave debugger usages along because situation is unclear as indicated in expanded comment.
Most testing is manual.
(cherry picked from commit baefbb21d9 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2023-10-18 08:40:39 +00:00
Miss Islington (bot)
50d936a125
[3.11] gh-111019: Align expected and actual titles in test output (GH-111020) ( #111025 )
...
gh-111019: Align expected and actual titles in test output (GH-111020)
Align expected and actual titles in output from
assert_has_calls/assert_called_with for greater readability
(cherry picked from commit 77dbd95609 )
Co-authored-by: James <morisja@gmail.com>
2023-10-18 08:04:39 +00:00
Miss Islington (bot)
72131d0610
[3.11] Regen Doc/requirements-oldest-sphinx.txt (GH-111012) ( #111021 )
...
Regen Doc/requirements-oldest-sphinx.txt (GH-111012)
Fix https://github.com/python/cpython/security/dependabot/4 : use
urllib3 version 2.0.7.
(cherry picked from commit e7ae43ad7d )
Co-authored-by: Victor Stinner <vstinner@python.org>
2023-10-18 04:30:39 +00:00