summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-45274: Fix Thread._wait_for_tstate_lock() race condition (GH-28532) ↵Miss Islington (bot)2021-09-272-4/+22
| | | | | | | | | | | (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>
* bpo-45280: Add test for empty `NamedTuple` in `test_typing` (GH-28559) ↵Miss Islington (bot)2021-09-262-0/+14
| | | | | | | | (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>
* [3.10] bpo-43914: What's New 3.10: add new SyntaxError attributes (GH-28558) ↵Łukasz Langa2021-09-251-1/+6
| | | | | | | | (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>
* bpo-45166: fixes `get_type_hints` failure on `Final` (GH-28279) (GH-28560)Miss Islington (bot)2021-09-255-10/+56
| | | | | | | 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>
* bpo-45277: Fix typo in codecs doc (GH-28555)Miss Islington (bot)2021-09-251-1/+1
| | | | | | encoding => encode (cherry picked from commit 4c0fc65cd8a6d4c18330505576ccd4b46abeec1c) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-30951: Correct co_names docstring in inspect module (GH-2743) (GH-28543)Miss Islington (bot)2021-09-241-1/+1
| | | | | (cherry picked from commit 3f8b23f8ddab75d9b77a3997d54e663187e12cc8) Co-authored-by: Alex Vig <jalexvig@gmail.com>
* bpo-38623: Add note about site module (site-packages) (GH-16974) (GH-28536)Miss Islington (bot)2021-09-231-1/+2
| | | | | (cherry picked from commit 55b45bf707c6c8084db259fe2f8aa08e84ea0d99) Co-authored-by: Peter Bittner <django@bittner.it>
* [docs] Update documentation for `multiprocessing.get_start_method` ↵Miss Islington (bot)2021-09-231-1/+7
| | | | | | | (GH-18170) (GH-28533) (cherry picked from commit af90b5498b8c6acd67b50fdad007d26dfd1c5823) Co-authored-by: Sam Sneddon <me@gsnedders.com>
* bpo-43760: Document PyThreadState.use_tracing removal (GH-28527) (GH-28529)Miss Islington (bot)2021-09-231-0/+3
| | | | | (cherry picked from commit f4ccb79d52ee726d58bbb038ea98b4deec52001d) Co-authored-by: Victor Stinner <vstinner@python.org>
* Fix legacy logging module URL (GH-28528)Miss Islington (bot)2021-09-231-1/+1
| | | | | | | | 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>
* bpo-41203: Replace Mac OS X and OS X with macOS (GH-28515) (GH-28523)Miss Islington (bot)2021-09-2329-69/+69
| | | | | | | | | | 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>
* [3.10] bpo-45238: Fix unittest.IsolatedAsyncioTestCase.debug() (GH-28449) ↵Łukasz Langa2021-09-224-61/+176
| | | | | | | | | | (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>
* [3.10] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28511)Łukasz Langa2021-09-2129-33/+35
| | | | | | | | 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>
* [tests] Add missing assert against expected tracebacks in test_exceptions.py ↵Miss Islington (bot)2021-09-211-0/+1
| | | | | | | (GH-28484) (GH-28510) (cherry picked from commit a0073471002bed0169fb806703e26880bbcceb73) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* bpo-45234: Fix FileNotFound exception raised instead of IsADirectoryError in ↵Miss Islington (bot)2021-09-213-29/+73
| | | | | | | | 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>
* bpo-45216: Remove extraneous method docs from `difflib` (GH-28445) (GH-28505)Miss Islington (bot)2021-09-212-40/+2
| | | | | (cherry picked from commit 06e1773c8d8fe375423bb7fcf5922b49bc737b75) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.10] bpo-45246: Document that sorted() only uses "<" comparisons ↵Łukasz Langa2021-09-211-0/+9
| | | | | | | (GH-28494) (GH-28502) (cherry picked from commit 9a0dcc5b2e04d9c51350107734f12a1cbc0284a7) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* bpo-45209: fix `UserWarning: resource_tracker` in test_multiprocessing ↵Miss Islington (bot)2021-09-212-0/+9
| | | | | | | (GH-28377) (cherry picked from commit f604cf1c377a7648e0686044e6e49900bfc9feef) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.10] bpo-45021: Fix a hang in forked children (GH-28007) (GH-28480)Miss Islington (bot)2021-09-203-0/+21
| | | | | | | | | _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
* bpo-45229: Make pickle tests discoverable (GH-28467) (GH-28478)Miss Islington (bot)2021-09-203-47/+36
| | | | | (cherry picked from commit e6ba992288fdbe71aa808cfb6955f6f99da7e349) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-45055: Add retry when downloading externals on Windows (GH-28399)Miss Islington (bot)2021-09-201-1/+18
| | | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit ef9e22b253253615098d22cb49141a2a1024ee3c) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-40413: test_embed tests calling Py_RunMain() multiple times (GH-28466)Miss Islington (bot)2021-09-202-4/+24
| | | | | | | | | 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>
* Docs: Clarify the before_and_after() example (GH-28458) (#28464)Miss Islington (bot)2021-09-202-6/+8
| | | | | | | (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>
* bpo-45128: fixes `test_multiprocessing_fork` mysterious crash (GH-28387)Miss Islington (bot)2021-09-192-3/+6
| | | | | (cherry picked from commit 1d42408495402b06ecae91420735aeff454be6b5) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* bpo-30637: Improve the docs of ast.parse regarding differences with ↵Miss Islington (bot)2021-09-191-0/+13
| | | | | | | compile() (GH-28459) (cherry picked from commit e6d05a4092b4176a30d1d1596585df13c2ab676d) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.10] bpo-45229: Remove test_main in many tests (GH-28405) (GH-28455)Serhiy Storchaka2021-09-1961-486/+208
| | | | | | | | | | | 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)
* bpo-44640: Improve punctuation consistency in isinstance/issubclass error ↵Miss Islington (bot)2021-09-191-2/+2
| | | | | | | | | | 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>
* bpo-36674: Honour the skipping decorators in TestCase.debug() (GH-28446)Miss Islington (bot)2021-09-183-1/+77
| | | | | | | | | | | 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>
* bpo-45198: __set_name__ documentation not clear about its usage with ↵Miss Islington (bot)2021-09-182-30/+36
| | | | | | | non-descriptor classes (GH-28439) (cherry picked from commit 94b462686b7dfabbd69cc9401037d736d71c4dc2) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* bpo-45235: Fix argparse overrides namespace with subparser defaults ↵Miss Islington (bot)2021-09-183-6/+15
| | | | (GH-28420) (GH-28442)
* [3.10] Fix minor typo in Doc/c-api/type.rst (GH-28432) (GH-28440)Miss Islington (bot)2021-09-181-1/+1
| | | | | | | | | retreived-> retrieved (cherry picked from commit af08f1ba40505bf1380c08b57ba4e0b8969a8358) Co-authored-by: Konstantin Popov <konst.hardy@gmail.com> Automerge-Triggered-By: GH:Fidget-Spinner
* [3.10] bpo-45183: don't raise an exception when calling ↵Brett Cannon2021-09-184-3/+7
| | | | | | | | 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>
* [doc] Clarify exception in `multiprocessing.cpu_count` (GH-23660) (GH-28433)Miss Islington (bot)2021-09-171-1/+2
| | | | | | | | 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>
* Fix missing space with help for `-m compileall -o` (GH-27591) (GH-28430)Miss Islington (bot)2021-09-171-3/+3
| | | | | (cherry picked from commit 74cc2453ae690be940cddfae8caf8216d8628c4a) Co-authored-by: Daniel Hahler <git@thequod.de>
* bpo-42038: fix description of returned list of lines (GH-27529) (GH-28428)Miss Islington (bot)2021-09-171-6/+6
| | | | | (cherry picked from commit aca0e08c5dcc11a8011697331931cde0b21270f2) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* [doc] Add a missing apostrophe in a code example in venv.rst (GH-28391) ↵Miss Islington (bot)2021-09-171-1/+1
| | | | | | | (GH-28425) (cherry picked from commit d22a700091af35ce52db0b1fbb02115bb6efbb1f) Co-authored-by: Arkaprabha Chakraborty <chakrabortyarkaprabha998@gmail.com>
* bpo-45187: Fix dangling threads in test_socket.CreateServerFunctionalTest ↵Miss Islington (bot)2021-09-171-9/+3
| | | | | | | (GH-28422) (cherry picked from commit 51ebb7f4f5e9bdcf8279a1d91be9569706f6bead) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-45217: adds note that `allow_no_value` in `configparser` is optional ↵Miss Islington (bot)2021-09-171-1/+2
| | | | | | | | (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>
* bpo-45187: Collect test_socket tests using unittest (GH-28317)Miss Islington (bot)2021-09-171-79/+5
| | | | | | | | 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>
* [3.10] bpo-45212: Fix dangling threads in skipped tests in test_socket ↵Serhiy Storchaka2021-09-171-11/+8
| | | | | | | | | (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)
* bpo-45228: Fix stack buffer overflow in parsing J1939 address (GH-28404)Miss Islington (bot)2021-09-172-8/+9
| | | | | (cherry picked from commit 773319545ba60577bc140aa46eac83b360240b7a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Fix typo and add a module prefix (GH-28401)Miss Islington (bot)2021-09-171-2/+2
| | | | | (cherry picked from commit 80d9ff16483b6c1898bcdcc811b5450b57a5e573) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* bpo-45220: Avoid automatically selecting the Windows 11 SDK preview when ↵Miss Islington (bot)2021-09-162-0/+6
| | | | | | | | building (GH-28393) (GH-28394) (cherry picked from commit f4b94b1f57827083990272b5f282aa1493ae2bf4) Co-authored-by: Steve Dower <steve.dower@python.org>
* docs: correct references to __isub__ etc (GH-28297)Miss Islington (bot)2021-09-161-132/+132
| | | | | (cherry picked from commit 800bd01b6d365156403c3dde61765dc5fdbf64be) Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
* bpo-45167: Fix deepcopying of GenericAlias (GH-28324) (GH-28367)Miss Islington (bot)2021-09-153-5/+28
| | | | | (cherry picked from commit 5dce51a8875d9639786741e962b3cb208596b096) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-45205: Make test_compileall quiet (GH-28356) (GH-28370)Miss Islington (bot)2021-09-151-2/+4
| | | | | | | | 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>
* bpo-45207: Make test_gdb.test_pycfunction() quiet (GH-28355) (GH-28365)Miss Islington (bot)2021-09-151-3/+11
| | | | | | | | | 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>
* bpo-45089: Improve sqlite3 trace callback docs (GH-28238) (GH-28371)Miss Islington (bot)2021-09-151-5/+13
| | | | | | | - 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>
* bpo-45208: Make test_pdb.test_checkline_is_not_executable() quiet (GH-28354) ↵Miss Islington (bot)2021-09-151-13/+14
| | | | | | | | | | | (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>
* bpo-45193: News for IDLE PR_28343 (GH-28348)Miss Islington (bot)2021-09-151-0/+1
| | | | | (cherry picked from commit 9d76d28867c28bcc881b851547a9cd7ac003ae88) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>