]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Tian Gao [Thu, 12 Oct 2023 14:10:21 +0000 (07:10 -0700)]
gh-110752: Reset `ceval.eval_breaker` to 0 in `interpreter_clear` (GH-110753)
Nikita Sobolev [Thu, 12 Oct 2023 13:05:23 +0000 (16:05 +0300)]
gh-109409: Fix inheritance of frozen dataclass from non-frozen dataclass mixins (gh-109437)
Fix inheritance of frozen dataclass from non-frozen dataclass mixins
Irit Katriel [Thu, 12 Oct 2023 10:02:42 +0000 (12:02 +0200)]
gh-109094: remove redundant arg to _PyFrame_PushTrampolineUnchecked (GH-110759)
Mark Shannon [Thu, 12 Oct 2023 09:34:32 +0000 (10:34 +0100)]
GH-109214: Convert _SAVE_CURRENT_IP to _SET_IP in tier 2 trace creation. (GH-110755)
Lysandros Nikolaou [Thu, 12 Oct 2023 09:34:12 +0000 (11:34 +0200)]
gh-107450: Raise OverflowError when parser column offset overflows (#110754)
Pablo Galindo Salgado [Thu, 12 Oct 2023 09:02:02 +0000 (10:02 +0100)]
gh-110696: Fix incorrect syntax error message for incorrect argument unpacking (#110706)
Erlend E. Aasland [Thu, 12 Oct 2023 08:28:10 +0000 (10:28 +0200)]
gh-71587: Establish global state in `_datetime` (#110475)
* Use explicit initialiser for m_base
* Add module state stub; establish global state on stack
* Put conversion factors in state struct
* Move PyDateTime_TimeZone_UTC to state
* Move PyDateTime_Epoch to state struct
* Fix ref leaks in and clean up initialisation
Hugo van Kemenade [Thu, 12 Oct 2023 07:43:58 +0000 (09:43 +0200)]
gh-106193: Rename and fix duplicated tests in `test_monitoring` (GH-109139)
Lysandros Nikolaou [Thu, 12 Oct 2023 07:34:35 +0000 (09:34 +0200)]
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.
Filipe Laíns [Thu, 12 Oct 2023 05:52:13 +0000 (06:52 +0100)]
GH-110749: fix unistd.h import in file_tokenizer.c (#110750)
Nikita Sobolev [Thu, 12 Oct 2023 02:20:20 +0000 (05:20 +0300)]
gh-110682: Ignore `__match_args__` from `__instancecheck__` in protocols (#110683)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Victor Stinner [Wed, 11 Oct 2023 22:06:20 +0000 (00:06 +0200)]
gh-85283: _stat extension now uses the limited C API (#110711)
gh-85283: _stat extension uses the limited C API
The _stat C extension is now built with the limited C API.
Victor Stinner [Wed, 11 Oct 2023 21:30:15 +0000 (23:30 +0200)]
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.
J. Nick Koston [Wed, 11 Oct 2023 20:59:27 +0000 (10:59 -1000)]
gh-110733: Micro-optimization in BaseEventLoop._run_once (#110735)
Ezio Melotti [Wed, 11 Oct 2023 20:50:55 +0000 (22:50 +0200)]
gh-110631: Fix reST indentation in `Doc/reference` (#110708)
Fix wrong indentation in the Doc/reference dir.
Victor Stinner [Wed, 11 Oct 2023 20:47:54 +0000 (22:47 +0200)]
gh-85283: If Py_LIMITED_API is defined, undefine Py_BUILD_CORE (#110725)
If the Py_LIMITED_API macro is defined, Py_BUILD_CORE,
Py_BUILD_CORE_BUILTIN and Py_BUILD_CORE_MODULE macros are now
undefined by Python.h.
Only undefine these 3 macros after including "exports.h" which uses
them to define PyAPI_FUNC(), PyAPI_DATA() and PyMODINIT_FUNC macros.
Remove hacks (undefine manually the 3 Py_BUILD_CORE macros) in
Modules/_testcapi/parts.h and Modules/_testclinic_limited.c.
Ezio Melotti [Wed, 11 Oct 2023 20:43:03 +0000 (22:43 +0200)]
gh-110631: Fix reST indentation (#110724)
* Fix wrong indentation in the other dirs.
* Fix more wrong indentation.
Ezio Melotti [Wed, 11 Oct 2023 20:24:12 +0000 (22:24 +0200)]
gh-110631: Fix reST indentation in `Doc/library` (#110685)
Fix wrong indentation in the Doc/library dir.
Tian Gao [Wed, 11 Oct 2023 17:52:14 +0000 (10:52 -0700)]
gh-65052: Prevent pdb from crashing when trying to display objects (#110578)
Hugo van Kemenade [Wed, 11 Oct 2023 16:12:28 +0000 (18:12 +0200)]
gh-109408: Revert pre-commit whitespace checks pending portable solution (#110726)
Victor Stinner [Wed, 11 Oct 2023 15:54:40 +0000 (17:54 +0200)]
gh-110313: Revert "gh-90108: Disable LTO on _freeze_module and _teste… (#110720)
gh-110313: Revert "gh-90108: Disable LTO on _freeze_module and _testembed (#109581)"
This reverts commit
3e3a7da590e1c3e5f03802e538f26c5204889c82 .
Lysandros Nikolaou [Wed, 11 Oct 2023 15:14:44 +0000 (17:14 +0200)]
gh-104169: Refactor tokenizer into lexer and wrappers (#110684)
* The lexer, which include the actual lexeme producing logic, goes into
the `lexer` directory.
* The wrappers, one wrapper per input mode (file, string, utf-8, and
readline), go into the `tokenizer` directory and include logic for
creating a lexer instance and managing the buffer for different modes.
---------
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Serhiy Storchaka [Wed, 11 Oct 2023 13:41:58 +0000 (16:41 +0300)]
gh-110289: C API: Add PyUnicode_EqualToUTF8() and PyUnicode_EqualToUTF8AndSize() functions (GH-110297)
Adam Turner [Wed, 11 Oct 2023 12:57:51 +0000 (13:57 +0100)]
GH-107518: Remove the Argument Clinic How-To (#109900)
* Remove the content of the Argument Clinic HOWTO
* Update cross-references to the Argument Clinic
* Add a note directing readers to the devguide
Zackery Spytz [Wed, 11 Oct 2023 11:44:06 +0000 (04:44 -0700)]
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>
Serhiy Storchaka [Wed, 11 Oct 2023 10:52:06 +0000 (13:52 +0300)]
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.
Serhiy Storchaka [Wed, 11 Oct 2023 07:08:51 +0000 (10:08 +0300)]
gh-84489: C API: Add tests for Py_BuildValue() (GH-110596)
Ezio Melotti [Wed, 11 Oct 2023 05:34:38 +0000 (07:34 +0200)]
gh-110631: fix wrong indentation in the `Doc/whatsnew` dir (#110632)
Fix wrong indentation in the Doc/whatsnew dir.
Barney Gale [Wed, 11 Oct 2023 03:45:11 +0000 (04:45 +0100)]
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`.
Victor Stinner [Wed, 11 Oct 2023 02:36:06 +0000 (04:36 +0200)]
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.
Victor Stinner [Wed, 11 Oct 2023 01:49:09 +0000 (03:49 +0200)]
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.
Victor Stinner [Wed, 11 Oct 2023 00:57:53 +0000 (02:57 +0200)]
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.
Victor Stinner [Wed, 11 Oct 2023 00:38:04 +0000 (02:38 +0200)]
gh-108277: test_os tolerates 1 ms diff for timerfd (#110661)
Victor Stinner [Tue, 10 Oct 2023 23:59:43 +0000 (01:59 +0200)]
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.
Barney Gale [Tue, 10 Oct 2023 23:03:42 +0000 (00:03 +0100)]
GH-110109: Simplify pathlib test setup (#110308)
Use the class under test to create files, directories and symlinks.
Radislav Chugunov [Tue, 10 Oct 2023 22:31:28 +0000 (01:31 +0300)]
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>
Nikita Sobolev [Tue, 10 Oct 2023 20:15:11 +0000 (23:15 +0300)]
gh-108303: Move all inspect test files to `test_inspect/` (#109607)
Nikita Sobolev [Tue, 10 Oct 2023 16:00:05 +0000 (19:00 +0300)]
gh-110525: Add tests for internal `set` CAPI (GH-110630)
Hugo van Kemenade [Tue, 10 Oct 2023 14:36:19 +0000 (16:36 +0200)]
gh-110631: Set three-space indents for reST in EditorConfig (#110635)
Set three-space indents in EditorConfig
Donghee Na [Tue, 10 Oct 2023 14:17:08 +0000 (23:17 +0900)]
gh-109693: Update pycore_interp.h to use pyatomic.h (#110604)
Adam Turner [Tue, 10 Oct 2023 13:40:08 +0000 (14:40 +0100)]
GH-109408: Move the C file whitespace check from patchcheck to pre-commit (#109890)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Adam Turner [Tue, 10 Oct 2023 12:51:20 +0000 (13:51 +0100)]
Don't doubly-parallelise sphinx-lint (#110617)
Yilei Yang [Tue, 10 Oct 2023 12:16:26 +0000 (05:16 -0700)]
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>
Nikita Sobolev [Tue, 10 Oct 2023 11:44:19 +0000 (14:44 +0300)]
gh-101100: Fix sphinx warnings in `library/socketserver.rst` (GH-110207)
Serhiy Storchaka [Tue, 10 Oct 2023 11:42:25 +0000 (14:42 +0300)]
gh-110388: Add tests for tty (GH-110394)
Serhiy Storchaka [Tue, 10 Oct 2023 11:35:15 +0000 (14:35 +0300)]
gh-81002: Add tests for termios (GH-110386)
Nikita Sobolev [Tue, 10 Oct 2023 10:15:12 +0000 (13:15 +0300)]
gh-110590: Fix a bug where _sre.compile would overwrite exceptions (#110591)
TypeError would be overwritten by OverflowError
if 'code' param contained non-ints.
Donghee Na [Tue, 10 Oct 2023 10:00:09 +0000 (19:00 +0900)]
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>
Serhiy Storchaka [Tue, 10 Oct 2023 09:38:40 +0000 (12:38 +0300)]
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.
Alex Waygood [Tue, 10 Oct 2023 09:35:36 +0000 (11:35 +0200)]
gh-110558: Enable ruff's pyupgrade rules when running on Argument Clinic (#110603)
Eric Snow [Tue, 10 Oct 2023 09:35:14 +0000 (03:35 -0600)]
gh-84570: Implement Waiting in SendChannel.send() (gh-110565)
We had been faking it (poorly).
We will add timeouts separately.
Nikita Sobolev [Tue, 10 Oct 2023 09:34:48 +0000 (12:34 +0300)]
gh-107652: Fix CIFuzz typo (#110602)
Adam Turner [Tue, 10 Oct 2023 09:17:53 +0000 (10:17 +0100)]
GH-109408: Move the Python file whitespace check from patchcheck to pre-commit (#109891)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Brandt Bucher [Tue, 10 Oct 2023 08:45:23 +0000 (10:45 +0200)]
Remove an old macro from executor.c (#110597)
Brandt Bucher [Tue, 10 Oct 2023 08:29:48 +0000 (10:29 +0200)]
GH-104584: Fix refleak when tracing through calls (GH-110593)
Alex Waygood [Tue, 10 Oct 2023 08:21:58 +0000 (10:21 +0200)]
Add some 'meta hooks' to our pre-commit config (#110587)
Hugo van Kemenade [Tue, 10 Oct 2023 08:11:51 +0000 (10:11 +0200)]
gh-109408: Add the docs whitespace check from patchcheck to pre-commit (#109854)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Alex Waygood [Tue, 10 Oct 2023 07:52:39 +0000 (09:52 +0200)]
gh-110558: Run ruff on Argument Clinic in CI (#110559)
Serhiy Storchaka [Tue, 10 Oct 2023 07:43:04 +0000 (10:43 +0300)]
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.
Nikita Sobolev [Tue, 10 Oct 2023 06:44:57 +0000 (09:44 +0300)]
Fix CIFuzz build (#110576)
Donghee Na [Mon, 9 Oct 2023 23:26:29 +0000 (08:26 +0900)]
gh-109693: Use pyatomic.h for signal module (gh-110480)
Ezio Melotti [Mon, 9 Oct 2023 22:30:23 +0000 (00:30 +0200)]
Remove unused `SPHINXLINT` var from `Doc/Makefile`. (#110570)
Remove unused `SPHINXLINT` var.
Jakub Kulík [Mon, 9 Oct 2023 21:18:05 +0000 (23:18 +0200)]
gh-78469: Declare missing sethostname for Solaris 10 (#109447)
Add OS version specific macro for Solaris: Py_SUNOS_VERSION.
Ashish Shirodkar [Mon, 9 Oct 2023 21:15:19 +0000 (02:45 +0530)]
gh-106765: Updates Windows installer build instructions to clarify system requirements (GH-110566)
Illia Volochii [Mon, 9 Oct 2023 15:30:10 +0000 (18:30 +0300)]
gh-107652: Set up CIFuzz to run fuzz targets continuously (#107653)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Serhiy Storchaka [Mon, 9 Oct 2023 13:45:22 +0000 (16:45 +0300)]
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().
Eric Snow [Mon, 9 Oct 2023 13:39:51 +0000 (07:39 -0600)]
gh-76785: Add SendChannel.send_buffer() (#110246)
(This is still a test module.)
Bo Anderson [Mon, 9 Oct 2023 13:21:20 +0000 (14:21 +0100)]
gh-109191: Fix build with newer editline (gh-110239)
Steve Dower [Mon, 9 Oct 2023 11:17:42 +0000 (12:17 +0100)]
gh-110437: Allow overriding VCRuntimeDLL with a semicolon separated list of DLLs to bundle (GH-110470)
Nikita Sobolev [Mon, 9 Oct 2023 11:04:49 +0000 (14:04 +0300)]
gh-110525: Cover PySet_Add corner case with frozenset objects (GH-110544)
Nikita Sobolev [Mon, 9 Oct 2023 10:37:57 +0000 (13:37 +0300)]
gh-110549: Remove unused includes of <stddef.h> in _testcapi (GH-110552)
jtranquilli [Mon, 9 Oct 2023 10:05:50 +0000 (06:05 -0400)]
gh-109286: Update macOS installer to use SQLite 3.43.1 (#110482)
Nikita Sobolev [Mon, 9 Oct 2023 09:18:06 +0000 (12:18 +0300)]
gh-110497: Add note about `OSError` being an alias to `IOError` in docs (#110498)
Nikita Sobolev [Mon, 9 Oct 2023 08:57:48 +0000 (11:57 +0300)]
gh-110525: Add CAPI tests for set and frozenset objects (GH-110526)
Tian Gao [Mon, 9 Oct 2023 08:38:45 +0000 (01:38 -0700)]
gh-110514: Add PY_THROW to `sys.setprofile` events (GH-110524)
Tian Gao [Mon, 9 Oct 2023 08:17:24 +0000 (01:17 -0700)]
gh-106670: Set convenience variable for post mortem debugging (#110493)
Albert Villanova del Moral [Mon, 9 Oct 2023 05:36:01 +0000 (07:36 +0200)]
Remove unused imports in multiprocessing docs example (#109984)
partev [Mon, 9 Oct 2023 04:44:15 +0000 (00:44 -0400)]
gh-110534 fix a URL redirect to wikipedia article on Fibonacci numbers (#110535)
Victor Stinner [Sun, 8 Oct 2023 11:26:18 +0000 (13:26 +0200)]
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.
Serhiy Storchaka [Sun, 8 Oct 2023 07:01:39 +0000 (10:01 +0300)]
gh-89902: Deprecate non-standard format specifier "N" for Decimal (GH-110508)
It was not documented and only supported in the C implementation.
Nikita Sobolev [Sun, 8 Oct 2023 06:14:56 +0000 (09:14 +0300)]
gh-110378: Move to `IsolatedAsyncTestCase` in `test_contextlib_async.py` (#110379)
zipperer [Sun, 8 Oct 2023 00:07:36 +0000 (19:07 -0500)]
Update floatingpoint.rst (#110509)
This commit removes a ':'. I believe the extra colon causes a display error.
What I believe to be an error:
Above this expression
`round(math.pi, ndigits=2) == round(22 / 7, ndigits=2)`
the page displays `.. doctest::`.
What I observed:
After I remove the extra colon, the page does not display `.. doctest::`
denballakh [Sun, 8 Oct 2023 00:04:51 +0000 (03:04 +0300)]
gh-110237: Check `PyList_Append` for errors in `_PyEval_MatchClass` (#110238)
Masaru Tsuchiyama [Sat, 7 Oct 2023 17:33:22 +0000 (02:33 +0900)]
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>
Victor Stinner [Sat, 7 Oct 2023 15:59:16 +0000 (17:59 +0200)]
gh-110397: Add Py_IsFinalizing() to the stable ABI (#110441)
Serhiy Storchaka [Sat, 7 Oct 2023 13:01:39 +0000 (16:01 +0300)]
gh-109848: Make test_rot13_func in test_codecs independent (GH-109850)
Serhiy Storchaka [Sat, 7 Oct 2023 13:00:28 +0000 (16:00 +0300)]
gh-109864: Make test_gettext tests order independent (GH-109866)
Eric Snow [Fri, 6 Oct 2023 23:52:22 +0000 (17:52 -0600)]
gh-76785: Support Running Some Functions in Subinterpreters (gh-110251)
This specifically refers to `test.support.interpreters.Interpreter.run()`.
Charlie Zhao [Fri, 6 Oct 2023 23:15:19 +0000 (07:15 +0800)]
gh-106078: Suppress the warning caused by multi-phase initialization of `decimal` (#107524)
Brett Cannon [Fri, 6 Oct 2023 23:12:19 +0000 (16:12 -0700)]
GH-110455: Guard `assert(tstate->thread_id > 0)` with `#ifndef HAVE_PTHREAD_STUBS` (GH-110487)
Shantanu [Fri, 6 Oct 2023 22:57:18 +0000 (15:57 -0700)]
gh-110489: Optimise math.ceil for known exact float (#108801)
This matches a similar optimisation done for math.floor in
https://github.com/python/cpython/pull/21072
jtranquilli [Fri, 6 Oct 2023 15:12:15 +0000 (11:12 -0400)]
gh-109286: Update Windows installer to use SQLite 3.43.1 (#110403)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
InSync [Fri, 6 Oct 2023 14:25:02 +0000 (21:25 +0700)]
Fix typo in Doc/library/textwrap.rst (#110328)
"One problem with this is algorithm is that [...]" -> "One problem with this algorithm is that [...]"
Victor Stinner [Fri, 6 Oct 2023 13:44:53 +0000 (15:44 +0200)]
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:").
Victor Stinner [Fri, 6 Oct 2023 01:08:34 +0000 (03:08 +0200)]
gh-103053: Fix test_tools.test_freeze on FreeBSD (#110451)
Fix test_tools.test_freeze on FreeBSD: run "make distclean" instead
of "make clean" in the copied source directory to remove also the
"python" program.
Other test_freeze changes:
* Log executed commands and directories, and the current directory.
* No longer uses make -C option to change the directory, instead use
subprocess cwd parameter.
Victor Stinner [Fri, 6 Oct 2023 00:46:52 +0000 (02:46 +0200)]
gh-103053: Fix make check-clean-src: check "python" program (#110449)
"make check-clean-src" now also checks if the "python" program is
found in the source directory: fail with an error if it does exist.
Victor Stinner [Fri, 6 Oct 2023 00:37:28 +0000 (02:37 +0200)]
Add support.MS_WINDOWS constant (#110446)
Carl Meyer [Thu, 5 Oct 2023 22:05:29 +0000 (15:05 -0700)]
gh-109287: fix overrides in cases generator (#110419)
Victor Stinner [Thu, 5 Oct 2023 21:59:35 +0000 (23:59 +0200)]
gh-85283: Add PySys_AuditTuple() function (#108965)
sys.audit() now has assertions to check that the event argument is
not NULL and that the format argument does not use the "N" format.
Add tests on PySys_AuditTuple().
Victor Stinner [Thu, 5 Oct 2023 21:40:49 +0000 (23:40 +0200)]
gh-109888: Fix test_os _kill_with_event() on Windows (#110421)
Replace os.kill() with proc.kill() which catchs PermissionError.
Rewrite _kill_with_event():
* Use subprocess context manager ("with proc:").
* Use sleeping_retry() to wait until the child process is ready.
* Replace SIGINT with proc.kill() on error.
* Replace 10 seconds with SHORT_TIMEOUT to wait until the process is
ready.
* Replace 0.5 seconds with SHORT_TIMEOUT to wait for the process
exit.