summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* gh-109818: `reprlib.recursive_repr` copies `__type_params__` (#109819)Nikita Sobolev2023-09-283-0/+14
|
* gh-104909: Split some more insts into ops (#109943)Guido van Rossum2023-09-278-115/+519
| | | | | | | | | | | | | | | | | | | | These are the most popular specializations of `LOAD_ATTR` and `STORE_ATTR` that weren't already viable uops: * Split LOAD_ATTR_METHOD_WITH_VALUES * Split LOAD_ATTR_METHOD_NO_DICT * Split LOAD_ATTR_SLOT * Split STORE_ATTR_SLOT * Split STORE_ATTR_INSTANCE_VALUE Also: * Add `-v` flag to code generator which prints a list of non-viable uops (easter-egg: it can print execution counts -- see source) * Double _Py_UOP_MAX_TRACE_LENGTH to 128 I had dropped one of the DEOPT_IF() calls! :-(
* gh-109955 : Update state transition comments for asyncio.Task (#109910)Kristján Valur Jónsson2023-09-271-7/+17
| | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-109793: Allow Switching Interpreters During Finalization (gh-109794)Eric Snow2023-09-277-3/+96
| | | Essentially, we should check the thread ID rather than the thread state pointer.
* Enhance TypedDict docs around required/optional keys (#109547)Jelle Zijlstra2023-09-271-0/+15
| | | | | | As discussed in comments to #109544, the semantics of this attribute are somewhat confusing. Add a note explaining its limitations and steering users towards __required_keys__ and __optional_keys__ instead.
* gh-109461: Update logging module lock to use context manager (#109462)Dale Collison2023-09-276-176/+81
| | | Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-109615: Fix support test_copy_python_src_ignore() on WASM (#109970)Victor Stinner2023-09-271-1/+9
| | | | Not only check if src_dir exists, but look also for Lib/os.py landmark.
* gh-109740: Use 't' in `--disable-gil` SOABI (#109922)Sam Gross2023-09-276-48/+71
| | | | Shared libraries for CPython 3.13 are now marked with a 't' for threading. For example, `binascii.cpython-313t-darwin.so`.
* GH-109190: Copyedit 3.12 What's New: Release highlights (#109770)Adam Turner2023-09-271-167/+254
|
* gh-109566: regrtest doesn't enable --rerun if --python is used (#109969)Victor Stinner2023-09-272-3/+12
| | | | regrtest: --fast-ci and --slow-ci options no longer enable --rerun if the --python option is used.
* gh-101100: Fix sphinx warnings in `library/devmode.rst` (#109963)Nikita Sobolev2023-09-272-3/+3
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-109923: set line number on the POP_TOP that follows a RETURN_GENERATOR ↵Irit Katriel2023-09-273-12/+9
| | | | (#109924)
* gh-109615: Fix support test_copy_python_src_ignore() (#109958)Victor Stinner2023-09-275-8/+30
| | | | | | | | | | Fix the test when run on an installed Python: use "abs_srcdir" of sysconfig, and skip the test if the Python source code cannot be found. * Tools/patchcheck/patchcheck.py, Tools/freeze/test/freeze.py and Lib/test/libregrtest/utils.py now first try to get "abs_srcdir" from sysconfig, before getting "srcdir" from sysconfig. * test.pythoninfo logs sysconfig "abs_srcdir".
* gh-109566: Fix regrtest Python options for WASM/WASI (#109954)Victor Stinner2023-09-273-8/+20
| | | | | WASM and WASI buildbots use multiple PYTHON environment variables such as PYTHONPATH and _PYTHON_HOSTRUNNER. Don't use -E if the --python=COMMAND option is used.
* gh-109565: Fix concurrent.futures test_future_times_out() (#109949)Victor Stinner2023-09-271-2/+5
| | | | as_completed() uses a timeout of 100 ms instead of 10 ms. Windows monotonic clock resolution is around 15.6 ms.
* gh-109615: Fix test_tools.test_freeze SRCDIR (#109935)Victor Stinner2023-09-275-56/+59
| | | | | | | | | Fix copy_source_tree() function of test_tools.test_freeze: * Don't copy SRC_DIR/build/ anymore. This directory is modified by other tests running in parallel. * Add test.support.copy_python_src_ignore(). * Use sysconfig to get the source directory. * Use sysconfig.get_config_var() to get CONFIG_ARGS variable.
* GH-109190: Copyedit 3.12 What's New: Deprecations (``os`` fix) (#109927)Adam Turner2023-09-271-15/+17
| | | Merge the two ``os`` entries
* Remove loop from docstring for asyncio.streams.open_connection (#108528)Tom Gillespie2023-09-271-3/+2
|
* gh-101100: Fix Sphinx warnings in Doc/using/configure.rst (#109931)Victor Stinner2023-09-272-9/+8
|
* gh-109098: Fuzz re module instead of internal sre (#109911)Ammar Askar2023-09-262-30/+21
| | | | | * gh-109098: Fuzz re module instead of internal sre * Fix c-analyzer globals test failure * Put globals exception in ignored.tsv
* gh-107888: Fix test_mmap.test_access_parameter() on macOS 14 (#109928)Victor Stinner2023-09-261-4/+9
|
* gh-109566: Fix regrtest code adding Python options (#109926)Victor Stinner2023-09-264-38/+62
| | | | | | * On Windows, use subprocess.run() instead of os.execv(). * Only add needed options * Rename reexec parameter to _add_python_opts. * Rename --no-reexec option to --dont-add-python-opts.