summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'v3.11.0a2'Pablo Galindo2021-11-051-40/+59
|\ | | | | | | Python 3.11.0a2
| * Python 3.11.0a2v3.11.0a2Pablo Galindo2021-11-051-40/+59
| |
* | bpo-45679: add `tuple` tests with `lru_cache` to `test_functools` (GH-29339)Nikita Sobolev2021-11-051-0/+27
|/
* bpo-45243: Use connection limits to simplify `sqlite3` tests (GH-29356)Erlend Egeberg Aasland2021-11-053-21/+54
|
* bpo-45716: Improve the error message when using True/False/None as keywords ↵Pablo Galindo Salgado2021-11-051-2/+8
| | | | in a call (GH-29413)
* bpo-45678: Add more ``singledispatchmethod`` tests (GH-29412)Alex Waygood2021-11-051-0/+99
| | | | | | | In order to fix a bug in the 3.9 branch in #29394, more tests were added to ``test_functools.py`` to ensure that ``singledispatchmethod`` still correctly wrapped a target method, even if the target method had already been wrapped by multiple other decorators. This PR brings the new tests into the 3.11 and 3.10 branches as well.
* bpo-45292: [PEP 654] Update traceback display code to work with exception ↵Irit Katriel2021-11-052-14/+642
| | | | groups (GH-29207)
* bpo-27313: Fix ttk_guionly tests failing on Framework builds on macOS (GH-29411)Łukasz Langa2021-11-051-46/+20
|
* bpo-45160: Fix refleak in test_ttk_guionly introduced in GH-28291 (GH-29416)Łukasz Langa2021-11-051-1/+4
|
* bpo-45613: Set `sqlite3.threadsafety` dynamically (GH-29227)Erlend Egeberg Aasland2021-11-032-4/+3
| | | | | | | | | Use the compile-time selected default SQLite threaded mode to set the DB-API 2.0 attribute 'threadsafety' Mappings: - SQLITE_THREADSAFE=0 => threadsafety=0 - SQLITE_THREADSAFE=1 => threadsafety=3 - SQLITE_THREADSAFE=2 => threadsafety=1
* bpo-45506: Stop skipping test_embed. (gh-29300)Eric Snow2021-11-031-1/+3
| | | | | In gh-29063 I ended up disabling test_embed on non-Windows by accident. This gets it running again. https://bugs.python.org/issue45506
* bpo-45678: Add ``functools.singledispatchmethod`` tests (GH-29328)Alex Waygood2021-11-031-1/+41
|
* bpo-45578: add tests for `dis.distb` (GH-29332)Nikita Sobolev2021-11-031-0/+40
|
* bpo-24139: Fix test_sqlite3 `test_extended_error_code_on_exception()` on ↵Erlend Egeberg Aasland2021-11-031-1/+1
| | | | s390x RHEL buildbots (GH-29382)
* bpo-24139: Add support for SQLite extended result codes (GH-28076)Erlend Egeberg Aasland2021-11-021-2/+127
|
* bpo-45406: make inspect.getmodule() return None when getabsfile() raises ↵Irit Katriel2021-11-022-1/+10
| | | | FileNotFoundError (GH-28824)
* bpo-45243: Add support for setting/getting `sqlite3` connection limits ↵Erlend Egeberg Aasland2021-11-011-0/+38
| | | | (GH-28463)
* bpo-45668: Fix PGO tests without test extensions (GH-29315)Christian Heimes2021-11-0112-28/+59
|
* bpo-10572: Fixup Lib/test/libregrtest/pgo.py (GH-29327)Erlend Egeberg Aasland2021-11-011-1/+1
|
* bpo-45679: Fix caching of multi-value typing.Literal (GH-29334)Serhiy Storchaka2021-10-312-6/+9
| | | Literal[True, 2] is no longer equal to Literal[1, 2].
* bpo-10572: Move `sqlite3` tests to `Lib/test` (GH-29304)Erlend Egeberg Aasland2021-10-2913-20/+23
| | | Automerge-Triggered-By: GH:brettcannon
* bpo-45628: Check all parts of the suffix for an extension match. (GH-29310)Vinay Sajip2021-10-291-2/+7
|
* bpo-45621: Small changes to mmap (GH-29247)Tim Golden2021-10-291-8/+16
| | | | * Small tidy-ups / comments * Use randomized names when testing tagged mmaps to avoid any risk of parallel tests treading on each others' toes
* bpo-45395: Make custom frozen modules additions instead of replacements. ↵Eric Snow2021-10-281-24/+26
| | | | | | | | | (gh-28778) Currently custom modules (the array set on PyImport_FrozenModules) replace all the frozen stdlib modules. That can be problematic and is unlikely to be what the user wants. This change treats the custom frozen modules as additions instead. They take precedence over all other frozen modules except for those needed to bootstrap the import system. If the "code" field of an entry in the custom array is NULL then that frozen module is treated as disabled, which allows a custom entry to disable a frozen stdlib module. This change allows us to get rid of is_essential_frozen_module() and simplifies the logic for which frozen modules should be ignored. https://bugs.python.org/issue45395
* bpo-45577: test all pickle protocols in `test_zoneinfo` (GH-29167)Nikita Sobolev2021-10-281-44/+53
|
* bpo-45624: make test_graphlib not depend on the iteration order of sets ↵Carl Friedrich Bolz-Tereick2021-10-281-4/+13
| | | | | | | | (GH-29233) the current test depended on integer sets being iterated on in a certain fixed order. That order is different on PyPy (insertion based) and could change in CPython in the future in theory. Make the test robust against a different iteration order by sorting.
* bpo-45612: Add sqlite3 module docstring (GH-29224)Erlend Egeberg Aasland2021-10-281-0/+34
|
* bpo-45629: Add a test for the "freeze" tool. (gh-29222)Eric Snow2021-10-282-0/+40
| | | | | | | The "freeze" tool has been part of the repo for a long time. However, it hasn't had any tests in the test suite to guard against regressions. We add such a test here. This is especially important as there has been a lot of change recently related to frozen modules, with more to come. Note that as part of the test we build Python out-of-tree and install it in a temp dir. https://bugs.python.org/issue45629
* bpo-30570: Fix segfault on buildbots caused by stack overflow from recursion ↵Dennis Sweeney2021-10-282-12/+18
| | | | | | | in tests (GH-29258) * Don't stackoveflow on debug builds * Also catch the pickletester case
* bpo-44904: Fix classmethod property bug in doctest module (GH-28838)Alex Waygood2021-10-282-4/+17
| | | | | | | | The doctest module raised an error if a docstring contained an example that attempted to access a classmethod property. (Stacking '@classmethod' on top of `@property` has been supported since Python 3.9; see https://docs.python.org/3/howto/descriptor.html#class-methods.) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-45438: format of inspect.Signature with generic builtins (#29212)Martin Rueckl2021-10-272-0/+13
| | | | | | | Use types.GenericAlias in inspect.formatannotation to correctly add type arguments of builtin types to the string representation of Signatures. Co-authored-by: Martin Rückl <martin.rueckl@codecentric.de>
* bpo-44511: Improve the bytecode for class and mapping patterns (GH-26922)Brandt Bucher2021-10-272-3/+5
| | | | | | | * Refactor mapping patterns and speed up class patterns. * Simplify MATCH_KEYS and MATCH_CLASS. * Add COPY opcode.
* bpo-40915: Fix mmap resize bugs on Windows (GH-29213)Tim Golden2021-10-261-1/+75
| | | | | | | | | | | (original patch by eryksun) Correctly hand various failure modes when resizing an mmap on Windows: * Resizing a pagefile-backed mmap now creates a new mmap and copies data * Attempting to resize when another mapping is held on the same file raises an OSError * Attempting to resize a nametagged mmap raises an OSError if another mapping is held with the same nametag
* bpo-45020: Add tests for the -X "frozen_modules" option. (gh-28997)Eric Snow2021-10-252-0/+39
| | | | | We hadn't explicitly added any tests for this, so here they are. https://bugs.python.org/issue45020
* bpo-45566: `test_frozen_pickle` checks all `pickle` protocols (GH-29150)Nikita Sobolev2021-10-241-4/+17
| | | | | Refs https://github.com/python/cpython/pull/29147 Automerge-Triggered-By: GH:ericvsmith
* bpo-45506: Normalize _PyPathConfig.stdlib_dir when calculated. (#29040)Eric Snow2021-10-222-18/+74
| | | | | The recently added PyConfig.stdlib_dir was being set with ".." entries. When __file__ was added for from modules this caused a problem on out-of-tree builds. This PR fixes that by normalizing "stdlib_dir" when it is calculated in getpath.c. https://bugs.python.org/issue45506
* bpo-45292: [PEP 654] add the ExceptionGroup and BaseExceptionGroup classes ↵Irit Katriel2021-10-226-3/+820
| | | | (GH-28569)
* bpo-30570: Use Py_EnterRecursiveCall() in issubclass() (GH-29048)Dennis Sweeney2021-10-221-0/+30
| | | | | * Use Py_EnterRecursiveCall() in issubclass() Reviewed-by: Gregory P. Smith <greg@krypto.org> [Google]
* bpo-45502: Fix test_shelve (GH-29003)Serhiy Storchaka2021-10-221-58/+46
| | | | Run test_shelve with all underlying dbm implementations and pickle protocols. Also make test_shelve discoverable.
* bpo-43795: Add a test for Stable ABI symbol availability using ctypes (GH-26354)Petr Viktorin2021-10-221-0/+843
| | | | | | | | | This is a cross-platform check that the symbols are actually exported in the ABI, not e.g. hidden in a macro. Caveat: PyModule_Create2 & PyModule_FromDefAndSpec2 are skipped. These aren't exported on some of our buildbots. This is a bug (bpo-44133). This test now makes sure all the others don't regress.
* bpo-43592: Raise RLIMIT_NOFILE in test.libregrtest (GH-29127)Gregory P. Smith2021-10-221-0/+24
| | | | | | | Raise RLIMIT_NOFILE in test.libregrtest. On macOS the default is often too low for our testsuite to succeed. Co-authored by reviewer: Victor Stinner
* bpo-44019: Add test_all_exported_names for operator module (GH-29124)Dong-hee Na2021-10-211-0/+12
|
* bpo-44547: Make Fractions objects instances of typing.SupportsInt (GH-27851)Mark Dickinson2021-10-212-1/+50
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45557: Fix underscore_numbers in pprint.pprint(). (GH-29129)Eric V. Smith2021-10-211-1/+2
|
* bpo-45160: Ttk optionmenu only set variable once (GH-28291)E-Paine2021-10-212-1/+17
|
* Move several typing tests to a proper class, refs GH-28563 (GH-29126)Nikita Sobolev2021-10-211-16/+16
|
* bpo-45522: Allow to disable freelists on build time (GH-29056)Christian Heimes2021-10-211-1/+12
| | | | | | | | Freelists for object structs can now be disabled. A new ``configure`` option ``--without-freelists`` can be used to disable all freelists except empty tuple singleton. Internal Py*_MAXFREELIST macros can now be defined as 0 without causing compiler warnings and segfaults. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-44019: Add operator.call() to __all__ for the operator module (GH-29110)Kreus Amredes2021-10-211-1/+1
|
* bpo-45315: PyType_FromSpec: Copy spec->name and have the type own the memory ↵Petr Viktorin2021-10-211-1/+1
| | | | for its name (GH-29103)
* bpo-35673: Add a public alias for namespace package __loader__ attribute ↵Barry Warsaw2021-10-205-6/+20
| | | | | | | | (#29049) Rename namespace package __loader__ class to be public. Make the old name, i.e. _NamespaceLoader, an alias for the public name, for backward compatibility.