summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-109191: Fix build with newer editline (gh-110239)Bo Anderson2023-10-095-1/+31
|
* gh-110437: Allow overriding VCRuntimeDLL with a semicolon separated list of ↵Steve Dower2023-10-092-1/+6
| | | | DLLs to bundle (GH-110470)
* gh-110525: Cover PySet_Add corner case with frozenset objects (GH-110544)Nikita Sobolev2023-10-091-0/+37
|
* gh-110549: Remove unused includes of <stddef.h> in _testcapi (GH-110552)Nikita Sobolev2023-10-093-6/+0
|
* gh-109286: Update macOS installer to use SQLite 3.43.1 (#110482)jtranquilli2023-10-092-3/+4
|
* gh-110497: Add note about `OSError` being an alias to `IOError` in docs ↵Nikita Sobolev2023-10-095-9/+11
| | | | (#110498)
* gh-110525: Add CAPI tests for set and frozenset objects (GH-110526)Nikita Sobolev2023-10-096-1/+383
|
* gh-110514: Add PY_THROW to `sys.setprofile` events (GH-110524)Tian Gao2023-10-093-1/+27
|
* gh-106670: Set convenience variable for post mortem debugging (#110493)Tian Gao2023-10-093-0/+15
|
* Remove unused imports in multiprocessing docs example (#109984)Albert Villanova del Moral2023-10-091-1/+0
|
* gh-110534 fix a URL redirect to wikipedia article on Fibonacci numbers (#110535)partev2023-10-091-1/+1
|
* gh-108277: Fix test_os TimerfdTests (#110515)Victor Stinner2023-10-081-3/+11
| | | | | | * 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.
* gh-89902: Deprecate non-standard format specifier "N" for Decimal (GH-110508)Serhiy Storchaka2023-10-084-0/+29
| | | It was not documented and only supported in the C implementation.
* gh-110378: Move to `IsolatedAsyncTestCase` in `test_contextlib_async.py` ↵Nikita Sobolev2023-10-081-51/+5
| | | | (#110379)
* Update floatingpoint.rst (#110509)zipperer2023-10-081-1/+1
| | | | | | | | | | | 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::`
* gh-110237: Check `PyList_Append` for errors in `_PyEval_MatchClass` (#110238)denballakh2023-10-082-3/+12
|
* gh-108277: Add os.timerfd_create() function (#108382)Masaru Tsuchiyama2023-10-0717-5/+1527
| | | | | | | | 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>
* gh-110397: Add Py_IsFinalizing() to the stable ABI (#110441)Victor Stinner2023-10-076-2/+9
|
* gh-109848: Make test_rot13_func in test_codecs independent (GH-109850)Serhiy Storchaka2023-10-071-1/+2
|
* gh-109864: Make test_gettext tests order independent (GH-109866)Serhiy Storchaka2023-10-071-2/+13
|
* gh-76785: Support Running Some Functions in Subinterpreters (gh-110251)Eric Snow2023-10-063-26/+439
| | | This specifically refers to `test.support.interpreters.Interpreter.run()`.
* gh-106078: Suppress the warning caused by multi-phase initialization of ↵Charlie Zhao2023-10-062-1/+10
| | | | `decimal` (#107524)
* GH-110455: Guard `assert(tstate->thread_id > 0)` with `#ifndef ↵Brett Cannon2023-10-062-2/+5
| | | | HAVE_PTHREAD_STUBS` (GH-110487)
* gh-110489: Optimise math.ceil for known exact float (#108801)Shantanu2023-10-062-7/+10
| | | | This matches a similar optimisation done for math.floor in https://github.com/python/cpython/pull/21072
* gh-109286: Update Windows installer to use SQLite 3.43.1 (#110403)jtranquilli2023-10-064-3/+4
| | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend@python.org>
* Fix typo in Doc/library/textwrap.rst (#110328)InSync2023-10-061-1/+1
| | | "One problem with this is algorithm is that [...]" -> "One problem with this algorithm is that [...]"
* gh-110184: Fix subprocess test_pipesize_default() (#110465)Victor Stinner2023-10-061-18/+23
| | | | | For proc.stdin, get the size of the read end of the test pipe. Use subprocess context manager ("with proc:").
* gh-103053: Fix test_tools.test_freeze on FreeBSD (#110451)Victor Stinner2023-10-062-14/+22
| | | | | | | | | | | 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.
* gh-103053: Fix make check-clean-src: check "python" program (#110449)Victor Stinner2023-10-062-1/+5
| | | | "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.
* Add support.MS_WINDOWS constant (#110446)Victor Stinner2023-10-0615-33/+22
|
* gh-109287: fix overrides in cases generator (#110419)Carl Meyer2023-10-054-31/+37
|
* gh-85283: Add PySys_AuditTuple() function (#108965)Victor Stinner2023-10-057-9/+109
| | | | | | 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().
* gh-109888: Fix test_os _kill_with_event() on Windows (#110421)Victor Stinner2023-10-051-23/+27
| | | | | | | | | | | | | 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.
* gh-110429: Fix race condition in "make regen-all" (#110433)Victor Stinner2023-10-051-2/+2
| | | | | | "make regen-pegen" now creates a temporary file called "parser.c.new" instead of "parser.new.c". Previously, if "make clinic" was run in parallel with "make regen-all", clinic may try but fail to open "parser.new.c" if the temporay file was removed in the meanwhile.
* gh-110383: Swap 'the all' -> 'all the' in socket docs (#110434)Bradley Reynolds2023-10-051-1/+1
|
* gh-110119: Fix test_importlib `--disable-gil` Windows test failures (#110422)Sam Gross2023-10-051-2/+5
| | | Use "t" in the expected tag for `--disable-gil` builds in test_tagged_suffix.
* gh-109840: Fix multiprocessing test_waitfor_timeout() (#110428)Victor Stinner2023-10-051-3/+3
| | | | Don't measure the CI performance: don't fail if cond.wait_for() takes longer than 1 second on a slow CI.
* gh-110167: Increase support.LOOPBACK_TIMEOUT to 10 seconds (#110413)Victor Stinner2023-10-052-7/+3
| | | | | | Increase support.LOOPBACK_TIMEOUT from 5 to 10 seconds. Also increase the timeout depending on the --timeout option. For example, for a test timeout of 40 minutes (ARM Raspbian 3.x), use LOOPBACK_TIMEOUT of 20 seconds instead of 5 seconds before.
* gh-110167: Fix test_socket deadlock in doCleanups() (#110416)Victor Stinner2023-10-052-5/+12
| | | | | | | | | | | | | Fix a deadlock in test_socket when server fails with a timeout but the client is still running in its thread. Don't hold a lock to call cleanup functions in doCleanups(). One of the cleanup function waits until the client completes, whereas the client could deadlock if it called addCleanup() in such situation. doCleanups() is called when the server completed, but the client can still be running in its thread especially if the server failed with a timeout. Don't put a lock on doCleanups() to prevent deadlock between addCleanup() called in the client and doCleanups() waiting for self.done.wait of ThreadableTest._setUp().
* gh-110147: test_msvcrt: run console I/O tests in new processes (#110268)AN Long2023-10-053-107/+31
|
* Fix env var typo in perf profiling docs (#110404)Harmen Stoppels2023-10-051-2/+1
| | | Fix typo in docs
* gh-110383 TimeIt Docs Spelling Fix (#110407)Towster152023-10-051-1/+1
| | | Make 0.2 second plural
* gh-110391: socket NetworkConnectionAttributesTest always declare cli (#110401)Victor Stinner2023-10-051-1/+3
| | | | NetworkConnectionAttributesTest of test_socket now always declare the 'cli' attribute, so clientTearDown() cannot fail with AttributeError.
* gh-109549: Add new states to PyThreadState to support PEP 703 (gh-109915)Sam Gross2023-10-056-92/+141
| | | This adds a new field 'state' to PyThreadState that can take on one of three values: _Py_THREAD_ATTACHED, _Py_THREAD_DETACHED, or _Py_THREAD_GC. The "attached" and "detached" states correspond closely to acquiring and releasing the GIL. The "gc" state is current unused, but will be used to implement stop-the-world GC for --disable-gil builds in the near future.
* gh-109329: Add stat for "trace too short" (GH-110402)Michael Droettboom2023-10-054-0/+5
|
* gh-110393: Remove watchdog with hardcoded timeout (#110400)Victor Stinner2023-10-052-9/+0
| | | | | | | | test_builtin and test_socketserver no longer use signal.alarm() to implement a watchdog with a hardcoded timeout (2 and 60 seconds). Python test runner regrtest has two watchdogs: faulthandler and timeout on running worker processes. Tests using short hardcoded timeout can fail on slowest buildbots just because the timeout is too short.
* gh-82367: Use `FindFirstFile` Win32 API in `ntpath.realpath()` (GH-110298)박문식2023-10-058-8/+132
| | | | | | | * Use `FindFirstFile` Win32 API to fix a bug where `ntpath.realpath()` breaks out of traversing a series of paths where a (handled) `ERROR_ACCESS_DENIED` or `ERROR_SHARING_VIOLATION` occurs. * Update docs to reflect that `ntpath.realpath()` eliminates MS-DOS style names.
* gh-110309: Prune empty constant in format specs (#110320)sunmy20192023-10-053-10/+79
| | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-110259: Fix f-strings with multiline expressions and format specs (#110271)Pablo Galindo Salgado2023-10-055-10/+128
| | | Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* gh-110367: Fix regrtest test_worker_output_on_failure() on ASAN build (#110387)Victor Stinner2023-10-053-9/+20
| | | Set ASAN_OPTIONS="handle_segv=0" env var to run the test.