summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* gh-100445: Improve error message for unterminated strings with escapes (#100446)Shantanu2023-10-181-2/+8
|
* gh-103737: IDLE - Remove unneeded .keys() for dict iteration (#110960)Terry Jan Reedy2023-10-188-26/+28
| | | | | Add comments where .keys() is needed. Leave debugger usages along because situation is unclear as indicated in expanded comment. Most testing is manual.
* gh-111019: Align expected and actual titles in test output (#111020)James2023-10-182-10/+10
| | | | Align expected and actual titles in output from assert_has_calls/assert_called_with for greater readability
* gh-108747: Add unit tests for site.{usercustomize,sitecustomize} hooks (#109470)Charles Machalow2023-10-181-0/+38
|
* gh-110938: More syntax tests for PEP695 funcs and classes (#110986)Nikita Sobolev2023-10-181-0/+15
|
* gh-110961: Fixed asyncio.wait docstring to remove deprecated coroutine ↵Bar Harel2023-10-181-2/+0
| | | | | reference (#111017) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-84570: Add Timeouts to SendChannel.send() and RecvChannel.recv() (gh-110567)Eric Snow2023-10-173-25/+128
|
* gh-84570: Send-Wait Fixes for _xxinterpchannels (gh-111006)Eric Snow2023-10-171-44/+173
| | | | | There were a few things I did in gh-110565 that need to be fixed. I also forgot to add tests in that PR. (Note that this PR exposes a refleak introduced by gh-110246. I'll take care of that separately.)
* gh-110995: Fix test_gdb check_usable_gdb() (#110998)Victor Stinner2023-10-171-6/+11
| | | | | | | Fix detection of gdb built without Python scripting support. * check_usable_gdb() doesn't check gdb exit code when calling run_gdb(). * Use shutil.which() to get the path to the gdb program.
* gh-85283: Add PySys_Audit() to the limited C API (#108571)Victor Stinner2023-10-171-0/+2
| | | | | | | | | | The PySys_Audit() function was added in Python 3.8 by the PEP 578 "Python Runtime Audit Hooks". Add also PySys_AuditTuple() to the limited C API, function added to Python 3.13. Move non-limited "PerfMap" C API from Include/sysmodule.h to Include/cpython/sysmodule.h.
* gh-110938: Fix error messages for indented blocks with functions and classes ↵Pablo Galindo Salgado2023-10-171-0/+10
| | | | with generic type parameters (#110973)
* gh-110695: test_asyncio uses 50 ms for clock resolution (#110952)Victor Stinner2023-10-171-2/+2
| | | | Before utils.CLOCK_RES constant was added (20 ms), test_asyncio already used 50 ms.
* gh-85283: Add PyMem_RawMalloc() to the limited C API (#108570)Victor Stinner2023-10-171-0/+4
| | | | | | | | | Add PyMem_RawMalloc(), PyMem_RawCalloc(), PyMem_RawRealloc() and PyMem_RawFree() to the limited C API. These functions were added by Python 3.4 and are needed to port stdlib extensions to the limited C API, like grp and pwd. Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-110905: [Enum] minor fixes and cleanup (GH-110906)Pieter Eendebak2023-10-162-6/+4
|
* Enable ruff on several more files in `Lib/test` (#110929)Alex Waygood2023-10-166-21/+16
|
* gh-107450: Check for overflow in the tokenizer and fix overflow test (#110832)Lysandros Nikolaou2023-10-161-4/+12
| | | | Co-authored-by: Filipe Laíns <lains@riseup.net> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-110912: Correctly display tracebacks for MemoryError exceptions using the ↵Pablo Galindo Salgado2023-10-161-0/+11
| | | | traceback module (#110921)
* gh-110907: AC: Disallow using `*` with vararg (#110908)Nikita Sobolev2023-10-161-0/+14
|
* gh-110923: Fix silently skipped tests in test__opcode.py (#110926)Alex Waygood2023-10-162-2/+9
|
* gh-110864: Fix _PyArg_UnpackKeywordsWithVararg overwriting vararg with NULL ↵Nikita Sobolev2023-10-161-0/+35
| | | | (#110868)
* gh-108791: Fix `pdb` CLI invalid argument handling (#108816)Radislav Chugunov2023-10-162-2/+23
|
* regrtest: Prepend 'use' options in --{fast,slow}-ci (GH-110363)Zachary Ware2023-10-152-7/+11
| | | This allows individual resources to be disabled without having to explicitly re-enable all others.
* Lint: Include test_monitoring.py for Ruff (#110898)Hugo van Kemenade2023-10-151-2/+0
|
* gh-84583: Make pdb enter post-mortem mode even for SyntaxError (#110883)Tian Gao2023-10-152-7/+19
|
* gh-110722: Add PYTHON_PRESITE to import a module before site.py is run (#110769)Łukasz Langa2023-10-141-0/+18
|
* bpo-42663: Fix parsing TZ strings in zoneinfo module (GH-23825)Serhiy Storchaka2023-10-142-40/+171
| | | | | | | zipinfo now supports the full range of values in the TZ string determined by RFC 8536 and detects all invalid formats. Both Python and C implementations now raise exceptions of the same type on invalid data.
* remove redundant call to attach_loop in watcher (#110847)Thomas Grainger2023-10-141-2/+0
|
* gh-110715: Add missing import in zipfile (gh-110822)Kirill Podoprigora2023-10-142-7/+19
|
* gh-109747: Improve errors for unsupported look-behind patterns (GH-109859)Serhiy Storchaka2023-10-143-4/+36
| | | | | | Now re.error is raised instead of OverflowError or RuntimeError for too large width of look-behind pattern. The limit is increased to 2**32-1 (was 2**31-1).
* gh-107705: Fix file leak in test_tkinter in the C locale (GH-110507)Serhiy Storchaka2023-10-141-5/+10
|
* gh-88434: Emit deprecation warnings for non-integer numbers in gettext if ↵Serhiy Storchaka2023-10-142-12/+25
| | | | translation not found (GH-110574)
* gh-110628: Add tests for PyLong C API (GH-110629)Serhiy Storchaka2023-10-141-17/+376
|
* gh-110392: Fix tty functions (GH-110642)Serhiy Storchaka2023-10-142-2/+8
| | | | | | | | * tty.setraw() and tty.setcbreak() previously returned partially modified list of the original tty attributes. Now they return the correct list of the original tty attributes * tty.cfmakeraw() and tty.cfmakecbreak() now make a copy of the list of special characters before modifying it.
* gh-110815: Support non-ASCII keyword names in PyArg_ParseTupleAndKeywords() ↵Serhiy Storchaka2023-10-141-0/+51
| | | | | | | (GH-110816) It already mostly worked, except in the case when invalid keyword argument with non-ASCII name was passed to function with non-ASCII parameter names. Then it crashed in the debug mode.
* regrtest: --fast-ci/slow-ci no longer imply --rerun-fail (#110849)Victor Stinner2023-10-142-2/+0
|
* gh-110697: test_os TimerfdTests uses selectors (#110789)Victor Stinner2023-10-131-102/+67
| | | | | | | | | Replace select.epoll() with selectors.DefaultSelector to support FreeBSD 14 and newer. * Merge common code between test_timerfd_epoll() test_timerfd_ns_epoll(). * Replace "_ = func()" with "func()". * Add TimerfdTests.read_count_signaled() method.
* gh-110771: Decompose run_forever() into parts (#110773)Russell Keith-Magee2023-10-133-31/+94
| | | Effectively introduce an unstable, private (really: protected) API for subclasses that want to override `run_forever()`.
* gh-110815: Improve tests for PyArg_ParseTupleAndKeywords() (GH-110817)Serhiy Storchaka2023-10-131-5/+31
|
* Merge branch 'main' of https://github.com/python/cpythonThomas Wouters2023-10-134-3/+78
|\
| * gh-110805: Allow the repl to show source code and complete tracebacks (#110775)Pablo Galindo Salgado2023-10-134-3/+78
| |
* | Python 3.13.0a1v3.13.0a1Thomas Wouters2023-10-131-1248/+1902
|/
* gh-107450: Fix testMemoryErrorBigSource using the bigmemtest decorator ↵Lysandros Nikolaou2023-10-131-1/+1
| | | | (GH-110810)
* gh-110525: Delete `test_c_api` method from `set` object (#110688)Nikita Sobolev2023-10-132-5/+1
|
* gh-107450: Fix parser column offset overflow test on Windows (#110768)Lysandros Nikolaou2023-10-131-1/+3
| | | Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* GH-110796: fix intermittent test failure in test_current_exceptionsFilipe Laíns2023-10-131-6/+3
|
* GH-110786: suppress BrokenPipeError on the sysconfig CLI (#110791)Filipe Laíns2023-10-131-1/+4
|
* GH-103480: make sysconfig a package (GH-110785)Filipe Laíns2023-10-123-229/+248
|
* gh-110782: Fix crash when TypeVar is constructed with keyword args (#110784)Jelle Zijlstra2023-10-121-0/+6
|
* gh-109653: Improve the import time of `email.utils` (#109824)Alex Waygood2023-10-121-5/+7
|
* gh-110721: Use the traceback module for PyErr_Display() and fallback to the ↵Pablo Galindo Salgado2023-10-123-20/+64
| | | | C implementation (#110702)