Charles Machalow
738574fb21
gh-108747: Add unit tests for site.{usercustomize,sitecustomize} hooks ( #109470 )
2023-10-17 22:05:41 -07:00
Nikita Sobolev
220bcc9e27
gh-110938: More syntax tests for PEP695 funcs and classes ( #110986 )
2023-10-17 22:00:04 -07:00
Eric Snow
c58c63fdf6
gh-84570: Add Timeouts to SendChannel.send() and RecvChannel.recv() (gh-110567)
2023-10-17 23:05:49 +00:00
Eric Snow
a53d7cb672
gh-84570: Send-Wait Fixes for _xxinterpchannels (gh-111006)
...
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.)
2023-10-17 16:32:00 -06:00
Victor Stinner
920b3dfaca
gh-110995: Fix test_gdb check_usable_gdb() ( #110998 )
...
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.
2023-10-17 20:19:14 +02:00
Victor Stinner
232465204e
gh-85283: Add PySys_Audit() to the limited C API ( #108571 )
...
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.
2023-10-17 16:02:23 +02:00
Pablo Galindo Salgado
24e4ec7766
gh-110938: Fix error messages for indented blocks with functions and classes with generic type parameters ( #110973 )
2023-10-17 13:45:13 +01:00
Victor Stinner
9a9fba825f
gh-110695: test_asyncio uses 50 ms for clock resolution ( #110952 )
...
Before utils.CLOCK_RES constant was added (20 ms), test_asyncio
already used 50 ms.
2023-10-17 11:34:04 +02:00
Victor Stinner
cc71cc9256
gh-85283: Add PyMem_RawMalloc() to the limited C API ( #108570 )
...
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>
2023-10-17 02:41:51 +02:00
Pieter Eendebak
a77180e663
gh-110905: [Enum] minor fixes and cleanup (GH-110906)
2023-10-16 13:37:54 -07:00
Alex Waygood
02d26c4bef
Enable ruff on several more files in `Lib/test` ( #110929 )
2023-10-16 15:57:01 +01:00
Lysandros Nikolaou
a1ac5590e0
gh-107450: Check for overflow in the tokenizer and fix overflow test ( #110832 )
...
Co-authored-by: Filipe Laíns <lains@riseup.net>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2023-10-16 16:42:49 +02:00
Pablo Galindo Salgado
b3c9faf056
gh-110912: Correctly display tracebacks for MemoryError exceptions using the traceback module ( #110921 )
2023-10-16 15:39:23 +01:00
Nikita Sobolev
bad7a35055
gh-110907: AC: Disallow using `*` with vararg ( #110908 )
2023-10-16 15:26:11 +01:00
Alex Waygood
14d2d1576d
gh-110923: Fix silently skipped tests in test__opcode.py ( #110926 )
2023-10-16 13:30:35 +00:00
Nikita Sobolev
c2192a2bee
gh-110864: Fix _PyArg_UnpackKeywordsWithVararg overwriting vararg with NULL ( #110868 )
2023-10-16 13:42:44 +02:00
Radislav Chugunov
162213f2db
gh-108791: Fix `pdb` CLI invalid argument handling ( #108816 )
2023-10-16 10:38:07 +01:00
Zachary Ware
b75186f69e
regrtest: Prepend 'use' options in --{fast,slow}-ci (GH-110363)
...
This allows individual resources to be disabled without having to explicitly re-enable all others.
2023-10-15 20:34:28 +02:00
Hugo van Kemenade
9608704cde
Lint: Include test_monitoring.py for Ruff ( #110898 )
2023-10-15 17:48:00 +01:00
Tian Gao
fa18b0afe4
gh-84583: Make pdb enter post-mortem mode even for SyntaxError ( #110883 )
2023-10-15 11:55:00 +01:00
Łukasz Langa
84b7e9e3fa
gh-110722: Add PYTHON_PRESITE to import a module before site.py is run ( #110769 )
2023-10-14 23:32:57 +02:00
Serhiy Storchaka
ab08ff7882
bpo-42663: Fix parsing TZ strings in zoneinfo module (GH-23825)
...
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.
2023-10-14 23:24:33 +03:00
Kirill Podoprigora
4110cfec12
gh-110715: Add missing import in zipfile (gh-110822)
2023-10-14 16:17:47 +09:00
Serhiy Storchaka
e2b3d831fd
gh-109747: Improve errors for unsupported look-behind patterns (GH-109859)
...
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).
2023-10-14 09:13:02 +03:00
Serhiy Storchaka
ca0f3d858d
gh-107705: Fix file leak in test_tkinter in the C locale (GH-110507)
2023-10-14 09:09:07 +03:00
Serhiy Storchaka
38bd2c520a
gh-88434: Emit deprecation warnings for non-integer numbers in gettext if translation not found (GH-110574)
2023-10-14 09:07:02 +03:00
Serhiy Storchaka
9d40ebf190
gh-110628: Add tests for PyLong C API (GH-110629)
2023-10-14 08:53:57 +03:00
Serhiy Storchaka
84e2096fbd
gh-110392: Fix tty functions (GH-110642)
...
* 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.
2023-10-14 08:50:41 +03:00
Serhiy Storchaka
7284e0ef84
gh-110815: Support non-ASCII keyword names in PyArg_ParseTupleAndKeywords() (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.
2023-10-14 08:50:03 +03:00
Victor Stinner
ce298a1c15
regrtest: --fast-ci/slow-ci no longer imply --rerun-fail ( #110849 )
2023-10-14 00:25:38 +00:00
Victor Stinner
8f07b6e4e3
gh-110697: test_os TimerfdTests uses selectors ( #110789 )
...
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.
2023-10-13 16:20:18 +02:00
Russell Keith-Magee
a7e2a10a85
gh-110771: Decompose run_forever() into parts ( #110773 )
...
Effectively introduce an unstable, private (really: protected) API for subclasses that want to override `run_forever()`.
2023-10-13 14:12:32 +00:00
Serhiy Storchaka
548ce0923b
gh-110815: Improve tests for PyArg_ParseTupleAndKeywords() (GH-110817)
2023-10-13 16:05:01 +03:00
Pablo Galindo Salgado
e1d8c65e1d
gh-110805: Allow the repl to show source code and complete tracebacks ( #110775 )
2023-10-13 09:25:37 +00:00
Lysandros Nikolaou
2a68f77026
gh-107450: Fix testMemoryErrorBigSource using the bigmemtest decorator (GH-110810)
2023-10-13 08:30:56 +00:00
Nikita Sobolev
989a253947
gh-110525: Delete `test_c_api` method from `set` object ( #110688 )
2023-10-13 10:06:25 +02:00
Lysandros Nikolaou
05439d3087
gh-107450: Fix parser column offset overflow test on Windows ( #110768 )
...
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-10-13 09:41:00 +02:00
Filipe Laíns
2f59d418cf
GH-110796: fix intermittent test failure in test_current_exceptions
2023-10-13 06:26:27 +00:00
Filipe Laíns
4a53a397c3
GH-103480: make sysconfig a package (GH-110785)
2023-10-12 23:41:34 +00:00
Jelle Zijlstra
d2a536b170
gh-110782: Fix crash when TypeVar is constructed with keyword args ( #110784 )
2023-10-12 16:00:12 -07:00
Pablo Galindo Salgado
e7331365b4
gh-110721: Use the traceback module for PyErr_Display() and fallback to the C implementation ( #110702 )
2023-10-12 14:52:14 +00:00
Thomas Grainger
8c6c14b91b
gh-94597: Add asyncio.EventLoop ( #110723 )
...
This is needed to pave the way for deprecating and eventually killing the event loop policy system (which is over-engineered and rarely used).
2023-10-12 07:13:57 -07:00
Nikita Sobolev
b6000d2874
gh-109409: Fix inheritance of frozen dataclass from non-frozen dataclass mixins (gh-109437)
...
Fix inheritance of frozen dataclass from non-frozen dataclass mixins
2023-10-12 09:05:23 -04:00
Lysandros Nikolaou
fb7843ee89
gh-107450: Raise OverflowError when parser column offset overflows ( #110754 )
2023-10-12 09:34:12 +00:00
Pablo Galindo Salgado
3d180347ae
gh-110696: Fix incorrect syntax error message for incorrect argument unpacking ( #110706 )
2023-10-12 09:02:02 +00:00
Hugo van Kemenade
ea530f2f9a
gh-106193: Rename and fix duplicated tests in `test_monitoring` (GH-109139)
2023-10-12 08:43:58 +01:00
Lysandros Nikolaou
17d65547df
gh-104169: Fix test_peg_generator after tokenizer refactoring ( #110727 )
...
* Fix test_peg_generator after tokenizer refactoring
* Remove references to tokenizer.c in comments etc.
2023-10-12 09:34:35 +02:00
Nikita Sobolev
5257ade0bc
gh-110682: Ignore `__match_args__` from `__instancecheck__` in protocols ( #110683 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-10-11 19:20:20 -07:00
Victor Stinner
b4e8049766
gh-110673: test_pty raises on short write ( #110677 )
...
Add write_all() helper function to test_pty to raise an exception on
short write: if os.writes() does not write all bytes. It should not
happen for a PTY.
2023-10-11 21:30:15 +00:00
Tian Gao
c523ce0f43
gh-65052: Prevent pdb from crashing when trying to display objects ( #110578 )
2023-10-11 19:52:14 +02:00