Hugo van Kemenade
1fc41ae870
bpo-45173 Remove configparser deprecations (GH-28292)
...
In the configparser module, these have been deprecated since Python 3.2:
* the SafeConfigParser class,
* the filename property of the ParsingError class,
* the readfp method of the ConfigParser class,
2021-09-13 19:12:36 +02:00
Serhiy Storchaka
3e19409d64
bpo-45181: Simplify loading sqlite3 tests (GH-28304)
...
Use unittest discover instead of manually enumerating all
test modules and classes.
Also add support for filtering them by pattern.
2021-09-13 14:16:26 +03:00
Serhiy Storchaka
9260e67398
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 "()".
2021-09-13 14:10:16 +03:00
Serhiy Storchaka
851811f577
bpo-5846: Do not use obsolete unittest functions. (GH-28303)
...
Get rid of use of makeSuite() and findTestCases().
Also make test_math and test_threading_local discoverable.
2021-09-13 10:49:53 +03:00
Serhiy Storchaka
92bf8691fb
bpo-43413: Fix handling keyword arguments in subclasses of some buitin classes (GH-26456)
...
* Constructors of subclasses of some buitin classes (e.g. tuple, list,
frozenset) no longer accept arbitrary keyword arguments.
* Subclass of set can now define a __new__() method with additional
keyword parameters without overriding also __init__().
2021-09-12 13:27:50 +03:00
Serhiy Storchaka
97ea18eced
bpo-35474: Fix mimetypes.guess_all_extensions() potentially mutating list (GH-28286)
...
* Calling guess_all_extensions() with strict=False potentially
mutated types_map_inv.
* Mutating the result of guess_all_extensions() mutated types_map_inv.
2021-09-11 17:44:44 +03:00
giovanniwijaya
b74c819fab
IDLE: adjust Python version in doc url for 3.10+ (GH-28228)
...
Expression 'python_version()[:3]' truncated '3.10.0' to '3.1' instead of '3.10'.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-09-10 17:10:28 -04:00
Irit Katriel
f8d624d6a5
bpo-45144: use subTests in test_peepholer (GH-28247)
2021-09-10 18:29:21 +02:00
Serhiy Storchaka
f0f29f328d
bpo-25894: Always report skipped and failed subtests separately (GH-28082)
...
* In default mode output separate characters for skipped and failed subtests.
* In verbose mode output separate lines (including description) for skipped
and failed subtests.
* In verbose mode output test description for errors in test cleanup.
2021-09-10 17:55:05 +02:00
Henry-Joseph Audéoud
707137b863
bpo-40563: Support pathlike objects on dbm/shelve (GH-21849)
...
Co-authored-by: Hakan Çelik <hakancelik96@outlook.com>
2021-09-10 15:26:16 +03:00
Irit Katriel
04676b6946
bpo-45017: move opcode-related logic from modulefinder to dis (GH-28246)
2021-09-09 14:04:12 +01:00
Victor Stinner
49acac00c0
bpo-44860: Update test_sysconfig for posix_user platlib (GH-28235)
...
Update test_sysconfig.test_user_similar() for the posix_user scheme:
"platlib" doesn't use sys.platlibdir.
2021-09-09 11:02:48 +02:00
Raymond Hettinger
4a5cccb02b
bpo-20499: Rounding error in statistics.pvariance (GH-28230)
2021-09-08 22:00:12 -05:00
Erlend Egeberg Aasland
f235dd0784
bpo-38371: Remove deprecated tkinter split() method (GH-28237)
2021-09-08 23:02:19 +03:00
Hugo van Kemenade
59ea704df7
bpo-45129 Remove deprecated reuse_address (GH-28207)
...
Due to significant security concerns, the reuse_address parameter of
asyncio.loop.create_datagram_endpoint, deprecated in Python 3.9, is
now removed. This is because of the behavior of the socket option
SO_REUSEADDR in UDP.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-09-08 18:58:43 +02:00
andrei kulakov
a561005761
bpo-19113: Remove unused test_errors from ctypes tests (GH-28008)
...
This test was forever shadowed by another test method named `test_errors`.
2021-09-08 17:28:32 +02:00
Yurii Karabas
c11956a8bd
bpo-45121: Fix RecursionError when calling Protocol.__init__ from a subclass' __init__ (GH-28206)
2021-09-08 18:25:09 +08:00
Hugo van Kemenade
d003a5bd25
bpo-45132 Remove deprecated __getitem__ methods (GH-28225)
...
Remove deprecated __getitem__ methods of xml.dom.pulldom.DOMEventStream,
wsgiref.util.FileWrapper and fileinput.FileInput, deprecated since Python 3.9.
2021-09-08 13:07:40 +03:00
Raymond Hettinger
750368cbcd
Add more itertool recipes (GH-28165)
2021-09-07 12:29:00 -05:00
Victor Stinner
c4ea45d7d2
bpo-45118: Fix regrtest second summary for re-run tests (GH-28183)
...
Fix regrtest second summary when using -w/--verbose2 command line
option: lists re-run tests in the second test summary.
2021-09-07 18:21:00 +02:00
Nikita Sobolev
8ca6b61e3f
bpo-45034: Fix how upper limit is formatted for struct.pack("H", ...) (GH-28178)
...
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-09-07 13:18:46 +01:00
Pablo Galindo Salgado
97b754d4b4
Revert "bpo-45035: Make sysconfig posix_home depend on platlibdir (GH-28011)" (GH-28201)
...
This reverts commit 4f88161f07 .
2021-09-07 12:46:25 +01:00
Hugo van Kemenade
eb254b43d2
bpo-45124: Remove the bdist_msi command (GH-28195)
...
The bdist_msi command, deprecated in Python 3.9, is now removed.
Use bdist_wheel (wheel packages) instead.
2021-09-07 12:34:27 +02:00
Pablo Galindo Salgado
533e725821
bpo-44963: Implement send() and throw() methods for anext_awaitable objects (GH-27955)
...
Co-authored-by: Yury Selivanov <yury@edgedb.com>
2021-09-07 11:30:14 +01:00
Tzu-ping Chung
4f88161f07
bpo-45035: Make sysconfig posix_home depend on platlibdir (GH-28011)
2021-09-07 11:27:48 +01:00
Tzu-ping Chung
a5c6bcf244
Make sysconfig posix_user not depend on platlibdir (GH-27655)
2021-09-07 11:26:42 +02:00
Terry Jan Reedy
f05ad92028
Update idlelib/help.html to include idle.rst spelling fix (GH-28191)
...
The idle.rst fix was GH-27903 two weeks ago.
2021-09-07 00:04:54 -04:00
Nikita Sobolev
19871fce3b
bpo-45052: Unskips a failing test_shared_memory_basics test (GH-28182)
2021-09-06 17:55:34 +01:00
Irit Katriel
9e31b3952f
bpo-41031: Match C and Python code formatting of unprintable exceptions and exceptions in the __main__ module. (GH-28139)
2021-09-05 18:54:13 +03:00
Pablo Galindo Salgado
b01fd533fe
Extract visitors from the grammar nodes and call makers in the peg generator (GH-28172)
...
Simplify the peg generator logic by extracting as much visitors as possible to disentangle the flow and separate concerns.
2021-09-05 14:58:52 +01:00
Serhiy Storchaka
28264269de
bpo-45102: unittest: add tests for skipping and errors in cleanup (GH-28166)
2021-09-05 10:34:14 +03:00
Raymond Hettinger
91be41ad93
bpo-44571: Add itertool recipe for a variant of takewhile() (GH-28167)
2021-09-05 00:09:26 -05:00
Nikita Sobolev
dd7b816ac8
bpo-45042: Now test classes decorated with requires_hashdigest are not skipped (GH-28060)
...
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-09-04 23:42:36 +03:00
Serhiy Storchaka
936f6a16b9
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.
2021-09-04 21:02:21 +03:00
Serhiy Storchaka
c2970fdec5
bpo-45097: Add more tests for shutdown_asyncgens() (GH-28154)
2021-09-04 20:55:20 +03:00
Brandt Bucher
3beef86e22
Handle different string hash algorithms correctly ( #28147 )
2021-09-04 07:14:27 -07:00
Irit Katriel
0b58e863df
bpo-45075: distinguish between frame and FrameSummary in traceback mo… (GH-28112)
2021-09-03 22:39:23 +01:00
Dong-hee Na
bc1c49fa94
bpo-42255: Deprecate webbrowser.MacOSX from Python 3.11 (GH-27837)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-09-03 18:21:03 +02:00
Batuhan Taskaya
85ea2d6165
bpo-43950: support positions for dis.Instructions created through dis.Bytecode (GH-28142)
2021-09-03 18:29:09 +03:00
Irit Katriel
b4b6342848
bpo-45083: Include the exception class qualname when formatting an exception (GH-28119)
...
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-09-03 09:30:17 +02:00
Victor Stinner
a1e15a7a60
bpo-45082: Cleanup ctypes.c_buffer alias (GH-28129)
...
* Remove commented deprecation of ctypes.c_buffer.
* Remove references to ctypes.c_string which doesn't exist.
* Remove StringTestCase: it only had skipped test methods.
2021-09-02 19:02:03 +02:00
Yurii Karabas
0635e201be
bpo-45081: Fix __init__ method generation when inheriting from Protocol (GH-28121)
...
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-09-02 18:17:13 +02:00
Ruben Vorderman
ea23e7820f
bpo-43613: Faster implementation of gzip.compress and gzip.decompress (GH-27941)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-09-02 17:02:59 +02:00
Inada Naoki
55c4a92fc1
bpo-45056: Remove trailing unused constants from co_consts (GH-28109)
2021-09-02 13:02:06 +02:00
Victor Stinner
19ba2122ac
bpo-37330: open() no longer accept 'U' in file mode (GH-28118)
...
open(), io.open(), codecs.open() and fileinput.FileInput no longer
accept "U" ("universal newline") in the file mode. This flag was
deprecated since Python 3.3.
2021-09-02 12:58:00 +02:00
Victor Stinner
a806608705
bpo-45085: Remove the binhex module (GH-28117)
...
The binhex module, deprecated in Python 3.9, is now removed. The
following binascii functions, deprecated in Python 3.9, are now also
removed:
* a2b_hqx(), b2a_hqx();
* rlecode_hqx(), rledecode_hqx().
The binascii.crc_hqx() function remains available.
2021-09-02 12:10:08 +02:00
Victor Stinner
d589a7e7eb
bpo-40360: Deprecate the lib2to3 package (GH-28116)
2021-09-02 11:46:47 +02:00
Victor Stinner
679cb4781e
bpo-44895: libregrtest: refleak check clears types later (GH-28113)
...
libregrtest now clears the type cache later to reduce the risk of
false alarm when checking for reference leaks. Previously, the type
cache was cleared too early and libregrtest raised a false alarm
about reference leaks under very specific conditions.
Move also support.gc_collect() outside clear/cleanup functions to
make the garbage collection more explicit.
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2021-09-01 17:45:27 +02:00
Irit Katriel
863154c929
bpo-31299: make it possible to filter out frames from tracebacks (GH-28067)
2021-08-31 21:42:08 +01:00
Terry Jan Reedy
22fe0eb13c
bpo-45059: Add module cleanup to IDLE test_macosx (GH-28102)
2021-08-31 14:59:35 -04:00