Alex Waygood
aa3f419acb
gh-109653: Improve the import time of `email.utils` ( #109824 )
2023-10-12 15:03:20 -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
J. Nick Koston
3ac8e6955f
gh-110733: Micro-optimization in BaseEventLoop._run_once ( #110735 )
2023-10-11 20:59:27 +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
Serhiy Storchaka
eb50cd37ea
gh-110289: C API: Add PyUnicode_EqualToUTF8() and PyUnicode_EqualToUTF8AndSize() functions (GH-110297)
2023-10-11 16:41:58 +03:00
Zackery Spytz
f83fa0b9eb
gh-84489: Properly handle trailing spaces in Py_BuildValue() format strings (GH-21158)
...
The docs state that the space, tab, colon, and comma characters are
ignored in Py_BuildValue() format strings.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2023-10-11 14:44:06 +03:00
Serhiy Storchaka
f27b830907
gh-76106: Remove the cleanup lock in test_socket (GH-110539)
...
It does not already work (because it locks only addCleanup(), not doCleanups()),
and it is no longer needed since the clean up procedure waits for all test threads to join.
2023-10-11 13:52:06 +03:00
Serhiy Storchaka
5c6e85480a
gh-84489: C API: Add tests for Py_BuildValue() (GH-110596)
2023-10-11 10:08:51 +03:00
Barney Gale
b5f7777cb3
GH-110488: Fix two small issues in `pathlib.PurePath.with_name()` ( #110651 )
...
Ensure that `PurePath('foo/a').with_name('.')` raises `ValueError`
Ensure that `PureWindowsPath('foo/a').with_name('a:b')` does not raise
`ValueError`.
2023-10-11 04:45:11 +01:00
Victor Stinner
790ecf6302
gh-110662: multiprocessing test_async_timeout() increase timeout ( #110663 )
...
Increase timeout from 1 second to 30 seconds, if not longer. The
important part is that apply_async() takes longer than TIMEOUT2.
2023-10-11 02:36:06 +00:00
Victor Stinner
1556f426da
gh-110666: Fix multiprocessing test_terminate() elapsed ( #110667 )
...
multiprocessing test_terminate() and test_wait_socket_slow() no
longer test the CI performance: no longer check maximum elapsed time.
Add CLOCK_RES constant: tolerate a difference of 100 ms.
2023-10-11 01:49:09 +00:00
Victor Stinner
f901f56313
gh-110656: Fix logging test_post_fork_child_no_deadlock() if ASAN ( #110657 )
...
Skip test_post_fork_child_no_deadlock() if Python is built with ASAN.
Add support.HAVE_ASAN_FORK_BUG.
2023-10-11 02:57:53 +02:00
Victor Stinner
7ca4aafa0e
gh-108277: test_os tolerates 1 ms diff for timerfd ( #110661 )
2023-10-11 00:38:04 +00:00
Victor Stinner
e07c37cd52
gh-110647: Fix signal test_stress_modifying_handlers() ( #110650 )
...
* cycle_handlers() now waits until at least one signal is received.
* num_received_signals can be equal to num_sent_signals.
2023-10-10 23:59:43 +00:00
Barney Gale
da0a68afc9
GH-110109: Simplify pathlib test setup ( #110308 )
...
Use the class under test to create files, directories and symlinks.
2023-10-11 00:03:42 +01:00
Radislav Chugunov
0d805b998d
gh-108826: Document `dis` module CLI and rename `_test` function to `main` ( #108827 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2023-10-10 16:31:28 -06:00
Nikita Sobolev
732532b0af
gh-108303: Move all inspect test files to `test_inspect/` ( #109607 )
2023-10-10 22:15:11 +02:00
Nikita Sobolev
9cfb4e0d1e
gh-110525: Add tests for internal `set` CAPI (GH-110630)
2023-10-10 19:00:05 +03:00
Yilei Yang
ce43d5f0e1
gh-110050: Adjust the newline position in the TypeError message of the random.seed call. ( #110051 )
...
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2023-10-10 14:16:26 +02:00
Serhiy Storchaka
7f702b26db
gh-110388: Add tests for tty (GH-110394)
2023-10-10 13:42:25 +02:00
Serhiy Storchaka
92a9e98024
gh-81002: Add tests for termios (GH-110386)
2023-10-10 13:35:15 +02:00
Nikita Sobolev
344d3a222a
gh-110590: Fix a bug where _sre.compile would overwrite exceptions ( #110591 )
...
TypeError would be overwritten by OverflowError
if 'code' param contained non-ints.
2023-10-10 10:15:12 +00:00
Donghee Na
0362cbf908
gh-109595: Add -Xcpu_count=<n> cmdline for container users ( #109667 )
...
---------
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
2023-10-10 19:00:09 +09:00
Serhiy Storchaka
5aa62a8de1
gh-110378: Fix test_async_gen_propagates_generator_exit in test_contextlib_async ( #110500 )
...
It now fails if the original bug is not fixed, and no longer produce ResourceWarning with fixed code.
2023-10-10 11:38:40 +02:00
Alex Waygood
fc811c8d20
gh-110558: Enable ruff's pyupgrade rules when running on Argument Clinic ( #110603 )
2023-10-10 09:35:36 +00:00
Eric Snow
757cc35b6b
gh-84570: Implement Waiting in SendChannel.send() (gh-110565)
...
We had been faking it (poorly).
We will add timeouts separately.
2023-10-10 09:35:14 +00:00
Alex Waygood
7b2764e798
gh-110558: Run ruff on Argument Clinic in CI ( #110559 )
2023-10-10 07:52:39 +00:00
Serhiy Storchaka
96fed66a65
gh-110378: Close invalid generators in contextmanager and asynccontextmanager (GH-110499)
...
contextmanager and asynccontextmanager context managers now close an invalid
underlying generator object that yields more then one value.
2023-10-10 09:43:04 +02:00
Serhiy Storchaka
326c6c4e07
gh-110519: Improve deprecation warning in the gettext module ( #110520 )
...
Deprecation warning about non-integer numbers in gettext now always refers
to the line in the user code where gettext function or method is used.
Previously, it could refer to a line in gettext code.
Also, increase test coverage for NullTranslations and domain-aware functions
like dngettext().
2023-10-09 15:45:22 +02:00
Eric Snow
7bd560ce8d
gh-76785: Add SendChannel.send_buffer() ( #110246 )
...
(This is still a test module.)
2023-10-09 07:39:51 -06:00
Nikita Sobolev
c49edd7d9c
gh-110525: Add CAPI tests for set and frozenset objects (GH-110526)
2023-10-09 11:57:48 +03:00
Tian Gao
dd4bb0529e
gh-110514: Add PY_THROW to `sys.setprofile` events (GH-110524)
2023-10-09 09:38:45 +01:00
Tian Gao
9f8282de6b
gh-106670: Set convenience variable for post mortem debugging ( #110493 )
2023-10-09 08:17:24 +00:00
Victor Stinner
7e30821b17
gh-108277: Fix test_os TimerfdTests ( #110515 )
...
* test_timerfd_TFD_TIMER_ABSTIME() and
test_timerfd_ns_TFD_TIMER_ABSTIME() tolerate a difference of 50 us.
* test_timerfd_negative() checks if os.TFD_TIMER_CANCEL_ON_SET is
defined.
2023-10-08 11:26:18 +00:00
Serhiy Storchaka
d96a8cdfe2
gh-89902: Deprecate non-standard format specifier "N" for Decimal (GH-110508)
...
It was not documented and only supported in the C implementation.
2023-10-08 10:01:39 +03:00
Nikita Sobolev
6780d63ae5
gh-110378: Move to `IsolatedAsyncTestCase` in `test_contextlib_async.py` ( #110379 )
2023-10-08 11:44:56 +05:30
Masaru Tsuchiyama
de2a4036cb
gh-108277: Add os.timerfd_create() function ( #108382 )
...
Add wrapper for timerfd_create, timerfd_settime, and timerfd_gettime to os module.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2023-10-07 19:33:22 +02:00
Victor Stinner
64f158e7b0
gh-110397: Add Py_IsFinalizing() to the stable ABI ( #110441 )
2023-10-07 17:59:16 +02:00
Serhiy Storchaka
b987fdb19b
gh-109848: Make test_rot13_func in test_codecs independent (GH-109850)
2023-10-07 16:01:39 +03:00
Serhiy Storchaka
1aad4fc5db
gh-109864: Make test_gettext tests order independent (GH-109866)
2023-10-07 16:00:28 +03:00
Eric Snow
92ca90b762
gh-76785: Support Running Some Functions in Subinterpreters (gh-110251)
...
This specifically refers to `test.support.interpreters.Interpreter.run()`.
2023-10-06 17:52:22 -06:00
Victor Stinner
d023d4166b
gh-110184: Fix subprocess test_pipesize_default() ( #110465 )
...
For proc.stdin, get the size of the read end of the test pipe.
Use subprocess context manager ("with proc:").
2023-10-06 15:44:53 +02:00