Jason R. Coombs
e712a5b277
bpo-46118: Move importlib.resources to its own package. ( #30176 )
...
* bpo-46118: Move importlib.resources to its own package.
* Expand compatibility shims with documentation and explicit imports.
2021-12-30 21:00:48 -05:00
Hugo van Kemenade
2cf7d02b99
bpo-46178: Remove/rename redundant Travis CI code ( #30309 )
2021-12-30 16:16:27 -08:00
andrei kulakov
8d7644fa64
bpo-45853: Fix misspelling and unused import in pathlib (GH-30292)
2021-12-30 09:45:06 +02:00
Nikita Sobolev
d12bec6993
bpo-43424: Deprecate `webbrowser.MacOSXOSAScript._name` attribute (GH-30241)
2021-12-30 10:30:13 +09:00
Xinhang Xu
3581c7abbe
bpo-46055: Speed up binary shifting operators (GH-30044)
...
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
2021-12-27 18:36:55 +00:00
E-Paine
2e3e0d23ad
bpo-45496: Allow flexibility in winfo_rgb tests (GH-30185)
2021-12-26 13:28:24 +02:00
Serhiy Storchaka
ad4857884b
bpo-43413: Revert changes in set.__init__ (GH-28403)
...
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2021-12-26 13:27:01 +02:00
Serhiy Storchaka
1944434b44
bpo-22815: Print unexpected successes in summary in TextTestResult (GH-30138)
2021-12-26 13:22:44 +02:00
Kumar Aditya
a23ab7b6d8
bpo-23819: Fix asyncio tests on python optimized mode (GH-30195)
2021-12-26 13:13:14 +02:00
Serhiy Storchaka
078abb676c
bpo-46032: Check types in singledispatch's register() at declaration time (GH-30050)
...
The registry() method of functools.singledispatch() functions checks now
the first argument or the first parameter annotation and raises a TypeError if it is
not supported. Previously unsupported "types" were ignored (e.g. typing.List[int])
or caused an error at calling time (e.g. list[int]).
2021-12-25 14:16:14 +02:00
Nikita Sobolev
b8de8b7039
bpo-46150: ensure `fakeuser` does not exist in `PosixPathTest.test_expanduser` (GH-30240)
...
Ensure `fakeuser` does not exist in `PosixPathTest.test_expanduser`
2021-12-24 00:07:50 -08:00
Gregory P. Smith
d8880677a7
Allow test_pathlib to pass on systems where fakeuser exists. (GH-30244)
2021-12-23 19:17:40 -08:00
Irit Katriel
c66fc0fb53
bpo-46107: ExceptionGroup.subgroup()/split() should copy __note__ to the parts (GH-30159)
2021-12-21 10:12:26 +00:00
Pablo Galindo Salgado
e9898bf153
bpo-46110: Add a recursion check to avoid stack overflow in the PEG parser (GH-30177)
...
Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
2021-12-20 15:43:26 +00:00
Serhiy Storchaka
6ca78affc8
bpo-23819: Get rid of assert statements in test_asyncio (GH-30212)
...
To keep checks even if run tests with optimized Python.
Either use special assertion methods like assertEqual() or
raise an AssertionError explicitly.
2021-12-20 12:23:05 +02:00
Andrew Svetlov
9c06fd8951
bpo-46129: Rewrite asyncio.locks tests with IsolatedAsyncioTestCase (GH-30198)
...
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2021-12-19 16:35:56 +02:00
Kumar Aditya
da4b214304
bpo-42413: Replace `concurrent.futures.TimeoutError` and `asyncio.TimeoutError` with builtin `TimeoutError` (GH-30197)
...
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2021-12-19 13:22:40 +02:00
Jason R. Coombs
9b52920173
bpo-46125: Refactor tests to test traversable API directly. Includes changes from importlib_resources 5.4.0. (GH-30189)
2021-12-18 21:28:49 -05:00
andrei kulakov
ae36cd1e79
bpo-37578: glob.glob -- added include_hidden parameter (GH-30153)
...
Automerge-Triggered-By: GH:asvetlov
2021-12-18 06:23:34 -08:00
Jakub Kulík
427a490c49
bpo-46099: Fix pthread_getcpuclockid test on Solaris (GH-30140)
...
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2021-12-18 15:26:24 +02:00
Christian Heimes
2985feac4e
bpo-46114: Fix OpenSSL version check for 3.0.1 (GH-30170)
2021-12-17 16:17:32 +01:00
Mark Shannon
efd6236d36
bpo-46072: Add top level stats struct (GH-30169)
2021-12-17 14:48:01 +00:00
Irit Katriel
396b58345f
bpo-45711: Remove type and traceback from exc_info (GH-30122)
...
* Do not PUSH/POP traceback or type to the stack as part of exc_info
* Remove exc_traceback and exc_type from _PyErr_StackItem
* Add to what's new, because this change breaks things like Cython
2021-12-17 14:46:22 +00:00
Serhiy Storchaka
95a922b3bb
bpo-46111: Fix unittest tests in optimized mode (GH-30163)
2021-12-17 11:10:55 +02:00
Yilei "Dolee" Yang
69ef1b5998
Fix a typo in the message from make_ssl_certs. (GH-30152)
...
The file is utils.py not util.py.
Automerge-Triggered-By: GH:gpshead
2021-12-16 21:08:18 -08:00
Jason R. Coombs
04deaee4c8
bpo-44893: Implement EntryPoint as simple class with attributes. (GH-30150)
...
* bpo-44893: Implement EntryPoint as simple class and deprecate tuple access in favor of attribute access. Syncs with importlib_metadata 4.8.1.
* Apply refactorings found in importlib_metadata 4.8.2.
2021-12-16 15:49:42 -05:00
Jason R. Coombs
109d966021
bpo-46105: Honor spec when generating requirement specs with urls and extras. (GH-30151)
2021-12-16 15:48:35 -05:00
Irit Katriel
30322c497e
bpo-22047: [argparse] deprecate nested argument groups and mutually exclusive groups (GH-30098)
2021-12-16 15:31:08 +00:00
Ken Jin
d6e1374716
bpo-45755: [typing] Reveal class attributes of generic in generic aliases in `dir()` (GH-29962)
2021-12-16 22:29:59 +08:00
AN Long
f62420c3d3
Remove spaces in empty lines (GH-30121)
2021-12-16 01:35:21 +09:00
Mark Shannon
3a60bfef49
bpo-44525: Specialize for calls to type and other builtin classes with 1 argument. (GH-29942)
2021-12-15 15:03:42 +00:00
Mark Shannon
0b50a4f0cd
bpo-46039: Split yield from in two (GH-30035)
...
* Split YIELD_FROM opcode into SEND and JUMP_ABSOLUTE.
* Remove YIELD_FROM opcode.
2021-12-15 10:30:09 +00:00
Irit Katriel
86de99588d
bpo-26952: [argparse] clearer error when formatting an empty mutually… (GH-30099)
2021-12-15 10:08:26 +00:00
Mark Shannon
9f8f45144b
bpo-44525: Split calls into PRECALL and CALL (GH-30011)
...
* Add 3 new opcodes for calls: PRECALL_METHOD, CALL_NO_KW, CALL_KW.
* Update specialization to handle new CALL opcodes.
* Specialize call to method descriptors.
* Remove old CALL opcodes: CALL_FUNCTION, CALL_METHOD, CALL_METHOD_KW, CALL_FUNCTION_KW.
2021-12-14 18:22:44 +00:00
Irit Katriel
d60457a667
bpo-45292: [PEP-654] add except* (GH-29581)
2021-12-14 16:48:15 +00:00
Vinay Sajip
850aefc2c6
bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103)
2021-12-14 16:46:07 +00:00
Vinay Sajip
cb589d1b6b
bpo-46063: Improve algorithm for computing which rolled-over log file… (GH-30093)
2021-12-14 00:53:37 +00:00
AN Long
b56774bd93
bpo-16594: Add allow_reuse_port on socketserver (GH-30072)
...
* bpo-16594: Add allow_reuse_port on socketserver
* 📜 🤖 Added by blurb_it.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2021-12-13 14:14:17 +02:00
Serhiy Storchaka
e08c0d8eec
bpo-27718: Fix help for the signal module (GH-30063)
...
Functions signal(), getsignal(), pthread_sigmask(), sigpending(),
sigwait() and valid_signals() were omitted.
If __all__ is not defined all non-builtin functions should have
correct __module__.
2021-12-13 11:21:55 +02:00
Pablo Galindo Salgado
c6d1c52c16
bpo-46054: Correct non-utf8 character tests in test_exceptions (GH-30074)
2021-12-12 16:53:00 +00:00
Jim Crist-Harif
f3c16a5e72
Re-add `reuse_address` parameter to `create_server` (GH-29733)
...
This parameter was accidentally removed when fixing
https://bugs.python.org/issue45129 , this reverts the unnecessary changes
there.
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2021-12-12 11:47:01 +02:00
Christian Sattler
e6fe10d340
bpo-45874: Handle empty query string correctly in urllib.parse.parse_qsl ( #29716 )
2021-12-12 10:41:12 +02:00
Pablo Galindo Salgado
4325a766f5
bpo-46054: Fix parsing error when parsing non-utf8 characters in source files (GH-30068)
2021-12-12 07:06:50 +00:00
Pablo Galindo Salgado
59435eea08
bpo-46042: Improve SyntaxError locations in the symbol table (GH-30059)
2021-12-11 21:28:24 +00:00
Eric V. Smith
e029c53e1a
bpo-44674: Use unhashability as a proxy for mutability for default dataclass __init__ arguments. (GH-29867)
...
`@dataclass` in 3.10 prohibits using list, dict, or set as default values. It does this to avoid the mutable default problem. This test is both too strict, and not strict enough. Too strict, because some immutable subclasses should be safe, and not strict enough, because other mutable types should be prohibited. With this change applied, `@dataclass` now uses unhashability as a proxy for mutability: if objects aren't hashable, they're assumed to be mutable.
2021-12-11 16:12:17 -05:00
Steve Dower
bfc59ed0a0
bpo-46049: Fixes ._pth support on non-Windows (GH-30051)
2021-12-11 15:06:17 +00:00
Steve Dower
971ece8e17
bpo-46048: Fix parsing of single character lines in getpath readlines() (GH-30048)
2021-12-11 13:43:40 +00:00
Carl Friedrich Bolz-Tereick
b593bdc780
bpo-37971: fix the position of decorator application (GH-30027)
...
The line numbers of actually calling the decorator functions of
functions and classes was wrong (as opposed to loading them, were they
have been correct previously too).
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-12-11 00:45:02 +01:00
Weipeng Hong
28179aac79
bpo-42918: Improve build-in function compile() in mode 'single' (GH-29934)
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2021-12-11 00:44:26 +01:00
Yurii Karabas
3cb357a2e6
bpo-46014: Add ability to use typing.Union with singledispatch (GH-30017)
2021-12-11 00:27:55 +01:00