summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-107954: Refactor initconfig.c: add CONFIG_SPEC (#110146)Victor Stinner2023-09-303-320/+262
| | | Add a specification of the PyConfig structure to factorize the code.
* GH-89812: Add `pathlib._PathBase` (#106337)Barney Gale2023-09-303-161/+687
| | | | | Add private `pathlib._PathBase` class. This will be used by an experimental PyPI package to incubate a `tarfile.TarPath` class. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* GH-101100: Fix reference warnings for ``gettext`` (#110115)Adam Turner2023-09-301-29/+26
|
* GH-101100: Fix reference warnings for ``namedtuple`` (#110113)Adam Turner2023-09-302-4/+4
|
* Add example for linear_regression() with proportional=True. (gh-110133)Raymond Hettinger2023-09-301-0/+19
|
* gh-107888: Fix test_mmap PROT_EXEC comment (#110125)Victor Stinner2023-09-291-1/+1
|
* gh-110119: Temporarily skip test_cppext on --disable-gil builds. (#110123)Sam Gross2023-09-291-0/+4
| | | | The current version of pip does not support "t" in the ABI flags. Skip the test in `--disable-gil` builds until we can update pip.
* gh-109566: regrtest --fast-ci no longer enables --nowindows (#110121)Victor Stinner2023-09-292-7/+1
| | | | The --nowindows option is deprecated and does nothing but logs a warning.
* gh-109566: Remove make testall (#110122)Victor Stinner2023-09-293-19/+7
| | | Remove "make testall" target: use "make buildbottest" instead.
* gh-109047: concurrent.futures catches PythonFinalizationError (#109810)Victor Stinner2023-09-294-22/+88
| | | | | | | | | | | | | | | | | | | | | | | | | concurrent.futures: The *executor manager thread* now catches exceptions when adding an item to the *call queue*. During Python finalization, creating a new thread can now raise RuntimeError. Catch the exception and call terminate_broken() in this case. Add test_python_finalization_error() to test_concurrent_futures. concurrent.futures._ExecutorManagerThread changes: * terminate_broken() no longer calls shutdown_workers() since the call queue is no longer working anymore (read and write ends of the queue pipe are closed). * terminate_broken() now terminates child processes, not only wait until they complete. * _ExecutorManagerThread.terminate_broken() now holds shutdown_lock to prevent race conditons with ProcessPoolExecutor.submit(). multiprocessing.Queue changes: * Add _terminate_broken() method. * _start_thread() sets _thread to None on exception to prevent leaking "dangling threads" even if the thread was not started yet.
* gh-109566: PCbuild/rt.bat now uses --fast-ci (#110120)Victor Stinner2023-09-291-1/+1
| | | | | | Replace "--fail-env-changed --fail-rerun" with "--fast-ci". Tools/buildbot/test.bat pass --slow-ci which has the priority over --fast-ci.
* gh-66143: Allow copying and pickling of CodecInfo object (GH-109235)Furkan Onder2023-09-293-0/+75
| | | Co-authored-by: Robert Lehmann <mail@robertlehmann.de>
* gh-109495: Remove unused slots from the Python implementation of datetime ↵James Hilton-Balfe2023-09-292-1/+2
| | | | (GH-109494)
* gh-109615: Look for 'Modules' as landmark for test_copy_python_src_ignore ↵Steve Dower2023-09-291-1/+3
| | | | (GH-110108)
* gh-110024: Fix Pointer Type Warnings (gh-110053)Eric Snow2023-09-291-8/+16
| | | The warnings were introduced by gh-109794 (for gh-109793).
* gh-109592: test_eintr tolerates 20 ms when comparing timings (#110102)Victor Stinner2023-09-291-7/+16
|
* gh-110031: Skip test_threading fork tests if ASAN (#110100)Victor Stinner2023-09-292-16/+27
| | | | Skip test_threading tests using thread+fork if Python is built with Address Sanitizer (ASAN).
* gh-109974: Fix more threading lock_tests race conditions (#110089)Victor Stinner2023-09-292-232/+257
| | | | | | | | | * Add context manager on Bunch class. * Bunch now catchs exceptions on executed functions and re-raise them at __exit__() as an ExceptionGroup. * Rewrite BarrierProxy.test_default_timeout(). Use a single thread. Only check that barrier.wait() blocks for at least default timeout seconds. * test_with(): inline _with() function.
* gh-105323: Update readline module to detect apple editline variant (gh-108665)Donghee Na2023-09-295-3/+38
|
* gh-110088, gh-109878: Fix test_asyncio timeouts (#110092)Victor Stinner2023-09-297-54/+19
| | | | | | Fix test_asyncio timeouts: don't measure the maximum duration, a test should not measure a CI performance. Only measure the minimum duration when a task has a timeout or delay. Add CLOCK_RES to test_asyncio.utils.
* gh-109634: Fix `:samp:` syntax (GH-110073)Jacob Coffee2023-09-293-3/+3
|
* gh-108716: make regen-global-objects no longer builds deepfreeze.c (#110078)Victor Stinner2023-09-292-11/+2
| | | Remove more references to now unused Python/deepfreeze/deepfreeze.c.
* gh-110079: Remove extern "C" { ...} in C code (#110080)Victor Stinner2023-09-2918-168/+6
|
* gh-101100: Fix references to ``URLError`` and ``HTTPError`` in ↵Yuki K2023-09-291-8/+8
| | | | | ``howto/urllib2.rst`` (#107966) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-101100: Fix Sphinx warnings in `tutorial/controlflow.rst` (#109424)Maciej Olko2023-09-292-3/+2
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-109961: Use proper `module` for `copy` method docs (#110027)Nikita Sobolev2023-09-291-2/+5
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-101100: Fix sphinx warnings in `library/difflib.rst` (#110074)Nikita Sobolev2023-09-292-10/+9
|
* gh-109868: Skip deepcopy memo check for empty memo (GH-109869)Pieter Eendebak2023-09-291-5/+5
|
* gh-110045: Update symtable module for PEP 695 (#110066)Jelle Zijlstra2023-09-295-5/+63
|
* gh-110052: Fix faulthandler for freed tstate (#110069)Victor Stinner2023-09-292-12/+38
| | | | faulthandler now detected freed interp and freed tstate, and no longer dereference them.
* gh-109566: regrtest _add_python_opts() handles KeyboardInterrupt (#110062)Victor Stinner2023-09-294-14/+33
| | | | | | | | | | In the subprocess code path, wait until the child process completes with a timeout of EXIT_TIMEOUT seconds. Fix create_worker_process() regression: use start_new_session=True if USE_PROCESS_GROUP is true. WorkerThread.wait_stopped() uses a timeout of 60 seconds, instead of 30 seconds.
* gh-110036: multiprocessing Popen.terminate() catches PermissionError (#110037)Victor Stinner2023-09-293-4/+17
| | | | | | On Windows, multiprocessing Popen.terminate() now catchs PermissionError and get the process exit code. If the process is still running, raise again the PermissionError. Otherwise, the process terminated as expected: store its exit code.
* gh-109974: Fix threading lock_tests race conditions (#110057)Victor Stinner2023-09-292-124/+226
| | | | | | | | | | | | | | | | | | | Fix race conditions in test_threading lock tests. Wait until a condition is met rather than using time.sleep() with a hardcoded number of seconds. * Replace sleeping loops with support.sleeping_retry() which raises an exception on timeout. * Add wait_threads_blocked(nthread) which computes a sleep depending on the number of threads. Remove _wait() function. * test_set_and_clear(): use a way longer Event.wait() timeout. * BarrierTests.test_repr(): wait until the 2 threads are waiting for the barrier. Use a way longer timeout for Barrier.wait() timeout. * test_thread_leak() no longer needs to count len(threading.enumerate()): Bunch uses threading_helper.wait_threads_exit() internally which does it in wait_for_finished(). * Add BaseLockTests.wait_phase() which implements a timeout. test_reacquire() and test_recursion_count() use wait_phase().
* gh-109960: Remove test_pty timeout of 10 seconds (#110058)Victor Stinner2023-09-291-11/+0
| | | | | | | | | | In 2003, test_pty got a hardcoded timeout of 10 seconds to prevent hanging on AIX & HPUX "if run after test_openpty": commit 7d8145268ee282f14d6adce9305dc3c1c7ffec14. Since 2003, test_pty was no longer reported to hang on AIX. But today, the test can fail simply because a CI is busy running other tests in parallel. The timeout of 10 seconds is no longer needed, just remove it. Moreover, regrtest now has multiple built-in generic timeout mecanisms.
* gh-109991: Remove obsolete NEWS entries for OpenSSL 3.0.10 (GH-110055)Zachary Ware2023-09-283-4/+0
|
* gh-109991: Update Windows build to use OpenSSL 3.0.11 (GH-110054)Zachary Ware2023-09-283-4/+5
|
* gh-109889: fix compiler's redundant NOP detection to look past NOPs with no ↵Irit Katriel2023-09-283-1/+18
| | | | lineno when looking for the next instruction's lineno (#109987)
* gh-110038: KqueueSelector must count all read/write events (#110039)Davide Rizzo2023-09-283-1/+38
|
* gh-110033: Fix signal test_interprocess_signal() (#110035)Victor Stinner2023-09-282-0/+13
| | | | | | | Fix test_interprocess_signal() of test_signal. Make sure that the subprocess.Popen object is deleted before the test raising an exception in a signal handler. Otherwise, Popen.__del__() can get the exception which is logged as "Exception ignored in: ...." and the test fails.
* gh-109972: Enhance test_gdb (#110026)Victor Stinner2023-09-288-218/+299
| | | | | | | | | | | | | | | | | | | | | | | | | * Split test_pycfunction.py: add test_cfunction_full.py. Split the function into the following 6 functions. In verbose mode, these "pycfunction" tests now log each tested call. * test_pycfunction_noargs() * test_pycfunction_o() * test_pycfunction_varargs() * test_pycfunction_varargs_keywords() * test_pycfunction_fastcall() * test_pycfunction_fastcall_keywords() * Move get_gdb_repr() to PrettyPrintTests. * Replace DebuggerTests.get_sample_script() with SAMPLE_SCRIPT. * Rename checkout_hook_path to CHECKOUT_HOOK_PATH. * Rename gdb_version to GDB_VERSION_TEXT. * Replace (gdb_major_version, gdb_minor_version) with GDB_VERSION. * run_gdb() uses "backslashreplace" error handler instead of "replace". * Add check_gdb() function to util.py. * Enhance support.check_cflags_pgo(): check also for sysconfig PGO_PROF_USE_FLAG (if available) in compiler flags. * Move some SkipTest checks to test_gdb/__init__.py. * Elaborate why gdb cannot be tested on Windows: gdb doesn't support PDB debug symbol files.
* Whitespace fix in asyncio-stream.rst (#110015)Davide Rizzo2023-09-281-2/+2
|
* gh-109782: Ensure `os.path.isdir` has the same signature on all platforms ↵Amin Alaee2023-09-283-13/+15
| | | | (GH-109790)
* gh-110020: Fix unused variable warnings in bytecodes.c (GH-110023)Nikita Sobolev2023-09-283-18/+9
|
* gh-109594: Fix concurrent.futures test_timeout() (#110018)Victor Stinner2023-09-282-8/+13
| | | | | | | | Fix test_timeout() of test_concurrent_futures.test_wait. Remove the future which may or may not complete depending if it takes longer than the timeout ot not. Keep the second future which does not complete before wait(). Make also the test faster: 0.5 second instead of 6 seconds, so remove @support.requires_resource('walltime') decorator.
* gh-109961: Docs: Fix incorrect rendering of `__replace__` in `copy.rst` ↵Nikita Sobolev2023-09-282-13/+21
| | | | (#109968)
* gh-109972: Split test_gdb.py into test_gdb package (#109977)Victor Stinner2023-09-2811-1066/+1124
| | | | | | | | | | | | | | Split test_gdb.py file into a test_gdb package made of multiple tests, so tests can now be run in parallel. * Create Lib/test/test_gdb/ directory. * Split test_gdb.py into multiple files in Lib/test/test_gdb/ directory. * Move Lib/test/gdb_sample.py to Lib/test/test_gdb/ directory. Update get_sample_script(): use __file__ to locate gdb_sample.py. * Move gdb_has_frame_select() and HAS_PYUP_PYDOWN to test_misc.py. * Explicitly skip test_gdb on Windows. Previously, test_gdb was skipped even if gdb was available because of gdb_has_frame_select().
* gh-109991: Update macOS installer to use OpenSSL 3.0.10. (GH-110003)Ned Deily2023-09-282-3/+4
|
* gh-109991: Update GitHub CI workflows to use OpenSSL 3.0.11 and ↵Ned Deily2023-09-283-7/+9
| | | | multissltests to use 1.1.1w, 3.0.11, and 3.1.3. (gh-110002)
* GH-109190: Copyedit 3.12 What's New: Bytecode (#109821)Adam Turner2023-09-282-8/+28
| | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-109812: Fix phrasing for `collections.Counter` (gh-109813)Jacob Coffee2023-09-282-1/+2
|