Miss Islington (bot)
06e9a35169
bpo-44524: Don't modify MRO when inheriting from typing.Annotated (GH-27841)
...
(cherry picked from commit 23384a1749 )
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-08-25 11:36:47 -07:00
Miss Islington (bot)
0af681b652
[3.10] bpo-34990: Treat the pyc header's mtime in compileall as an unsigned int (GH-19708)
...
(cherry picked from commit bb21e28fd0 )
Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
2021-08-24 11:09:14 -04:00
Miss Islington (bot)
6ff7fefc91
bpo-44984: Rewrite test_null_strings in _testcapi (GH-27904)
...
Test also PyObject_Repr(NULL) and PyObject_Bytes(NULL).
(cherry picked from commit 4d68917386 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-08-23 12:30:21 -07:00
Miss Islington (bot)
10955353ce
bpo-44980: fix test_constructor to return None value (GH-27898)
...
(cherry picked from commit 27b761a11a )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
2021-08-23 12:21:06 -07:00
Miss Islington (bot)
d63114caf9
bpo-44955: Always call stopTestRun() for implicitly created TestResult objects (GH-27831)
...
Method stopTestRun() is now always called in pair with method startTestRun()
for TestResult objects implicitly created in TestCase.run().
Previously it was not called for test methods and classes decorated with
a skipping decorator.
(cherry picked from commit a9640d7553 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-08-22 00:55:34 -07:00
Miss Islington (bot)
88a1920c7b
bpo-44968: Fix test_subprocess_wait_no_same_group in test_asyncio (GH-27870)
...
The code of the test was never executed because the test function
was unintentionally converted to a generator function.
(cherry picked from commit 585390fdd8 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-08-21 13:30:08 -07:00
Miss Islington (bot)
5bd27c3be5
bpo-44524: Do not set _name of _SpecialForm without need (GH-27861) (GH-27871)
...
Because setting non-empty _name affects behavior of other code.
In most cases __name__ can be derived from __origin__.__name__.
(cherry picked from commit 4ceec49559 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-08-21 12:33:14 +03:00
Miss Islington (bot)
838b0e975f
bpo-44954: Fix wrong result in float.fromhex corner case (GH-27834)
...
(cherry picked from commit 60b93d9e49 )
Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
2021-08-20 10:48:47 -07:00
Miss Islington (bot)
fc6ad0585e
bpo-44949: Fix test_readline auto history tests (GH-27813)
...
(cherry picked from commit 6fb62b42f4 )
Co-authored-by: Victor Stinner <vstinner@python.org>
2021-08-19 01:52:16 -07:00
Miss Islington (bot)
846a10fc45
bpo-44947: Refine the syntax error for trailing commas in import statements (GH-27814)
...
(cherry picked from commit b2f68b1900 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-08-18 13:32:01 -07:00
Miss Islington (bot)
d1c0e4413d
bpo-44852: Support filtering over warnings without a set message (GH-27793)
...
Additional improvements:
- messages which were compiled regular expressions aren't unpacked back into
strings for unmatched warnings;
- removed unnecessary "if tokens:" check (there's one before the for loop);
- took `endswith` calculation out of the for loop.
(cherry picked from commit 8cf07d3db3 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-08-18 05:10:10 -07:00
Miss Islington (bot)
826e059bb9
[3.10] bpo-44935: enable posix_spawn() on Solaris (GH-27795) (GH-27800)
...
Enable posix_spawn() on Solaris
(cherry picked from commit b1930bf75f )
Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
Automerge-Triggered-By: GH:gpshead
2021-08-17 11:33:34 -07:00
Miss Islington (bot)
3f81e9628f
bpo-44698: Restore complex pow behaviour for small integral exponents (GH-27772) (GH-27796)
...
(cherry picked from commit 4b9a2dcf19 )
Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
2021-08-17 18:38:03 +01:00
Łukasz Langa
bc98f98132
[3.10] bpo-44852: Support ignoring specific DeprecationWarnings wholesale in regrtest (GH-27634) (GH-27784)
...
(cherry picked from commit a0a6d39295 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-08-17 12:01:00 +02:00
Miss Islington (bot)
6f6648e436
bpo-38956: don't print BooleanOptionalAction's default twice (GH-27672)
...
Co-authored-by: Micky Yun Chan <michan@redhat.com>
(cherry picked from commit 1512bc21d6 )
Co-authored-by: Maximilian Hils <git@maximilianhils.com>
2021-08-17 02:40:41 -07:00
Miss Islington (bot)
8516ca500e
bpo-44911: Fixed IsolatedAsyncioTestCase from throwing an exception on leaked tasks (GH-27765)
...
(cherry picked from commit 2cb1a6806c )
Co-authored-by: Bar Harel <bar.harel@biocatch.com>
2021-08-16 02:54:58 -07:00
Miss Islington (bot)
1960409a6d
bpo-44895: skip test_no_hang_on_context_chain_cycle2 until the refleak is fixed (GH-27761)
...
(cherry picked from commit 62bc716fde )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2021-08-16 02:01:14 -07:00
Miss Islington (bot)
d4128485d6
bpo-26228: [doc] Adapt PTY documentation updates from GH-4167 (GH-27754)
...
Co-authored-by: Cornelius Diekmann <c.diekmann@googlemail.com>
(cherry picked from commit dd8eb303b9 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-08-13 04:21:06 -07:00
Miss Islington (bot)
6d134864d6
Added test case based on recommended test cases from RFC 4648 (GH-27747)
...
(cherry picked from commit 230403a6a1 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
2021-08-13 04:15:27 -07:00
Miss Islington (bot)
45a97d91a4
bpo-44891: Tests id preserving on * 1 for str and bytes (GH-27745)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit a2ce538e16 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2021-08-13 04:04:08 -07:00
Miss Islington (bot)
ebc5926234
bpo-44895: Temporarily add an extra gc.collect() call (GH-27746)
...
This is part of an investigation of a non-deterministic reference leak. While we're looking for the root cause, this is included temporarily so that CI doesn't fail on this particular issue. This enables it to find other regressions in the meantime, which would otherwise be shadowed by our known issue.
(cherry picked from commit 7bf28cbb4b )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2021-08-13 03:21:26 -07:00
Benjamin Peterson
ef36dfe4de
[3.10] bpo-33930: Fix typo in the test name. (GH-27736)
...
[bpo-33930](): Fix typo in the test name. (GH-27733)
(cherry picked from commit f08e6d1bb3 )
Automerge-Triggered-By: GH:benjaminp
2021-08-13 02:45:13 -07:00
Pablo Galindo Salgado
c28c2e1cb0
[3.10] bpo-44885: Correct the ast locations of f-strings with format specs and repeated expressions (GH-27729) (GH-27743)
...
(cherry picked from commit 8e832fb2a2 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-08-12 17:41:21 +01:00
Miss Islington (bot)
5d444434ad
bpo-26228: Fix pty EOF handling (GH-12049) (GH-27732)
...
On non-Linux POSIX platforms, like FreeBSD or macOS,
the FD used to read a forked PTY may signal its exit not
by raising an error but by sending empty data to the read
syscall. This case wasn't handled, leading to hanging
`pty.spawn` calls.
Co-authored-by: Reilly Tucker Siemens <reilly@tuckersiemens.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 81ab8db235 )
Co-authored-by: Zephyr Shannon <geoffpshannon@gmail.com>
2021-08-12 14:36:04 +02:00
Miss Islington (bot)
d6d2d54997
bpo-33930: Fix segfault with deep recursion when cleaning method objects (GH-27678) (GH-27719)
...
(cherry picked from commit bfc2d5a5c4 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-08-11 10:32:44 +02:00
Miss Islington (bot)
4e0147ec50
bpo-14853: add back the stdin test, skip if stdin is redirected (GH-27694)
...
(cherry picked from commit 8ed1833912 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2021-08-10 07:31:00 -07:00
Miss Islington (bot)
d86bbe3cff
bpo-25782: avoid hang in PyErr_SetObject when current exception has a cycle in its context chain (GH-27626)
...
Co-authored-by: Dennis Sweeney 36520290+sweeneyde@users.noreply.github.com
(cherry picked from commit d5c217475c )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2021-08-10 06:47:23 -07:00
Miss Islington (bot)
52d481f15c
make lib2to3 parse async generators everywhere (GH-6588)
...
(cherry picked from commit 149addd496 )
Co-authored-by: Zsolt Dollenstein <zsol.zsol@gmail.com>
2021-08-10 06:47:11 -07:00
Miss Islington (bot)
a3185da26f
bpo-41402: Fix email ContentManager calling .encode() on bytes (GH-21631)
...
(cherry picked from commit b33186bc43 )
Co-authored-by: Johannes Reiff <mail@jreiff.de>
2021-08-09 16:44:17 -07:00
Miss Islington (bot)
8ece98a7e4
bpo-38840: Incorrect __all__ in multiprocessing.managers (GH-18034)
...
This was causing test___all__ to fail on platforms lacking a shared
memory implementation.
Co-Authored-By: Xavier de Gaye <xdegaye@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit d097876111 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-08-09 10:39:05 -07:00
Miss Islington (bot)
d5c8ad2471
bpo-32695: Docs and tests for compresslevel and preset kwargs in tarfile (GH-21470)
...
Co-Authored-By: Bo Bayles <bbayles@gmail.com>
(cherry picked from commit eb2d4a66ff )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-08-09 03:30:30 -07:00
Mark Shannon
762ef85f44
bpo-44840: Compiler: Move duplication of exit blocks with no line numbers to after CFG optimization. (GH-27656) ( #27673 )
...
(cherry picked from commit b854557b49 )
2021-08-09 10:54:48 +01:00
Miss Islington (bot)
7d6a0fe5b8
Upgrade bundled pip and setuptools (GH-27625)
...
pip is now 21.2.3
setuptools is now 57.4.0
(cherry picked from commit 738ac00a08 )
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2021-08-07 09:38:40 -07:00
Miss Islington (bot)
66dd1a0e64
bpo-44605: Teach @total_ordering() to work with metaclasses (GH-27633) (GH-27640)
2021-08-06 15:11:44 -05:00
Miss Islington (bot)
2b1e713f87
bpo-44822: Don't truncate strs with embedded NULL chars returned by sqlite3 UDF callbacks (GH-27588)
...
(cherry picked from commit 8f010dc920 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-08-06 10:59:51 -07:00
Miss Islington (bot)
a5d9963276
bpo-40928: notify users running test_decimal on macOS of malloc warnings (GH-26783)
...
* When trying to allocate very large regions on macOS, malloc does not fail silently. It sends a noisy error out to STDERR
* This provides a helper function to warn the user, and provides the warning for test_decimal, which consistently generates these warnings on macOS.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 15d3c14df3 )
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
2021-08-06 10:09:06 -07:00
Miss Islington (bot)
36a2497093
bpo-44524: Fix an issue wherein _GenericAlias._name was not properly set for specialforms (GH-27614)
...
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 8bdf12e99a )
Co-authored-by: Bas van Beek <43369155+BvB93@users.noreply.github.com>
2021-08-06 10:08:27 -07:00
Miss Islington (bot)
a11158ecef
bpo-44584: Deprecate PYTHONTHREADDEBUG env var (GH-27065)
...
The threading debug (PYTHONTHREADDEBUG environment variable) is
deprecated in Python 3.10 and will be removed in Python 3.12. This
feature requires a debug build of Python.
(cherry picked from commit 4d77691172 )
Co-authored-by: Victor Stinner <vstinner@python.org>
2021-08-06 04:32:37 -07:00
Pablo Galindo Salgado
b1bd16c252
[3.10] bpo-44838: Refine the custom syntax errors for invalid 'if' expressions (GH-27615). (GH-27616)
...
…
(cherry picked from commit f5cbea6b1b )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Automerge-Triggered-By: GH:lysnikolaou
2021-08-05 11:00:19 -07:00
Miss Islington (bot)
536e35ae6a
bpo-44801: Check arguments in substitution of ParamSpec in Callable (GH-27585)
...
(cherry picked from commit 3875a69547 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-08-04 13:36:01 -07:00
Miss Islington (bot)
c2593b4d06
bpo-42958: Improve description of shallow= in filecmp.cmp docs (GH-27166)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Alexander Vandenbulcke <alexander.vandenbulcke95@gmail.com>
(cherry picked from commit a8dc4893d2 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
2021-08-04 13:03:33 -07:00
Miss Islington (bot)
bc2841c7a9
bpo-44808: fixes test for interactive inspect getsource of a class (GH-27571)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 58325971de )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
2021-08-03 06:07:59 -07:00
Miss Islington (bot)
8ce7f2f4ef
bpo-39091: Fix segfault when Exception constructor returns non-exception for gen.throw. (GH-17658) (GH-27572)
...
Co-authored-by: Benjamin Peterson <benjamin@python.org>
(cherry picked from commit 83ca46b778 )
Co-authored-by: Noah <33094578+coolreader18@users.noreply.github.com>
2021-08-03 12:10:38 +02:00
Pablo Galindo
cc115e5bf6
Python 3.10.0rc1
2021-08-02 20:53:59 +01:00
Miss Islington (bot)
567176249e
bpo-44792: Improve syntax errors for if expressions (GH-27506) (GH-27565)
...
(cherry picked from commit 28b6dc9dd5 )
Co-authored-by: Miguel Brito <5544985+miguendes@users.noreply.github.com>
2021-08-02 20:05:33 +01:00
Miss Islington (bot)
aa7266854a
bpo-44785: Silence deprecation warnings in test_pickle (GH-27538)
...
(cherry picked from commit 36d952d228 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-08-02 10:09:05 -07:00
Miss Islington (bot)
2cc19a5463
bpo-44806: Fix __init__ in subclasses of protocols (GH-27545)
...
Non-protocol subclasses of protocol ignore now the __init__ method
inherited from protocol base classes.
(cherry picked from commit 043cd60abe )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-08-02 10:08:59 -07:00
Miss Islington (bot)
a1eaa74d9d
bpo-44808: Fix test_inspect in refleak mode (GH-27544)
...
(cherry picked from commit 626d397cc1 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-08-02 06:41:08 -07:00
Miss Islington (bot)
1bc83eb5c8
bpo-44781: make distutils test suppress deprecation warning from import distutils (GH-27485) (GH-27540)
...
(cherry picked from commit a9134fa2ff )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2021-08-02 11:54:52 +02:00
Miss Islington (bot)
33a4010198
bpo-44667: Treat correctly lines ending with comments and no newlines in the Python tokenizer (GH-27499) (GH-27500)
...
(cherry picked from commit b6bde9fc42 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-08-02 11:43:45 +02:00