Commit graph

108831 commits

Author SHA1 Message Date
Miss Islington (bot)
6e151ff6fc
[3.9] Fix minor typo in Doc/c-api/type.rst (GH-28432) (GH-28441)
retreived-> retrieved
(cherry picked from commit af08f1ba40)


Co-authored-by: Konstantin Popov <konst.hardy@gmail.com>

Automerge-Triggered-By: GH:Fidget-Spinner
2021-09-17 19:12:25 -07:00
Miss Islington (bot)
eb9833d265
[doc] Clarify exception in multiprocessing.cpu_count (GH-23660) (GH-28434)
Previous wording didn't explain the slightly unintuitive behavior.

Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit 24dbe30f8d)

Co-authored-by: Emmanuel Arias <eamanu@yaerobi.com>
2021-09-18 01:23:38 +02:00
Miss Islington (bot)
6302701179
bpo-42038: fix description of returned list of lines (GH-27529) (GH-28429)
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
2021-09-18 00:56:26 +02:00
Miss Islington (bot)
791cfd1903
Fix missing space with help for -m compileall -o (GH-27591) (GH-28431)
(cherry picked from commit 74cc2453ae)

Co-authored-by: Daniel Hahler <git@thequod.de>
2021-09-18 00:55:37 +02:00
Miss Islington (bot)
129e47733b
[doc] Add a missing apostrophe in a code example in venv.rst (GH-28391) (GH-28426)
(cherry picked from commit d22a700091)

Co-authored-by: Arkaprabha Chakraborty <chakrabortyarkaprabha998@gmail.com>
2021-09-18 00:18:19 +02:00
Miss Islington (bot)
6c50f23ae0
bpo-45187: Fix dangling threads in test_socket.CreateServerFunctionalTest (GH-28422) (GH-28424)
(cherry picked from commit 51ebb7f4f5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-09-17 22:40:33 +03:00
Łukasz Langa
0f4449ecb0
[3.9] bpo-45187: Collect test_socket tests using unittest (GH-28317) (GH-28413)
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 0361335b80)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-09-17 14:48:54 +03:00
Miss Islington (bot)
3ea1c4b668
bpo-45217: adds note that allow_no_value in configparser is optional (GH-28396) (GH-28416)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit cb07838ab7)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2021-09-17 13:41:25 +02:00
Serhiy Storchaka
9f64b1a44b
[3.9] docs: correct references to __isub__ etc (GH-28297). (GH-28415)
(cherry picked from commit 800bd01b6d)

Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
2021-09-17 14:14:27 +03:00
Serhiy Storchaka
10c3cf7851
[3.9] bpo-45212: Fix dangling threads in skipped tests in test_socket (GH-28361) (GH-28408)
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 7dacb70485)
2021-09-17 13:11:50 +03:00
Miss Islington (bot)
98fef200bb
bpo-45228: Fix stack buffer overflow in parsing J1939 address (GH-28404)
(cherry picked from commit 773319545b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-09-17 02:10:55 -07:00
Miss Islington (bot)
7ad07eed88
bpo-45220: Avoid automatically selecting the Windows 11 SDK preview when building (GH-28393)
(cherry picked from commit f4b94b1f57)

Co-authored-by: Steve Dower <steve.dower@python.org>
2021-09-16 11:54:25 -07:00
Victor Stinner
471b3811fe
bpo-45208: Make test_pdb.test_checkline_is_not_executable() quiet (GH-28354) (GH-28381)
test_pdb.test_checkline_is_not_executable() no longer writes output
to stdout.

Remove also unused variables 'f'.

(cherry picked from commit e08e491a6c)
2021-09-16 09:53:02 +02:00
Miss Islington (bot)
9443ce4eed
bpo-45205: Make test_compileall quiet (GH-28356) (GH-28364)
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 cc057ff522)

Co-authored-by: Victor Stinner <vstinner@python.org>
2021-09-15 21:33:52 +02:00
Miss Islington (bot)
2746045a37
bpo-45167: Fix deepcopying of GenericAlias (GH-28324) (GH-28368)
(cherry picked from commit 5dce51a887)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-09-15 21:31:14 +02:00
Miss Islington (bot)
1c70efcbb5
bpo-45207: Make test_gdb.test_pycfunction() quiet (GH-28355) (GH-28366)
test_gdb.test_pycfunction() now ignores gdb stderr, it no longer logs
messages like:

    Function "meth_varargs" not defined.
(cherry picked from commit 84a6061e29)

Co-authored-by: Victor Stinner <vstinner@python.org>
2021-09-15 21:11:21 +02:00
Miss Islington (bot)
97802a8edb
bpo-45089: Improve sqlite3 trace callback docs (GH-28238) (GH-28372)
- Add link to str object and sqlite3 transaction control
- Mention that exceptions are not propagated
(cherry picked from commit 51056b40e7)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-09-15 21:09:27 +02:00
Miss Islington (bot)
4ce55cceb2
bpo-45195: Fix test_readline.test_nonascii() (GH-28329) (GH-28334)
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 797c8eb9ef)

Co-authored-by: Victor Stinner <vstinner@python.org>
2021-09-15 14:38:57 +02:00
Miss Islington (bot)
f71b86e0ae
bpo-45020: Don't test IDLE with frozen module. (GH-28344)
Otherwise, test would need special import.
(cherry picked from commit 369bf949cc)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-09-15 00:34:19 -07:00
Miss Islington (bot)
9ccdc90488
bpo-45196: prevent unittest crash on address sanitizer builds (GH-28331)
(cherry picked from commit b668cdfa09)

Co-authored-by: junyixie <xiejunyi.arch@bytedance.com>
2021-09-14 11:54:27 -07:00
Miss Islington (bot)
13257d9fca
bpo-45156: Fixes inifite loop on unittest.mock.seal() (GH-28300)
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 7f60c9e1c6)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2021-09-14 03:50:28 -07:00
Miss Islington (bot)
9cd8fb8d63
bpo-35474: Fix mimetypes.guess_all_extensions() potentially mutating list (GH-28286) (GH-28290)
* 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 97ea18eced)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-09-13 19:24:08 +02:00
Miss Islington (bot)
218fe2cb79
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 9260e67398)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-09-13 10:08:35 -07:00
Miss Islington (bot)
5d28bb699a
[3.10] bpo-45126: Fix ref. leak in sqlite3.Connection.__init__ (GH-28231). (GH-28298)
(cherry picked from commit aa6dd54d43)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-09-12 21:07:32 -07:00
Miss Islington (bot)
1b02e29fb2
IDLE: adjust Python version in doc url for 3.10+ (GH-28228) (GH-28282)
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 b74c819fab)

Co-authored-by: giovanniwijaya <16949408+giovanniwijaya@users.noreply.github.com>
2021-09-10 18:22:54 -04:00
Miss Islington (bot)
baeaaecb8a
bpo-9811: [doc] strftime handling of unsupported format specifiers is platform dependent (GH-28264) (GH-28278)
(cherry picked from commit e86bcfa580)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2021-09-10 21:53:34 +02:00
Miss Islington (bot)
314de5326f
bpo-44219: Mention GH-28250 is a deadlock bugfix (GH-28261) (GH-28275)
(cherry picked from commit 296b710070)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-09-10 18:22:24 +02:00
Miss Islington (bot)
052e199d8a
[3.9] Fix typos in pep384_macrocheck.py (GH-28220) (GH-28273)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit 4338aeeb9e)


Co-authored-by: Ikko Ashimine <eltociear@gmail.com>

Automerge-Triggered-By: GH:Fidget-Spinner
2021-09-10 08:11:46 -07:00
Miss Islington (bot)
5c65834d80
bpo-44219: Release the GIL during isatty syscalls (GH-28250)
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 06148b1870)

Co-authored-by: Vincent Michel <vxgmichel@gmail.com>
2021-09-09 06:40:42 -07:00
andrei kulakov
dc2e11ed5a
[3.9] bpo-41082: Add note on errors that may be raised by home() and expanduser() (GH-28186)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-09-08 19:24:09 +02:00
Łukasz Langa
7a6178a7cd
[3.9] bpo-38820: Test with OpenSSL 3.0.0 final (GH-28205) (GH-28217)
Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit cc7c680194)

Co-authored-by: Christian Heimes <christian@python.org>
2021-09-08 19:01:25 +02:00
Serhiy Storchaka
a328a13b70
[3.9] bpo-45097: Fix deprecation warnings in test_asyncio (GH-28236) 2021-09-08 17:59:40 +02:00
Ken Jin
99506dcbbe
[3.9] bpo-45121: Fix RecursionError when calling Protocol.__init__ from a subclass' __init__ (GH-28206) (GH-28233)
Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
2021-09-08 17:01:51 +02:00
Miss Islington (bot)
d9b7d427eb
Remove documentation for non-existing socket class attributes (GH-28029) (GH-28221)
The functions in question are available on the module-level only.
(cherry picked from commit 34d82ce7cb)

Co-authored-by: Matti Picus <matti.picus@gmail.com>
2021-09-07 20:45:57 +02:00
Miss Islington (bot)
2363910662
bpo-24888: Clarify subprocess.check_call propagates exceptions if unable to start process (GH-28018) (GH-28223)
(cherry picked from commit 19a304ba99)

Co-authored-by: DonnaDia <37962843+DonnaDia@users.noreply.github.com>
2021-09-07 20:43:42 +02:00
Pablo Galindo Salgado
5a7a35467a
Check that 'configure' is generated by GNU Autoconf 2.69 (GH-28156) 2021-09-07 19:30:48 +02:00
Miss Islington (bot)
04c13c97ee
bpo-45118: Fix regrtest second summary for re-run tests (GH-28183) (GH-28215)
Fix regrtest second summary when using -w/--verbose2 command line
option: lists re-run tests in the second test summary.
(cherry picked from commit c4ea45d7d2)

Co-authored-by: Victor Stinner <vstinner@python.org>
2021-09-07 19:21:19 +02:00
Miss Islington (bot)
b1f2fe777e
bpo-45104: Clarify when __init__ is called (GH-28210) (GH-28212)
(cherry picked from commit fa15df77f0)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2021-09-07 18:27:28 +02:00
Miss Islington (bot)
9ad2184d67
[3.8] Update idlelib/help.html to include idle.rst spelling fix (GH-28191) (GH-28193)
The idle.rst fix was GH-27903 two weeks ago.
(cherry picked from commit f05ad92028)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-09-07 01:29:06 -04:00
Miss Islington (bot)
f91d974ce6
bpo-45102: unittest: add tests for skipping and errors in cleanup (GH-28166)
(cherry picked from commit 28264269de)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-09-05 00:56:24 -07:00
Serhiy Storchaka
ab58269ab3
[3.9] bpo-45042: Now test classes decorated with requires_hashdigest are not skipped (GH-28060) (GH-28169)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>.
(cherry picked from commit dd7b816ac8)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2021-09-05 09:41:33 +03:00
Miss Islington (bot)
fecd17fbcb
bpo-45030: Fix integer overflow in __reduce__ of the range iterator (GH-28000)
It happened with fast range iterator  when the calculated stop = start + step * len
was out of the C long range.
(cherry picked from commit 936f6a16b9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-09-04 13:39:47 -07:00
Serhiy Storchaka
c967bd523c
[3.9] bpo-45097: Remove incorrect deprecation warnings in asyncio. (GH-28153)
Deprecation warnings about the loop argument were incorrectly emitted
in cases when the loop argument was used inside the asyncio library,
not from user code.
2021-09-04 20:54:50 +03:00
Dong-hee Na
ce83e42437
bpo-42255: Update webbrowser doc for macOS (GH-28145) 2021-09-03 19:22:01 +02:00
Miss Islington (bot)
41c2374024
[3.9] bpo-45083: Include the exception class qualname when formatting an exception (GH-28119) (GH-28135)
* bpo-45083: Include the exception class qualname when formatting an exception (GH-28119)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
(cherry picked from commit b4b6342848)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-09-03 18:56:05 +02:00
Miss Islington (bot)
98eb40828a
bpo-45081: Fix __init__ method generation when inheriting from Protocol (GH-28121) (GH-28132)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit 0635e201be)

Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
2021-09-02 19:01:32 +02:00
Miss Islington (bot)
ca27109c17
[doc] Link to deprecation policy PEP from the DeprecationWarning documentation (GH-28123) (GH-28124)
(cherry picked from commit a7ef15aae8)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-09-02 17:14:11 +02:00
Serhiy Storchaka
e09dd8aafd
[3.9] bpo-45060: Get rid of few uses of the equality operators with None (GH-28087). (GH-28093)
(cherry picked from commit 3c65457156)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-09-01 09:51:01 +03:00
Serhiy Storchaka
e527f79fa8
[3.9] bpo-45057: Simplify RegressionTestResult (GH-28081) (GH-28103)
Remove code which duplicates the functionality of TextTestResult.
(cherry picked from commit 2b76a5322f)
2021-09-01 09:45:09 +03:00
Miss Islington (bot)
2280bc1163
bpo-45059: Add module cleanup to IDLE test_macosx (GH-28102)
(cherry picked from commit 22fe0eb13c)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-08-31 12:24:48 -07:00