Nikita Sobolev
82bce54614
bpo-46544: Do not leak x and uspace in textwrap.TextWrapper (GH-30955)
2022-01-27 13:55:58 +02:00
Kinshuk Dua
08c0ed2d9c
bpo-23556: [doc] Fix inaccuracy in documentation for raise without args. Improve tests for context in nested except handlers. (GH-29236)
2022-01-27 10:24:48 +00:00
Christian Heimes
606e496dd6
bpo-40280: Use presence of msvcrt module to detect Windows (GH-30930)
2022-01-27 01:57:43 -08:00
Gregory P. Smith
b50322d203
bpo-45162: Revert "Remove many old deprecated unittest features" (GH-30935)
...
Revert "bpo-45162: Remove many old deprecated unittest features (GH-28268)"
This reverts commit b0a6ede3d0 .
We're deferring this change until 3.12 while upstream projects that use
the legacy assertion method names are fixed. See the issue for links
to the discussion. Many upstream projects now have issues and PRs
filed.
2022-01-26 20:39:15 -08:00
Terry Jan Reedy
9f0881476e
bpo-46496: news11-10 for bpo45296 (GH-30937)
2022-01-26 22:19:32 -05:00
Terry Jan Reedy
fcde0bc10d
bpo-45296: Clarify close, quit, and exit in IDLE (GH-30936)
...
In the File menu, 'Close' and 'Exit' are now 'Close Window' (the current
one) and 'Exit' is now 'Exit IDLE' (by closing all windows).
In Shell, 'quit()' and 'exit()' mean 'close Shell'.
If there are no other windows, this also exits IDLE.
2022-01-26 22:16:31 -05:00
Gregory Beauregard
ced50051bb
bpo-46539: Pass status of special typeforms to forward references (GH-30926)
...
Previously this didn't matter because there weren't any valid code paths
that could trigger a type check with a special form, but after the bug
fix for `Annotated` wrapping special forms it's now possible to annotate
something like `Annotated['ClassVar[int]', (3, 4)]`. This change would
also be needed for proposed future changes, such as allowing `ClassVar`
and `Final` to nest each other in dataclasses.
2022-01-26 19:11:51 -08:00
Brandt Bucher
8548366864
bpo-46528: Simplify the VM's stack manipulations (GH-30902)
2022-01-26 12:47:45 -08:00
Erlend Egeberg Aasland
3eb3b4f270
bpo-43853: Expand test suite for SQLite UDF's (GH-27642)
2022-01-26 08:26:16 -08:00
Jelle Zijlstra
ac0c6e128c
bpo-46527: allow calling enumerate(iterable=...) again (GH-30904)
2022-01-27 00:46:48 +09:00
Nikita Sobolev
d0c690b5f8
bpo-46529: increase coverage of typing.Union.__repr__ method (GH-30911)
2022-01-26 18:13:02 +08:00
Nikita Sobolev
84f093918a
bpo-45578: add a test case for dis.findlabels (GH-30058)
2022-01-26 19:05:35 +09:00
Irit Katriel
072f4a473e
bpo-46431: use raw string for regex in test (GH-30901)
2022-01-25 23:52:43 +00:00
Pablo Galindo Salgado
a27505345e
Add skips to crashing tests under sanitizers instead of manually skipping them (GH-30897)
2022-01-25 23:14:03 +00:00
Pablo Galindo Salgado
a0efc0c196
bpo-46091: Correctly calculate indentation levels for whitespace lines with continuation characters (GH-30130)
2022-01-25 22:12:14 +00:00
Pablo Galindo Salgado
b1cb843050
Refactor sanitiser skip tests into test.support (GH-30889)
...
* Refactor sanitizer skip tests into test.support
* fixup! Refactor sanitizer skip tests into test.support
* fixup! fixup! Refactor sanitizer skip tests into test.support
2022-01-25 22:01:10 +00:00
Victor Stinner
cef0a5458f
bpo-45382: test.pythoninfo: set wmic.exe encoding to OEM (GH-30890)
2022-01-25 20:02:23 +01:00
Irit Katriel
ec7c17ea23
bpo-46510: Add missing test for types.TracebackType/FrameType. Calculate them directly from the caught exception. (GH-30880)
2022-01-25 18:00:57 +00:00
Irit Katriel
d69d3d8b2f
bpo-46510: simplify exception handling code in xmlrpc (GH-30878)
2022-01-25 17:58:13 +00:00
Kumar Aditya
45f5f52601
bpo-46510: update Python2-style exception handling in argparse (GH-30881)
2022-01-25 15:34:03 +00:00
Raymond Hettinger
ee60550e9b
Move doctests to the main docs. Eliminate duplication. Improve coverage. (GH-30869)
2022-01-25 06:56:53 -06:00
Terry Jan Reedy
b1a3446f07
bpo-46496: Update IDLE News to 2021 Jan 24 (GH-30875)
2022-01-25 03:27:09 -05:00
Christian Heimes
8464fbc42e
bpo-40280: Skip subprocess-based tests on wasm32-emscripten (GH-30615)
2022-01-25 08:09:06 +01:00
Gregory Beauregard
e1abffca45
bpo-46491: Allow Annotated on outside of Final/ClassVar (GH-30864)
...
We treat Annotated type arg as class-level annotation. This exempts it from checks against Final and ClassVar in order to allow using them in any nesting order.
Automerge-Triggered-By: GH:gvanrossum
2022-01-24 22:37:15 -08:00
Terry Jan Reedy
9d3c9788a6
bpo-41841: update idlelib News up to 3.10.0. (GH-30868)
2022-01-24 23:48:40 -05:00
Eric V. Smith
0daf72194b
bpo-46503: Prevent an assert from firing when parsing some invalid \N sequences in f-strings. (GH-30865)
...
* bpo-46503: Prevent an assert from firing. Also fix one nearby tiny PEP-7 nit.
* Added blurb.
2022-01-24 21:53:27 -05:00
Irit Katriel
573b545157
bpo-46431: improve error message on invalid calls to BaseExceptionGroup.__new__ (GH-30854)
2022-01-24 21:47:40 +00:00
Kumar Aditya
1c705fda8f
fixed flaky test (GH-30845)
2022-01-24 21:04:47 +00:00
Nikita Sobolev
c144d93631
bpo-46470: remove unused branch from typing._remove_dups_flatten (GH-30780)
...
The branch was a remnant of old 3.6 typing.Union implementation.
2022-01-24 23:42:54 +08:00
Mario Corchero
d7c6863979
bpo-41906: Accept built filters in dictConfig (GH-30756)
...
When configuring the logging stack, accept already built filters (or
just callables) in the filters array of loggers and handlers.
This facilitates passing quick callables as filters.
Automerge-Triggered-By: GH:vsajip
2022-01-24 04:39:50 -08:00
Nikita Sobolev
58f3d98098
bpo-46422: use dis.Positions in dis.Instruction (GH-30716)
...
Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
2022-01-24 14:09:20 +03:00
Mark Shannon
0367a36fdc
bpo-43683: Streamline YIELD_VALUE and SEND (GH-30723)
...
* Split YIELD_VALUE into ASYNC_GEN_WRAP; YIELD_VALUE for async generators.
* Split SEND into SEND; YIELD_VALUE.
* Document new opcodes.
2022-01-24 11:08:53 +00:00
Raymond Hettinger
270a09184d
Improve grouper() recipe to demonstrate all forms of zip() (GH-30837)
2022-01-23 14:31:10 -06:00
Irit Katriel
f7955a82e3
bpo-41403: Improve error message for invalid mock target (GH-30833)
2022-01-23 18:42:41 +00:00
Weipeng Hong
691506f4e9
bpo-46103: Fix inspect.getmembers to only get __bases__ from class (GH-30147)
2022-01-23 09:40:38 -08:00
Dong-hee Na
76dc047a0e
bpo-46481: Implement vectorcall for weakref.ref.__call__ method. (GH-30820)
2022-01-24 00:39:45 +09:00
Nikita Sobolev
1f715d5bd3
bpo-46483: change PurePath.__class_getitem__ to return GenericAlias (GH-30822)
2022-01-23 17:48:43 +03:00
Jason R. Coombs
51c3e28c8a
bpo-46474: Avoid REDoS in EntryPoint.pattern (sync with importlib_metadata 4.10.1) (GH-30803)
2022-01-22 23:00:23 -05:00
Victor Stinner
b0898f4aa9
bpo-45382: test.pythoninfo logs more Windows versions (GH-30817)
...
Add the following info to test.pythoninfo:
* windows.ver: output of the shell "ver" command
* windows.version and windows.version_caption: output of the
"wmic os get Caption,Version /value" command.
2022-01-23 04:03:43 +01:00
Raymond Hettinger
7ad52d174a
This localization technique is no longer cost effective. (GH-30818)
2022-01-22 20:52:55 -06:00
Jason R. Coombs
443dec6c9a
bpo-46474: Apply changes from importlib_metadata 4.10.0 (GH-30802)
2022-01-22 21:39:00 -05:00
Jason R. Coombs
d888ff5381
bpo-46425: Partially revert "bpo-46425: fix direct invocation of test_importlib (GH-30682)" (GH-30799)
...
This reverts commit 57316c52ba for files pertaining to importlib.metadata and importlib.resources.
2022-01-22 21:38:26 -05:00
Ethan Furman
353e3b2820
bpo-46477: [Enum] ensure Flag subclasses have correct bitwise methods (GH-30816)
2022-01-22 18:27:52 -08:00
Raymond Hettinger
bcacab47bf
Minor code rearrangement to group related methods together. (GH-30813)
...
* Make example more focused with math.prod()
* Move comparison tests to the multiset operations section
2022-01-22 18:47:22 -06:00
Victor Stinner
12f4ac3bc8
bpo-46417: Clear symtable identifiers at exit (GH-30809)
...
Add _PySymtable_Fini() function, called by finalize_interp_clear().
Update test_cmd_line.test_showrefcount() to tolerate negative
reference count.
2022-01-23 00:06:56 +01:00
Nikita Sobolev
1ded8ed8e8
bpo-41682: Skip unstable test_asyncio sendfile test on Windows (GH-30801)
2022-01-22 23:52:26 +01:00
Victor Stinner
f1bcdeaca6
bpo-46417: Factorize _PyExc_InitTypes() code (GH-30804)
...
Add 'static_exceptions' list to factorize code between
_PyExc_InitTypes() and _PyBuiltins_AddExceptions().
_PyExc_InitTypes() does nothing if it's not the main interpreter.
Sort exceptions in Lib/test/exception_hierarchy.txt.
2022-01-22 21:48:56 +01:00
Jason R. Coombs
a941e5927f
bpo-46126: Disable 'descriptions' when running tests internally. (GH-30194)
2022-01-22 10:49:38 -08:00
Nikita Sobolev
1f8014c5b4
bpo-46425: fix direct invocation of test_fileutils and test_zoneinfo (GH-30792)
2022-01-22 18:05:43 +02:00
Nikita Sobolev
57316c52ba
bpo-46425: fix direct invocation of test_importlib (GH-30682)
2022-01-22 18:05:05 +02:00