Jakub Kulík
8c0be6fd91
bpo-41687: Fix sendfile implementation to work with Solaris ( #22040 )
2020-09-05 12:10:01 -07:00
Dong-hee Na
54a66ade20
bpo-41700: Skip test if the locale is not supported (GH-22081)
2020-09-04 17:47:40 +09:00
Pablo Galindo
e55a0e971b
Fix 'gather' rules in the python parser generator (GH-22021)
...
Currently, empty sequences in gather rules make the conditional for
gather rules fail as empty sequences evaluate as "False". We need to
explicitly check for "None" (the failure condition) to avoid false
negatives.
2020-09-03 15:29:55 +01:00
Ben Darnell
be435ae2b0
bpo-39010: Improve test shutdown ( #22066 )
...
Simply closing the event loop isn't enough to avoid warnings. If we
don't also shut down the event loop's default executor, it sometimes
logs a "dangling thread" warning.
Follow-up to GH-22017
2020-09-02 21:58:50 -07:00
Shantanu
0770ad948c
bpo-41696: Fix handling of debug mode in asyncio.run ( #22069 )
...
* bpo-41696: Fix handling of debug mode in asyncio.run
This allows PYTHONASYNCIODEBUG or -X dev to enable asyncio debug mode
when using asyncio.run
* 📜 🤖 Added by blurb_it.
Co-authored-by: hauntsaninja <>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2020-09-02 21:54:46 -07:00
Benjamin Peterson
3940333637
closes bpo-41689: Preserve text signature from tp_doc in C heap type creation. (GH-22058)
2020-09-02 11:29:06 -05:00
han-solo
749ed85e44
Fixed mistake in test for f-string error description (GH-22036) (GH-22059)
2020-09-02 04:56:37 -04:00
Pablo Galindo
9b648a95cc
bpo-41654: Fix deallocator of MemoryError to account for subclasses (GH-22020)
...
When allocating MemoryError classes, there is some logic to use
pre-allocated instances in a freelist only if the type that is being
allocated is not a subclass of MemoryError. Unfortunately in the
destructor this logic is not present so the freelist is altered even
with subclasses of MemoryError.
2020-09-01 19:39:46 +01:00
han-solo
0d6aa7f0ee
bpo-41681: Fix for `f-string/str.format` error description when using 2 `,` in format specifier (GH-22036)
...
* Fixed `f-string/str.format` error description when using two `,` in format specifier.
Co-authored-by: millefalcon <hanish0019@hmail.com>
2020-09-01 10:34:29 -04:00
Ben Darnell
ea5a6363c3
bpo-39010: Fix errors logged on proactor loop restart ( #22017 )
...
Stopping and restarting a proactor event loop on windows can lead to
spurious errors logged (ConnectionResetError while reading from the
self pipe). This fixes the issue by ensuring that we don't attempt
to start multiple copies of the self-pipe reading loop.
2020-08-31 12:57:52 -07:00
Vinay Sharma
475a5fbb56
bpo-41344: Raise ValueError when creating shared memory of size 0 (GH-21556)
2020-08-30 20:03:11 +01:00
Irit Katriel
582f13786b
bpo-39994: Fix pprint handling of dict subclasses that override __repr__ (GH-21892)
...
Co-authored-by: Palak Kumar Jha
2020-08-30 20:29:53 +03:00
Irit Katriel
022bc7572f
bpo-41609: Fix output of pdb's whatis command for instance methods (GH-21935)
2020-08-27 02:51:12 +02:00
Dong-hee Na
94ad6c674f
bpo-33660: Fix PosixPath to resolve a relative path on root
2020-08-27 02:24:38 +02:00
Elvis Pranskevichus
a2118a1462
bpo-37658: Fix asyncio.wait_for() to respect waited task status ( #21894 )
...
Currently, if `asyncio.wait_for()` itself is cancelled it will always
raise `CancelledError` regardless if the underlying task is still
running. This is similar to a race with the timeout, which is handled
already.
2020-08-26 09:42:45 -07:00
Elvis Pranskevichus
c517fc7121
bpo-32751: Wait for task cancel in asyncio.wait_for() when timeout <= 0 ( #21895 )
...
When I was fixing bpo-32751 back in GH-7216 I missed the case when
*timeout* is zero or negative. This takes care of that.
Props to @aaliddell for noticing the inconsistency.
2020-08-26 09:42:22 -07:00
Victor Stinner
fbf43f051e
bpo-41521: Rename blacklist parameter to not_exported (GH-21824)
...
Rename "blacklist" parameter of test.support.check__all__() to
"not_exported".
2020-08-17 07:20:40 +02:00
Irit Katriel
2353d77fad
bpo-41503: Fix race between setTarget and flush in logging.handlers.MemoryHandler (GH-21765)
2020-08-16 16:10:13 +01:00
Raymond Hettinger
fff3c28052
bpo-41513: Improve speed and accuracy of math.hypot() (GH-21803)
2020-08-15 19:38:19 -07:00
Stefan Krah
39dab24621
bpo-41540: AIX: skip test that is flaky with a default ulimit. ( #21890 )
...
- AIX has extreme over-allocation that is in no relation to the physical
RAM and swap.
2020-08-15 20:19:07 +02:00
Paul Ganssle
87d8287865
bpo-41025: Fix subclassing for zoneinfo.ZoneInfo (GH-20965)
...
Prior to this change, attempting to subclass the C implementation of
zoneinfo.ZoneInfo gave the following error:
TypeError: unbound method ZoneInfo.__init_subclass__() needs an argument
https://bugs.python.org/issue41025
2020-08-13 22:38:30 -04:00
Victor Stinner
20ae565bd2
bpo-41521: Replace denylist with blocklist is http.cookiejar doc (GH-21826)
...
The http.cookiejar module has is_blocked() and blocked_domains()
methods, so "blocklist" term sounds better than "denylist" in this
module.
Replace also denylisted with denied in test___all__.
2020-08-13 19:20:28 +02:00
Terry Jan Reedy
c818b15fa5
bpo-41520: Fix second codeop regression (GH-21848)
...
* bpo-41520: Fix second codeop repression
Fix the repression introduced by the initial regression fix.
2020-08-13 13:18:49 -04:00
Pablo Galindo
c51db0ea40
bpo-41531: Fix compilation of dict literals with more than 0xFFFF elements (GH-21850)
2020-08-13 09:48:41 +01:00
Victor Stinner
369a1cbdee
bpo-41520: codeop no longer ignores SyntaxWarning (GH-21838)
2020-08-12 14:53:28 +02:00
Victor Stinner
0ee0b2938c
bpo-41521: Replace whitelist/blacklist with allowlist/denylist (GH-21823)
...
Rename 5 test method names in test_codecs and test_typing.
2020-08-11 15:28:43 +02:00
Victor Stinner
fabd7bb8e0
bpo-41521: Replace whitelist/blacklist with allowlist/denylist (GH-21822)
...
Automerge-Triggered-By: @tiran
2020-08-11 06:26:59 -07:00
Hai Shi
490c5426b1
bpo-40275: Fix failed test cases by using test helpers (GH-21811)
2020-08-10 23:24:02 +02:00
Filipe Laíns
4ce6faa6c9
bpo-16995: add support for base32 extended hex (base32hex) (GH-20441)
...
cc @pganssle
Automerge-Triggered-By: @pganssle
2020-08-10 07:48:20 -07:00
Stefan Krah
39042e00ab
bpo-41324 Add a minimal decimal capsule API ( #21519 )
2020-08-10 16:32:21 +02:00
Zackery Spytz
e28b8c9387
bpo-35018: Sax parser should provide user access to lexical handlers (GH-20958)
...
Co-Authored-By: Jonathan Gossage <jgossage@gmail.com>
2020-08-09 12:50:53 +02:00
Hai Shi
c6f282f3b1
bpo-40275: Use new test.support helper submodules in tests (GH-21785)
2020-08-08 13:05:24 +02:00
Hai Shi
d94af3f7ed
bpo-40275: Remove test helpers aliases in test.support (GH-21771)
2020-08-08 11:32:41 +02:00
Hai Shi
fcce8c649a
bpo-40275: Use new test.support helper submodules in tests (GH-21772)
2020-08-07 23:55:35 +02:00
Victor Stinner
e27a51c11e
bpo-41473: Skip test_gdb with gdb 9.2 to work around gdb bug (GH-21768)
...
gdb 9.2 on Fedora Rawhide is not reliable, see:
* https://bugs.python.org/issue41473
* https://bugzilla.redhat.com/show_bug.cgi?id=1866884
2020-08-07 17:57:56 +02:00
Victor Stinner
f44693eaed
bpo-41477: Make ctypes optional in test_genericalias (GH-21766)
2020-08-07 17:56:42 +02:00
Hai Shi
598a951844
bpo-40275: Use new test.support helper submodules in tests (GH-21764)
2020-08-07 17:18:38 +02:00
Nathan M
5f0769a752
bpo-41371: Handle lzma lib import error in test_zoneinfo.py (GH-21734)
2020-08-06 15:09:40 -07:00
Hai Shi
79bb2c93f2
bpo-40275: Use new test.support helper submodules in tests (GH-21743)
2020-08-06 13:51:29 +02:00
Batuhan Taskaya
8f4380d2f5
bpo-40726: handle uninitalized end_lineno on ast.increment_lineno (GH-20312)
2020-08-05 14:32:32 +01:00
Hai Shi
c7decc27d5
bpo-40275: Use new test.support helper submodules in tests (GH-21727)
2020-08-04 17:53:12 +02:00
Hai Shi
604bba1f8f
bpo-40275: Use new test.support helper submodules in tests (GH-21452)
2020-08-04 17:51:43 +02:00
Hans Petter Jansson
da4e09fff6
bpo-36982: Add support for extended color functions in ncurses 6.1 (GH-17536)
...
Co-authored-by: Jeffrey Kintscher <websurfer@surf2c.net>
2020-08-03 23:51:33 -04:00
Inada Naoki
db6d9a50ce
bpo-41431: Optimize dict_merge for copy (GH-21674)
2020-08-04 11:08:06 +09:00
Victor Stinner
701b63894f
bpo-38912: regrtest logs unraisable exception into sys.__stderr__ (GH-21718)
...
regrtest_unraisable_hook() temporarily replaces sys.stderr with
sys.__stderr__ to help to display errors when a test captures stderr.
2020-08-03 22:51:23 +02:00
Hai Shi
4660597b51
bpo-40275: Use new test.support helper submodules in tests (GH-21448)
2020-08-03 18:49:18 +02:00
Hai Shi
bb0424b122
bpo-40275: Use new test.support helper submodules in tests (GH-21451)
2020-08-03 18:47:42 +02:00
Hai Shi
a7f5d93bb6
bpo-40275: Use new test.support helper submodules in tests (GH-21449)
2020-08-03 18:41:24 +02:00
Karthikeyan Singaravelan
cadda52d97
bpo-40360: Handle PendingDeprecationWarning in test_lib2to3. (GH-21694)
2020-07-31 16:20:48 +05:30
Mark Shannon
6e8128f02e
bpo-41323: Perform 'peephole' optimizations directly on the CFG. (GH-21517)
...
* Move 'peephole' optimizations into compile.c and perform them directly on the CFG.
2020-07-30 10:03:00 +01:00