]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Fri, 1 Oct 2021 14:16:37 +0000 (07:16 -0700)]
bpo-45332: Fix broken Decimal test and benchmark (GH-28680)
(cherry picked from commit
9eed75fde226cec5a02301cfac1dc8039b5a183e )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Miss Islington (bot) [Fri, 1 Oct 2021 13:09:15 +0000 (06:09 -0700)]
bpo-45125: Improves pickling docs and tests for `shared_memory` (GH-28294)
(cherry picked from commit
746d648d47d12d16c2afedaeff626fc6aaaf6a46 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Fri, 1 Oct 2021 12:58:37 +0000 (05:58 -0700)]
hashlib: Fix old message about unicode objects. (GH-28653)
(cherry picked from commit
9ce0f48e918860ffa32751a85b0fe7967723e2e3 )
Co-authored-by: Julien Palard <julien@palard.fr>
Miss Islington (bot) [Fri, 1 Oct 2021 09:41:20 +0000 (02:41 -0700)]
bpo-45310: Fix parrallel shared memory tests (GH-28661)
Add a PID to names of POSIX shared memory objects to allow
running multiprocessing tests (test_multiprocessing_fork,
test_multiprocessing_spawn, etc) in parallel.
(cherry picked from commit
eb4495e8e275c83d691add116c4f2b74e73e3cc8 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 1 Oct 2021 07:36:17 +0000 (00:36 -0700)]
bpo-45229: Make datetime tests discoverable (GH-28615)
(cherry picked from commit
d441437ee71ae174c008c23308b749b91020ba77 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Thu, 30 Sep 2021 16:56:41 +0000 (19:56 +0300)]
[3.10] bpo-40173: Fix test.support.import_helper.import_fresh_module() (GH-28654) (GH-28657)
* Work correctly if an additional fresh module imports other
additional fresh module which imports a blocked module.
* Raises ImportError if the specified module cannot be imported
while all additional fresh modules are successfully imported.
* Support blocking packages.
* Always restore the import state of fresh and blocked modules
and their submodules.
* Fix test_decimal and test_xml_etree which depended on an undesired
side effect of import_fresh_module().
(cherry picked from commit
ec4d917a6a68824f1895f75d113add9410283da7 )
Miss Islington (bot) [Wed, 29 Sep 2021 23:02:11 +0000 (16:02 -0700)]
closes bpo-44751: Move crypt.h include from public header to _cryptmodule (GH-27394) (GH-28636)
Automerge-Triggered-By: GH:benjaminp
(cherry picked from commit
196998e220d6ca030e5a1c8ad63fcaed8e049a98 )
Co-authored-by: Geoffrey Thomas <geofft@ldpreload.com>
Miss Islington (bot) [Wed, 29 Sep 2021 15:21:55 +0000 (08:21 -0700)]
[typo] Fix threading.Barrier comment that used confusing punctuation (GH-28623) (GH-28625)
Removed extra comma in comment that indicates state of a `Barrier` as it was confusing and breaking the flow while reading.
Co-authored-by: Priyank <5903604+cpriyank@users.noreply.github.com>
(cherry picked from commit
f1ca5d7f61594bf3627f0897b596877a0774c8e7 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Wed, 29 Sep 2021 14:13:41 +0000 (07:13 -0700)]
[3.10] bpo-44394: Ensure libexpat is linked against libm (GH-28617) (GH-28621)
* bpo-44394: Ensure libexpat is linked against libm (GH-28617)
(cherry picked from commit
6c1154b9de29e1c9cd3d05f5289543e5cff73895 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Mark Shannon [Wed, 29 Sep 2021 12:16:13 +0000 (13:16 +0100)]
Move predispatch logic from DISPATCH macro to juts before switch. Reduces size of each opocde in interpreter. (GH-28475)
Miss Islington (bot) [Wed, 29 Sep 2021 11:41:27 +0000 (04:41 -0700)]
bpo-45291: Explicitly set --libdir=lib when configure OpenSSL (GH-28566) (GH-28616)
(cherry picked from commit
bc4cde40339dd372960f27401d8fdaa4dab0f469 )
Co-authored-by: zhanpon <pon.zhan@gmail.com>
Łukasz Langa [Wed, 29 Sep 2021 10:19:37 +0000 (12:19 +0200)]
[3.10] bpo-39039: tarfile raises descriptive exception from zlib.error (GH-27766) (GH-28613)
* during tarfile parsing, a zlib error indicates invalid data
* tarfile.open now raises a descriptive exception from the zlib error
* this makes it clear to the user that they may be trying to open a
corrupted tar file
(cherry picked from commit
b6fe8572509b77d2002eaddf99d718e9b4835684 )
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Miss Islington (bot) [Tue, 28 Sep 2021 21:56:52 +0000 (14:56 -0700)]
bpo-45269: test wrong `markers` type to `c_make_encoder` (GH-28540) (GH-28609)
(cherry picked from commit
e046aabbe386fdf32bae6ffb7fae5ce479fd10c6 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Serhiy Storchaka [Tue, 28 Sep 2021 21:12:50 +0000 (00:12 +0300)]
[3.10] bpo-45307: Restore private C API function _PyImport_FindExtensionObject() (GH-28594)
py2exe and PyOxidizer rely on this API.
It will be removed in Python 3.11.
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Łukasz Langa [Tue, 28 Sep 2021 21:09:58 +0000 (23:09 +0200)]
[3.10] [docs] Improve the markup of powers (GH-28598) (GH-28607)
(cherry picked from commit
4f05f15d7b25ef8b690cb94fdc4c8cb5521a4e27 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 28 Sep 2021 14:07:13 +0000 (07:07 -0700)]
[doc] fix minor typo for argparse (GH-28451)
"A JSONDecodeError" instead of "An JSONDecodeError".
(cherry picked from commit
db0133f98dd42d0fb82a7675bde175cec51bb860 )
Co-authored-by: Louis Sautier <sautier.louis@gmail.com>
Miss Islington (bot) [Tue, 28 Sep 2021 12:56:52 +0000 (05:56 -0700)]
bpo-35606: Fix math.prod tests using 'start' as keyword parameter (GH-28595)
(cherry picked from commit
84975146a7ce64f1d50dcec8311b7f7188a5c962 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Tue, 28 Sep 2021 12:35:23 +0000 (05:35 -0700)]
bpo-45296: Fix exit/quit message on Windows (GH-28577) (GH-28600)
IDLE recognizes Ctrl-D, as on other systems, instead of Ctrl-Z.
(cherry picked from commit
e649e0658ff2af87b07d994c05ae048e16e31aae )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 27 Sep 2021 21:39:35 +0000 (14:39 -0700)]
bpo-
1596321 : Fix threading._shutdown() for the main thread (GH-28549)
Fix the threading._shutdown() function when the threading module was
imported first from a thread different than the main thread: no
longer log an error at Python exit.
(cherry picked from commit
95d31370829b7d729667588e0a9943217401ea5b )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Mon, 27 Sep 2021 21:26:39 +0000 (14:26 -0700)]
bpo-45249: Ensure the traceback module prints correctly syntax errors with ranges (GH-28575)
(cherry picked from commit
20f439b6b9e1032930a31b88694ab9f37a09e6b4 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Mon, 27 Sep 2021 14:05:20 +0000 (07:05 -0700)]
bpo-43914: Correctly highlight SyntaxError exceptions for invalid generator expression in function calls (GH-28576)
(cherry picked from commit
e5f13ce5b48b551c09fdd0faeafa6ecf860de51c )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Mon, 27 Sep 2021 12:53:31 +0000 (05:53 -0700)]
bpo-45274: Fix Thread._wait_for_tstate_lock() race condition (GH-28532) (GH-28580)
Fix a race condition in the Thread.join() method of the threading
module. If the function is interrupted by a signal and the signal
handler raises an exception, make sure that the thread remains in a
consistent state to prevent a deadlock.
(cherry picked from commit
a22be4943c119fecf5433d999227ff78fc2e5741 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Sun, 26 Sep 2021 17:09:50 +0000 (10:09 -0700)]
bpo-45280: Add test for empty `NamedTuple` in `test_typing` (GH-28559) (GH-28571)
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
(cherry picked from commit
f56268a2cd38b3fe2be1e4361d3d8b581e73559b )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Łukasz Langa [Sat, 25 Sep 2021 09:32:26 +0000 (11:32 +0200)]
[3.10] bpo-43914: What's New 3.10: add new SyntaxError attributes (GH-28558) (GH-28562)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit
71f8ff45c62bd6b792919ac7c3804a8628ae12cb )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sat, 25 Sep 2021 09:21:13 +0000 (02:21 -0700)]
bpo-45166: fixes `get_type_hints` failure on `Final` (GH-28279) (GH-28560)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit
784905dbeff68cf788bbeefe0a675af1af04affc )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sat, 25 Sep 2021 02:16:48 +0000 (19:16 -0700)]
bpo-45277: Fix typo in codecs doc (GH-28555)
encoding => encode
(cherry picked from commit
4c0fc65cd8a6d4c18330505576ccd4b46abeec1c )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Fri, 24 Sep 2021 10:38:55 +0000 (03:38 -0700)]
bpo-30951: Correct co_names docstring in inspect module (GH-2743) (GH-28543)
(cherry picked from commit
3f8b23f8ddab75d9b77a3997d54e663187e12cc8 )
Co-authored-by: Alex Vig <jalexvig@gmail.com>
Miss Islington (bot) [Thu, 23 Sep 2021 22:48:06 +0000 (15:48 -0700)]
bpo-38623: Add note about site module (site-packages) (GH-16974) (GH-28536)
(cherry picked from commit
55b45bf707c6c8084db259fe2f8aa08e84ea0d99 )
Co-authored-by: Peter Bittner <django@bittner.it>
Miss Islington (bot) [Thu, 23 Sep 2021 21:38:44 +0000 (14:38 -0700)]
[docs] Update documentation for `multiprocessing.get_start_method` (GH-18170) (GH-28533)
(cherry picked from commit
af90b5498b8c6acd67b50fdad007d26dfd1c5823 )
Co-authored-by: Sam Sneddon <me@gsnedders.com>
Miss Islington (bot) [Thu, 23 Sep 2021 20:40:15 +0000 (13:40 -0700)]
bpo-43760: Document PyThreadState.use_tracing removal (GH-28527) (GH-28529)
(cherry picked from commit
f4ccb79d52ee726d58bbb038ea98b4deec52001d )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Thu, 23 Sep 2021 15:07:40 +0000 (08:07 -0700)]
Fix legacy logging module URL (GH-28528)
The URL listed in the `logging` docs for the original `logging` module leads to a 404. I managed to find the new location for the page and updated the URL.
Automerge-Triggered-By: GH:vsajip
(cherry picked from commit
8492b729ae97737d22544f2102559b2b8dd03a03 )
Co-authored-by: Sean Leavey <SeanDS@users.noreply.github.com>
Miss Islington (bot) [Thu, 23 Sep 2021 10:25:31 +0000 (03:25 -0700)]
bpo-41203: Replace Mac OS X and OS X with macOS (GH-28515) (GH-28523)
Replace old names when they refer to actual versions of macOS.
Keep historical names in references to older versions.
Co-authored-by: Patrick Reader <_@pxeger.com>
(cherry picked from commit
36122e18148c5b6c78ebce1d36d514fd7cf250f5 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Łukasz Langa [Wed, 22 Sep 2021 16:42:15 +0000 (18:42 +0200)]
[3.10] bpo-45238: Fix unittest.IsolatedAsyncioTestCase.debug() (GH-28449) (GH-28521)
It runs now asynchronous methods and callbacks.
If it fails, doCleanups() can be called for cleaning up.
(cherry picked from commit
ecb6922ff2d56476a6cfb0941ae55aca5e7fae3d )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Łukasz Langa [Tue, 21 Sep 2021 23:33:59 +0000 (01:33 +0200)]
[3.10] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28511)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
8f943ca25732d548cf9f0b0393ba8d582fb93e29 )
Co-authored-by: Mohamad Mansour <66031317+mohamadmansourX@users.noreply.github.com>
Miss Islington (bot) [Tue, 21 Sep 2021 22:38:59 +0000 (15:38 -0700)]
[tests] Add missing assert against expected tracebacks in test_exceptions.py (GH-28484) (GH-28510)
(cherry picked from commit
a0073471002bed0169fb806703e26880bbcceb73 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Miss Islington (bot) [Tue, 21 Sep 2021 22:14:40 +0000 (15:14 -0700)]
bpo-45234: Fix FileNotFound exception raised instead of IsADirectoryError in shutil.copyfile() (GH-28421) (GH-28508)
This was a regression from fixing BPO-43219.
(cherry picked from commit
b7eac52b466f697d3e89f47508e0df0196a98970 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Miss Islington (bot) [Tue, 21 Sep 2021 21:53:47 +0000 (14:53 -0700)]
bpo-45216: Remove extraneous method docs from `difflib` (GH-28445) (GH-28505)
(cherry picked from commit
06e1773c8d8fe375423bb7fcf5922b49bc737b75 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Łukasz Langa [Tue, 21 Sep 2021 20:32:09 +0000 (22:32 +0200)]
[3.10] bpo-45246: Document that sorted() only uses "<" comparisons (GH-28494) (GH-28502)
(cherry picked from commit
9a0dcc5b2e04d9c51350107734f12a1cbc0284a7 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Tue, 21 Sep 2021 18:19:48 +0000 (11:19 -0700)]
bpo-45209: fix `UserWarning: resource_tracker` in test_multiprocessing (GH-28377)
(cherry picked from commit
f604cf1c377a7648e0686044e6e49900bfc9feef )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Mon, 20 Sep 2021 18:52:23 +0000 (11:52 -0700)]
[3.10] bpo-45021: Fix a hang in forked children (GH-28007) (GH-28480)
_global_shutdown_lock should be reinitialized in forked children
(cherry picked from commit
0bfa1106acfcddc03590e1f5d6789dbad3affe70 )
Co-authored-by: nullptr <3621629+0x0L@users.noreply.github.com>
Automerge-Triggered-By: GH:gpshead
Miss Islington (bot) [Mon, 20 Sep 2021 16:19:31 +0000 (09:19 -0700)]
bpo-45229: Make pickle tests discoverable (GH-28467) (GH-28478)
(cherry picked from commit
e6ba992288fdbe71aa808cfb6955f6f99da7e349 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 20 Sep 2021 14:58:29 +0000 (07:58 -0700)]
bpo-45055: Add retry when downloading externals on Windows (GH-28399)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
ef9e22b253253615098d22cb49141a2a1024ee3c )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Mon, 20 Sep 2021 08:47:58 +0000 (01:47 -0700)]
bpo-40413: test_embed tests calling Py_RunMain() multiple times (GH-28466)
Calling Py_InitializeFromConfig()+Py_RunMain() multiple times must
not crash.
Cleanup also test_get_argc_argv().
(cherry picked from commit
5e2c32e08ed77081cabd9d51f0589f81c1572732 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Mon, 20 Sep 2021 01:53:37 +0000 (18:53 -0700)]
Docs: Clarify the before_and_after() example (GH-28458) (#28464)
(cherry picked from commit
fcbf9b176b1190301c760a921601c6488ef8b070 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Sun, 19 Sep 2021 23:13:04 +0000 (16:13 -0700)]
bpo-45128: fixes `test_multiprocessing_fork` mysterious crash (GH-28387)
(cherry picked from commit
1d42408495402b06ecae91420735aeff454be6b5 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sun, 19 Sep 2021 23:07:16 +0000 (16:07 -0700)]
bpo-30637: Improve the docs of ast.parse regarding differences with compile() (GH-28459)
(cherry picked from commit
e6d05a4092b4176a30d1d1596585df13c2ab676d )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Serhiy Storchaka [Sun, 19 Sep 2021 19:36:03 +0000 (22:36 +0300)]
[3.10] bpo-45229: Remove test_main in many tests (GH-28405) (GH-28455)
Instead of explicitly enumerate test classes for run_unittest()
use the unittest ability to discover tests. This also makes these
tests discoverable and runnable with unittest.
load_tests() can be used for dynamic generating tests and adding
doctests. setUpModule(), tearDownModule() and addModuleCleanup()
can be used for running code before and after all module tests.
(cherry picked from commit
40348acc180580371d25f75f46b27048e35f2435 )
Miss Islington (bot) [Sun, 19 Sep 2021 19:11:41 +0000 (12:11 -0700)]
bpo-44640: Improve punctuation consistency in isinstance/issubclass error messages (GH-27144) (GH-28436)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
f4813388b4506b2fafb0089848c5b11cd503758c )
Co-authored-by: wyz23x2 <52805709+wyz23x2@users.noreply.github.com>
Co-authored-by: wyz23x2 <52805709+wyz23x2@users.noreply.github.com>
Miss Islington (bot) [Sat, 18 Sep 2021 13:22:31 +0000 (06:22 -0700)]
bpo-36674: Honour the skipping decorators in TestCase.debug() (GH-28446)
unittest.TestCase.debug() raises now a SkipTest if the class or
the test method are decorated with the skipping decorator.
Previously it only raised a SkipTest if the test method was decorated
with other decorator in addition to the skipping decorator, or
if SkipTest was explicitly raised in the test or setup methods.
(cherry picked from commit
dea59cf88adf5d20812edda330e085a4695baba4 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 18 Sep 2021 07:10:00 +0000 (00:10 -0700)]
bpo-45198: __set_name__ documentation not clear about its usage with non-descriptor classes (GH-28439)
(cherry picked from commit
94b462686b7dfabbd69cc9401037d736d71c4dc2 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Sat, 18 Sep 2021 06:47:16 +0000 (23:47 -0700)]
bpo-45235: Fix argparse overrides namespace with subparser defaults (GH-28420) (GH-28442)
Miss Islington (bot) [Sat, 18 Sep 2021 02:11:51 +0000 (19:11 -0700)]
[3.10] Fix minor typo in Doc/c-api/type.rst (GH-28432) (GH-28440)
retreived-> retrieved
(cherry picked from commit
af08f1ba40505bf1380c08b57ba4e0b8969a8358 )
Co-authored-by: Konstantin Popov <konst.hardy@gmail.com>
Automerge-Triggered-By: GH:Fidget-Spinner
Brett Cannon [Sat, 18 Sep 2021 00:46:22 +0000 (17:46 -0700)]
[3.10] bpo-45183: don't raise an exception when calling zipimport.zipimporter.find_spec() when the zip file is missing and the internal cache has been reset (GH-28435) (#28438)
This can occur when the zip file gets deleted, you call zipimport.zipimporter.invalidate_cache(), and then try to use zipimport.zipimporter.find_spec() (i.e. you left the zip file path on sys.path).
(cherry picked from commit
209b7035f714dcc41df054b0b023e0b955d7e1a2 )
Co-authored-by: Brett Cannon <brett@python.org>
Miss Islington (bot) [Fri, 17 Sep 2021 23:19:00 +0000 (16:19 -0700)]
[doc] Clarify exception in `multiprocessing.cpu_count` (GH-23660) (GH-28433)
Previous wording didn't explain the slightly unintuitive behavior.
Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit
24dbe30f8df80740704db3743d071b3218d1276e )
Co-authored-by: Emmanuel Arias <eamanu@yaerobi.com>
Miss Islington (bot) [Fri, 17 Sep 2021 23:02:32 +0000 (16:02 -0700)]
Fix missing space with help for `-m compileall -o` (GH-27591) (GH-28430)
(cherry picked from commit
74cc2453ae690be940cddfae8caf8216d8628c4a )
Co-authored-by: Daniel Hahler <git@thequod.de>
Miss Islington (bot) [Fri, 17 Sep 2021 22:55:57 +0000 (15:55 -0700)]
bpo-42038: fix description of returned list of lines (GH-27529) (GH-28428)
(cherry picked from commit
aca0e08c5dcc11a8011697331931cde0b21270f2 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Miss Islington (bot) [Fri, 17 Sep 2021 22:18:03 +0000 (15:18 -0700)]
[doc] Add a missing apostrophe in a code example in venv.rst (GH-28391) (GH-28425)
(cherry picked from commit
d22a700091af35ce52db0b1fbb02115bb6efbb1f )
Co-authored-by: Arkaprabha Chakraborty <chakrabortyarkaprabha998@gmail.com>
Miss Islington (bot) [Fri, 17 Sep 2021 19:16:03 +0000 (12:16 -0700)]
bpo-45187: Fix dangling threads in test_socket.CreateServerFunctionalTest (GH-28422)
(cherry picked from commit
51ebb7f4f5e9bdcf8279a1d91be9569706f6bead )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 17 Sep 2021 13:10:28 +0000 (06:10 -0700)]
bpo-45217: adds note that `allow_no_value` in `configparser` is optional (GH-28396) (GH-28418)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
cb07838ab756564988b1ffd23871f1222a832446 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Fri, 17 Sep 2021 10:34:46 +0000 (03:34 -0700)]
bpo-45187: Collect test_socket tests using unittest (GH-28317)
Previously, test classes ISOTPTest, J1939Test, BasicUDPLITETest and
UDPLITETimeoutTest were not included in the list of tests and
were not run by regrtest.
(cherry picked from commit
0361335b80b435ca3694981b41f8269e390eb892 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Fri, 17 Sep 2021 10:11:28 +0000 (13:11 +0300)]
[3.10] bpo-45212: Fix dangling threads in skipped tests in test_socket (GH-28361) (GH-28409)
tearDown() is not called if setUp() raises an exception
(including SkipTest). addCleanup() should be used for guaranteed
execution of the cleanup code.
(cherry picked from commit
7dacb70485a0910eb298c24b4d051720ca56fb91 )
Miss Islington (bot) [Fri, 17 Sep 2021 09:09:29 +0000 (02:09 -0700)]
bpo-45228: Fix stack buffer overflow in parsing J1939 address (GH-28404)
(cherry picked from commit
773319545ba60577bc140aa46eac83b360240b7a )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 17 Sep 2021 05:12:37 +0000 (22:12 -0700)]
Fix typo and add a module prefix (GH-28401)
(cherry picked from commit
80d9ff16483b6c1898bcdcc811b5450b57a5e573 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Thu, 16 Sep 2021 19:47:09 +0000 (12:47 -0700)]
bpo-45220: Avoid automatically selecting the Windows 11 SDK preview when building (GH-28393) (GH-28394)
(cherry picked from commit
f4b94b1f57827083990272b5f282aa1493ae2bf4 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Thu, 16 Sep 2021 10:10:10 +0000 (03:10 -0700)]
docs: correct references to __isub__ etc (GH-28297)
(cherry picked from commit
800bd01b6d365156403c3dde61765dc5fdbf64be )
Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
Miss Islington (bot) [Wed, 15 Sep 2021 19:35:16 +0000 (12:35 -0700)]
bpo-45167: Fix deepcopying of GenericAlias (GH-28324) (GH-28367)
(cherry picked from commit
5dce51a8875d9639786741e962b3cb208596b096 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 15 Sep 2021 19:31:59 +0000 (12:31 -0700)]
bpo-45205: Make test_compileall quiet (GH-28356) (GH-28370)
Make test_compileall quiet: test_year_2038_mtime_compilation() and
test_larger_than_32_bit_times() of test_compileall no longer log
"Compiling ..." messages to stdout.
(cherry picked from commit
cc057ff5227b3a4ded637caa7ba51b67b06abaaa )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Wed, 15 Sep 2021 19:10:33 +0000 (12:10 -0700)]
bpo-45207: Make test_gdb.test_pycfunction() quiet (GH-28355) (GH-28365)
test_gdb.test_pycfunction() now ignores gdb stderr, it no longer logs
messages like:
Function "meth_varargs" not defined.
(cherry picked from commit
84a6061e29e9dc13909bdf6f541f48c2a4f1d410 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Wed, 15 Sep 2021 19:00:02 +0000 (12:00 -0700)]
bpo-45089: Improve sqlite3 trace callback docs (GH-28238) (GH-28371)
- Add link to str object and sqlite3 transaction control
- Mention that exceptions are not propagated
(cherry picked from commit
51056b40e711d84692d099ac8970077b33c7fafd )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Islington (bot) [Wed, 15 Sep 2021 18:56:32 +0000 (11:56 -0700)]
bpo-45208: Make test_pdb.test_checkline_is_not_executable() quiet (GH-28354) (GH-28363)
test_pdb.test_checkline_is_not_executable() no longer writes output
to stdout.
Remove also unused variables 'f'.
(cherry picked from commit
e08e491a6ceea8ca105612df10147418c4e105b8 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Wed, 15 Sep 2021 18:46:48 +0000 (11:46 -0700)]
bpo-45193: News for IDLE PR_28343 (GH-28348)
(cherry picked from commit
9d76d28867c28bcc881b851547a9cd7ac003ae88 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Łukasz Langa [Wed, 15 Sep 2021 18:34:57 +0000 (20:34 +0200)]
[3.10] bpo-34602: Quadruple stack size on macOS when compiling with UBSAN (GH-27309) (GH-28280)
(cherry picked from commit
be9de8721d63b9d8e032d508069daf88c06542c6 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Wed, 15 Sep 2021 16:43:25 +0000 (09:43 -0700)]
bpo-44786: Fix a warning in RE in c-analyzer (GH-28351) (GH-28353)
(cherry picked from commit
1a9ef5798525bbb39a16c8af5c435b97352ee027 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 15 Sep 2021 12:38:49 +0000 (05:38 -0700)]
bpo-45195: Fix test_readline.test_nonascii() (GH-28329) (GH-28333)
Fix test_readline.test_nonascii(): sometimes, the newline character
is not written at the end, so don't expect it in the output.
(cherry picked from commit
797c8eb9ef511f0c25f10a453b35c4d2fe383c30 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Wed, 15 Sep 2021 07:37:35 +0000 (00:37 -0700)]
bpo-45193: Restore IDLE completion boxes on Ubuntu (GH-28343)
The line that should not have been needed on macOS tk 8.6.8 but was,
should not be a problem on Ubuntu, but is. It is not needed on macOS
tk 8.6.11, installed with 3.10. Disable it but leave it for
now in case some system needs it.
(cherry picked from commit
1afc7b3219b24c951bb4e6b7e1ead904228de074 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Wed, 15 Sep 2021 07:33:32 +0000 (00:33 -0700)]
bpo-45020: Don't test IDLE with frozen module. (GH-28344)
Otherwise, test would need special import.
(cherry picked from commit
369bf949ccbb689cd4638b29b4c0c12db79b927c )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 14 Sep 2021 20:02:18 +0000 (13:02 -0700)]
bpo-4356: Mention the new key arguments for the bisect module APIs in the 3.10 What's new (GH-28339) (GH-28340)
(cherry picked from commit
1aaa85949717e4ab2ed700e58762f0a3ce049a37 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Tue, 14 Sep 2021 18:58:19 +0000 (11:58 -0700)]
bpo-45196: prevent unittest crash on address sanitizer builds (GH-28331)
(cherry picked from commit
b668cdfa09e9bdfcfddaadd23dbd455d5f667383 )
Co-authored-by: junyixie <xiejunyi.arch@bytedance.com>
Miss Islington (bot) [Tue, 14 Sep 2021 11:00:16 +0000 (04:00 -0700)]
bpo-45156: Fixes inifite loop on unittest.mock.seal() (GH-28300) (GH-28326)
Fixes infinite loop on unittest.mock.seal() of mocks created by
unittest.create_autospec().
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
(cherry picked from commit
7f60c9e1c6e22cc0e846a872c318570926cd3094 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Mon, 13 Sep 2021 23:33:05 +0000 (16:33 -0700)]
bpo-42135 Correct version slated for importlib.find_loader removal (GH-28312) (GH-28321)
importlib.find_loader should also be slated for 3.12 like the others in GH-25169 and as documented in https://docs.python.org/3.11/whatsnew/3.10.htmlGH-deprecated.
(cherry picked from commit
9f93018b69d72cb48d3444554261ae3b0ea00c93 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Mon, 13 Sep 2021 17:24:29 +0000 (10:24 -0700)]
bpo-35474: Fix mimetypes.guess_all_extensions() potentially mutating list (GH-28286) (GH-28289)
* Calling guess_all_extensions() with strict=False potentially
mutated types_map_inv.
* Mutating the result of guess_all_extensions() mutated types_map_inv.
(cherry picked from commit
97ea18ecede8bfd33d5ab2dd0e7e2aada2051111 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 13 Sep 2021 11:34:58 +0000 (04:34 -0700)]
bpo-45182: Fix incorrect use of requires_zlib in test_bdist_rpm (GH-28305)
It is a decorator factory and should be always followed by "()".
(cherry picked from commit
9260e6739865c966c3ec6c5c289e0b96f848403e )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Erlend Egeberg Aasland [Mon, 13 Sep 2021 03:16:01 +0000 (05:16 +0200)]
[3.10] bpo-45126: Fix ref. leak in `sqlite3.Connection.__init__` (GH-28231). (GH-28298)
Miss Islington (bot) [Fri, 10 Sep 2021 21:34:07 +0000 (14:34 -0700)]
IDLE: adjust Python version in doc url for 3.10+ (GH-28228)
Expression 'python_version()[:3]' truncated '3.10.0' to '3.1' instead of '3.10'.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit
b74c819fab86bedc9b962ea42cfb9b5893fd2dda )
Co-authored-by: giovanniwijaya <16949408+giovanniwijaya@users.noreply.github.com>
Miss Islington (bot) [Fri, 10 Sep 2021 19:53:11 +0000 (12:53 -0700)]
bpo-9811: [doc] strftime handling of unsupported format specifiers is platform dependent (GH-28264) (GH-28277)
(cherry picked from commit
e86bcfa58080f152f242c756f625f4015671f168 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Fri, 10 Sep 2021 16:16:51 +0000 (09:16 -0700)]
bpo-44964: Correct the note about the f_lasti field (GH-28208) (GH-28276)
(cherry picked from commit
ab327f2929589407595a3de95727c8ab34ddd4af )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Fri, 10 Sep 2021 16:11:44 +0000 (09:11 -0700)]
bpo-44219: Mention GH-28250 is a deadlock bugfix (GH-28261) (GH-28274)
(cherry picked from commit
296b7100705ef52aece3378b0ae42c33a58526e1 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Fri, 10 Sep 2021 15:11:25 +0000 (08:11 -0700)]
[3.10] Fix typos in pep384_macrocheck.py (GH-28220) (GH-28272)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit
4338aeeb9e07607f17bbada8ebfd97e7cc7a203c )
Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
Automerge-Triggered-By: GH:Fidget-Spinner
Miss Islington (bot) [Fri, 10 Sep 2021 03:58:47 +0000 (20:58 -0700)]
bpo-45024 and bpo-23864: Document how interface testing works with the collections ABCs (GH-28218) (GH-28266)
Miss Islington (bot) [Thu, 9 Sep 2021 19:38:54 +0000 (12:38 -0700)]
bpo-45067 - Verify the version of ncurses for extended color support feature usage. (GH-28260)
* issue45067 - Fix _curses compilation in CentOS 7. Verify the version of ncurses
for extended color support feature usage.
The function extended_color_content was introduced in 2017. The ncurses-devel
package in CentOS 7 had a older version ncurses resulted in compilation error.
For compiling ncurses with extended color support, we verify the version of the
ncurses library.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit
794430700defb913512f871b701a888aa730de81 )
Co-authored-by: Senthil Kumaran <senthil@python.org>
Miss Islington (bot) [Thu, 9 Sep 2021 17:10:04 +0000 (10:10 -0700)]
Fix minor typo in 3.10.rst (GH-28253) (GH-28259)
(cherry picked from commit
73668541357caa813e7daa8792fab6fdf755a07f )
Co-authored-by: D.Lintin <diantolintin3@gmail.com>
Co-authored-by: D.Lintin <diantolintin3@gmail.com>
Miss Islington (bot) [Thu, 9 Sep 2021 16:35:43 +0000 (09:35 -0700)]
bpo-44219: Release the GIL during isatty syscalls (GH-28250) (GH-28255)
Release the GIL while performing isatty() system calls on arbitrary
file descriptors. In particular, this affects os.isatty(),
os.device_encoding() and io.TextIOWrapper. By extension,
io.open() in text mode is also affected.
(cherry picked from commit
06148b1870fceb1a21738761b8e1ac3bf654319b )
Co-authored-by: Vincent Michel <vxgmichel@gmail.com>
Miss Islington (bot) [Thu, 9 Sep 2021 09:35:36 +0000 (02:35 -0700)]
bpo-44860: Update test_sysconfig for posix_user platlib (GH-28235) (GH-28251)
Update test_sysconfig.test_user_similar() for the posix_user scheme:
"platlib" doesn't use sys.platlibdir.
(cherry picked from commit
49acac00c08838d8080ce00d02c05284b94f8fb2 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Thu, 9 Sep 2021 08:24:51 +0000 (01:24 -0700)]
Fix small mistake in fileinput documentation (GH-28241)
(cherry picked from commit
5afb570d2e21d4c4e91802c4948569302f9c1a7b )
Co-authored-by: Jean-Abou-Samra <37271310+Jean-Abou-Samra@users.noreply.github.com>
Raymond Hettinger [Thu, 9 Sep 2021 03:42:29 +0000 (22:42 -0500)]
[3.10] bpo-20499: Rounding error in statistics.pvariance (GH-28230) (GH-28248)
Miss Islington (bot) [Wed, 8 Sep 2021 16:32:19 +0000 (09:32 -0700)]
[3.10] bpo-45083: Include the exception class qualname when formatting an exception (GH-28119) (GH-28134)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
(cherry picked from commit
b4b6342848ec0459182a992151099252434cc619 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* Use a private version of _PyType_GetQualName
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Łukasz Langa [Wed, 8 Sep 2021 16:25:09 +0000 (18:25 +0200)]
[3.10] bpo-45056: Remove trailing unused constants from co_consts (GH-28109) (GH-28125)
(cherry picked from commit
55c4a92fc1abfe388335071f1d64b3addfa5793f )
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Miss Islington (bot) [Wed, 8 Sep 2021 15:09:55 +0000 (08:09 -0700)]
bpo-45118: Fix regrtest second summary for re-run tests (GH-28183) (GH-28214)
Fix regrtest second summary when using -w/--verbose2 command line
option: lists re-run tests in the second test summary.
(cherry picked from commit
c4ea45d7d2c02674db2fdb96c7eee89324d2dc64 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Serhiy Storchaka [Wed, 8 Sep 2021 15:08:57 +0000 (18:08 +0300)]
[3.10] bpo-25130: Add calls of gc.collect() in tests to support PyPy (GH-28005) (GH-28027)
(cherry picked from commit
2a8127cafe1d196f858a3ecabf5f1df3eebf9a12 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 8 Sep 2021 15:05:23 +0000 (08:05 -0700)]
bpo-45121: Fix RecursionError when calling Protocol.__init__ from a subclass' __init__ (GH-28206) (GH-28232)
(cherry picked from commit
c11956a8bddd75f02ccc7b4da7e4d8123e1f3c5f )
Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>