Ethan Furman
6d3dfee271
[Enum] reformat and add doc strings (GH-23705)
2020-12-08 12:26:56 -08:00
Ethan Furman
37440eef7f
bpo-41907: [Enum] fix format() behavior for IntFlag (GH-22497)
2020-12-08 11:14:10 -08:00
Petr Viktorin
c168b5078f
bpo-42111: Make the xxlimited module an example of best extension module practices (GH-23226)
...
- Copy existing xxlimited to xxlimited53 (named for the limited API version it uses)
- Build both modules, both in debug and release
- Test both modules
2020-12-08 08:36:53 -08:00
Matti Picus
c0afb7fa0e
bpo-39825: Fixes sysconfig.get_config_var('EXT_SUFFIX') on Windows to match distutils (GH-22088)
2020-12-07 17:33:20 +00:00
Ethan Furman
c266736ec1
bpo-41889: [Enum] fix multiple-inheritance regression (GH-22487)
2020-12-07 00:17:31 -08:00
kj
804d6893b8
bpo-42576: Raise TypeError when passing in keyword arguments to GenericAlias (GH-23656)
...
Use `_PyArg_NoKeywords` instead of `_PyArg_NoKwnames` when checking the `kwds` tuple when creating `GenericAlias`. This fixes an interpreter crash when passing in keyword arguments to `GenericAlias`'s constructor.
Needs backport to 3.9.
Automerge-Triggered-By: GH:gvanrossum
2020-12-05 08:02:14 -08:00
Senthil Kumaran
da3d2abe6b
GH-5054: CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed ( #23638 )
2020-12-05 05:26:24 -08:00
Brandt Bucher
226a012d1c
bpo-42536: GC track recycled tuples (GH-23623)
...
Several built-in and standard library types now ensure that their internal result tuples are always tracked by the garbage collector:
- collections.OrderedDict.items
- dict.items
- enumerate
- functools.reduce
- itertools.combinations
- itertools.combinations_with_replacement
- itertools.permutations
- itertools.product
- itertools.zip_longest
- zip
Previously, they could have become untracked by a prior garbage collection.
2020-12-04 19:45:57 -08:00
Brett Cannon
2de5097ba4
bpo-26131: Deprecate usage of load_module() (GH-23469)
...
Raise an ImportWarning when the import system falls back on load_module(). As for implementations of load_module(), raise a DeprecationWarning.
2020-12-04 15:39:21 -08:00
Irit Katriel
2e0760bb2e
bpo-17735: inspect.findsource now raises OSError when co_lineno is out of range (GH-23633)
...
This can happen when a file was edited after it was imported.
2020-12-04 23:22:03 +02:00
pxinwr
8d4f57dbd1
bpo-31904: fix test_doctest.py failures for VxWorks (GH-23419)
...
Fix test_doctest.py failures for VxWorks by avoiding exact error message checks. (better for everyone all around)
2020-12-04 12:19:32 -08:00
Irit Katriel
6e1eec71f5
bpo-42116: Fix inspect.getsource handling of trailing comments (GH-23630)
2020-12-04 18:45:38 +02:00
Victor Stinner
066394018a
bpo-41473: Reenable test_gdb on gdb 9.2 and newer (GH-23637)
...
https://bugzilla.redhat.com/show_bug.cgi?id=1866884 is fixed in gdb
10.1 (failed to reproduce on gdb-10.1-1.fc34.aarch64).
2020-12-04 16:23:56 +01:00
Mark Shannon
eaccc12aa9
bpo-42246: Don't forget the entry block when ensuring that all exits have a line number (GH-23636)
...
Don't forget the entry block when ensuring that all exits have a line number.
2020-12-04 15:22:12 +00:00
Yurii Karabas
f24b8101a0
bpo-42562: Fix issue when dis failed to parse function that has no line numbers (GH-23632)
...
Fix issue when dis failed to parse function that has only annotations
2020-12-04 15:20:53 +00:00
Victor Stinner
7e5e13d113
bpo-42553: Fix test_asyncio.test_call_later() (GH-23627)
...
Fix test_asyncio.test_call_later() race condition: don't measure
asyncio performance in the call_later() unit test. The test failed
randomly on the CI.
2020-12-03 13:56:41 +01:00
FX Coudert
5291639e61
bpo-42504: fix for MACOSX_DEPLOYMENT_TARGET=11 (GH-23556)
...
macOS releases numbering has changed as of macOS 11 Big Sur. Previously, major releases were of the form 10.x, 10.x+1, 10.x+2, etc; as of Big Sur, they are now x, x+1, etc, so, for example, 10.15, 10.15.1, ..., 10.15.7, 11, 11.0.1, 11.1, ..., 12, 12.1, etc. Allow Python to build with single-digit deployment target values. Patch provided by FX Coudert.
2020-12-02 22:20:18 -05:00
Mark Shannon
5977a7989d
bpo-42246: Make sure that line number is correct after a return, as required by PEP 626 (GH-23495)
...
Make sure that line number is correct after a return, as defined by PEP 626.
2020-12-02 13:31:40 +00:00
Mark Shannon
4e7a69bdb6
bpo-42500: Fix recursion in or after except (GH-23568)
...
* Use counter, rather boolean state when handling soft overflows.
2020-12-02 13:30:55 +00:00
pxinwr
e483d281bd
bpo-31904: Fix test_netrc for VxWorks RTOS (GH-21675)
...
Fix test_netrc on VxWorks: create temporary directories using temp_cwd().
2020-12-01 21:34:42 +01:00
pxinwr
b2d0c66e88
bpo-31904: Fix fifo test cases for VxWorks (GH-20254)
2020-12-01 09:20:50 +01:00
Raymond Hettinger
cc061d0e6f
bpo-38200: Add itertools.pairwise() (GH-23549)
2020-11-30 20:42:54 -08:00
Irit Katriel
427613f005
bpo-42482: remove reference to exc_traceback from TracebackException (GH-23531)
2020-11-30 17:35:25 -08:00
pxinwr
1244c816d7
bpo-31904: Support signal module on VxWorks (GH-23391)
2020-11-30 22:48:33 +01:00
Christian Heimes
5c73afc36e
bpo-28468: Add platform.freedesktop_os_release() (GH-23492)
...
Add platform.freedesktop_os_release() function to parse freedesktop.org
os-release files.
Signed-off-by: Christian Heimes <christian@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
2020-11-30 22:34:45 +01:00
Andreas Poehlmann
0be9ce305f
bpo-42487: don't call __getitem__ of underlying maps in ChainMap.__iter__ (GH-23534)
2020-11-30 08:34:15 -08:00
Zackery Spytz
9654592478
bpo-42506: Fix unexpected output in test_format (GH-23564)
2020-11-30 17:39:12 +09:00
Raymond Hettinger
fc40b3020c
bpo-42450: Minor updates to the itertools recipes (GH-23555)
2020-11-29 10:47:22 -08:00
pxinwr
6a273fdc2a
bpo-31904: skip some tests related to fifo on VxWorks (GH-23473)
...
On VxWork RTOS, FIFO must be created under directory "/fifos/". Some test cases related to fifo is invalid on VxWorks. So skip them.
2020-11-28 14:06:36 -08:00
pxinwr
a86a274b72
bpo-31904: add shell requirement for test_pipes (GH-23489)
...
VxWorks has no user space shell provided so it can't support pipes module. Also add shell requirement for running test_pipes.
2020-11-28 14:04:50 -08:00
pxinwr
996a1ef8ae
skip test_test of test_mailcap on VxWorks (GH-23507)
2020-11-28 13:49:47 -08:00
pxinwr
64c8f81047
skip test_getaddrinfo_ipv6_scopeid_symbolic and test_getnameinfo_ipv6_scopeid_symbolic on VxWorks (GH-23518)
2020-11-28 13:48:38 -08:00
Soumendra Ganguly
74311aeb45
bpo-41818: Fix test_master_read() so that it succeeds on all platforms that either raise OSError or return b"" upon reading from master (GH-23536)
...
Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com>
2020-11-28 23:04:20 +02:00
pxinwr
aa1b8a168d
bpo-31904: Fix test_os.test_getcwd_long_path() failure for VxWorks (GH-20256)
2020-11-28 21:21:30 +01:00
Zackery Spytz
8085f742f4
bpo-34215: Clarify IncompleteReadError message when "expected" is None (GH-21925)
...
Co-Authored-By: Tyler Bell <mrbell321@gmail.com>
2020-11-28 16:27:28 +02:00
Yurii Karabas
e4fe303b8c
bpo-42392: Remove loop parameter from asyncio.tasks and asyncio.subprocess (GH-23521)
2020-11-28 10:21:17 +02:00
Irit Katriel
44ca05afc8
bpo-42474: test TracebackException comparison to non-equal instances (GH-23522)
...
Closes bpo-42474
2020-11-27 08:38:54 -08:00
Soumendra Ganguly
f5a19ead4b
bpo-41818: Make test_openpty() avoid unexpected success due to number of rows and/or number of columns being == 0. (GH-23526)
2020-11-27 12:16:41 +02:00
Yurii Karabas
f533cb80cb
bpo-42392: Remove loop parameter from asyncio.streams (GH-23517)
2020-11-26 09:36:37 +02:00
Andrew Svetlov
87f7ab5359
bpo-41818: test_openpty succeed on Gentoo, don't expect to fail on this platform (GH-23514)
2020-11-25 19:06:12 +02:00
Soumendra Ganguly
c13d89955d
bpo-41818: Updated tests for the standard pty library (GH-22962)
2020-11-25 15:41:25 +02:00
Dong-hee Na
be319c0c10
bpo-42299: Remove formatter module (GH-23476)
2020-11-25 22:17:30 +09:00
Yurii Karabas
b9127dd6ee
bpo-42392: Improve removal of *loop* parameter in asyncio primitives (GH-23499)
...
* Update code after merge review from 1st1
* Use a sentinel approach for loop parameter
Remove unnecessary _get_running_loop patching
* Use more clear function name (_verify_parameter_is_marker -> _verify_no_loop)
* Add init method to _LoopBoundMixin to check that loop param wasn't used
2020-11-25 06:50:44 -05:00
Julien Palard
4fedd7123e
bpo-12800: tarfile: Restore fix from 011525ee9
(GH-21409)
...
Restore fix from 011525ee92
.
2020-11-25 10:23:17 +01:00
Yurii Karabas
0ec34cab9d
bpo-42392: Remove loop parameter form asyncio locks and Queue ( #23420 )
...
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2020-11-24 20:08:54 +02:00
Ned Deily
c0c23ea72b
bpo-41100: in test_platform, ignore 10.16 (GH-23485)
2020-11-24 01:20:35 -05:00
Yaroslav Pankovych
79d2e62c00
Added support for negative indexes to PurePath.parents (GH-21799)
...
This commit also fixes up some of the overlapping documentation changed
in bpo-35498, which added support for indexing with slices.
Fixes bpo-21041.
https://bugs.python.org/issue21041
Co-authored-by: Paul Ganssle <p.ganssle@gmail.com>
Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
2020-11-23 15:06:22 -05:00
Nick Crews
2f2f9d0b5c
bpo-15450: Allow subclassing of dircmp (GH-23424) ( #23424 )
...
Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com>
2020-11-23 18:29:37 +02:00
Irit Katriel
ff420f0e08
bpo-28850: Fix PrettyPrinter.format overrides ignored for contents of small containers (GH-22120)
2020-11-23 15:31:31 +02:00
Richard Levasseur
68f68fa423
Clarify that Set._from_iterable is not required to be a classmethod. (GH-23272)
2020-11-21 11:56:24 -08:00