summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_interpreters/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.14] gh-134939: Add the concurrent.interpreters Module (gh-135414)Eric Snow2025-06-121-1/+1
| | | | | | | | PEP-734 has been accepted (for 3.14). (FTR, I'm opposed to putting this under the concurrent package, but doing so is the SC condition under which the module can land in 3.14.) (cherry picked from commit 62143736b, AKA gh-133958)
* gh-128770: raise warnings as errors in test suite - except for test_socket ↵Thomas Grainger2025-03-271-2/+3
| | | | | which still logs warnings, and internal test warnings that are now logged (#128973) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-120417: Remove unused imports in tests (part 3) (#120631)Victor Stinner2024-06-171-4/+1
|
* gh-76785: Rename _xxsubinterpreters to _interpreters (gh-117791)Eric Snow2024-04-241-1/+1
| | | See https://discuss.python.org/t/pep-734-multiple-interpreters-in-the-stdlib/41147/26.
* gh-76785: Fix Windows Refleak in test_interpreters (gh-117913)Eric Snow2024-04-161-3/+7
| | | gh-117662 introduced some refleaks, or, rather, exposed some existing refleaks. The leaks are coming when test.support.os_helper is imported in a "legacy" interpreter. I've updated test.test_interpreters.utils to avoid importing os_helper, which fixes the leaks. I'll address the root cause separately.
* gh-76785: Handle Legacy Interpreters Properly (gh-117490)Eric Snow2024-04-111-1/+14
| | | This is similar to the situation with threading._DummyThread. The methods (incl. __del__()) of interpreters.Interpreter objects must be careful with interpreters not created by interpreters.create(). The simplest thing to start with is to disable any method that modifies or runs in the interpreter. As part of this, the runtime keeps track of where an interpreter was created. We also handle interpreter "refcounts" properly.
* gh-76785: Add More Tests to test_interpreters.test_api (gh-117662)Eric Snow2024-04-111-14/+509
| | | In addition to the increase test coverage, this is a precursor to sorting out how we handle interpreters created directly via the C-API.
* gh-76785: Consolidate Some Interpreter-related Testing Helpers (gh-117485)Eric Snow2024-04-021-2/+19
| | | This eliminates the duplication of functionally identical helpers in the _testinternalcapi and _xxsubinterpreters modules.
* gh-76785: Update test.support.interpreters to Align With PEP 734 (gh-115566)Eric Snow2024-02-281-3/+16
| | | | | This brings the code under test.support.interpreters, and the corresponding extension modules, in line with recent updates to PEP 734. (Note: PEP 734 has not been accepted at this time. However, we are using an internal copy of the implementation in the test suite to exercise the existing subinterpreters feature.)
* gh-76785: Show the Traceback for Uncaught Subinterpreter Exceptions (gh-113034)Eric Snow2023-12-131-0/+72
| | | When an exception is uncaught in Interpreter.exec_sync(), it helps to show that exception's error display if uncaught in the calling interpreter. We do so here by generating a TracebackException in the subinterpreter and passing it between interpreters using pickle.
* gh-76785: Add Interpreter.prepare_main() (gh-113021)Eric Snow2023-12-121-2/+4
| | | This is one of the last pieces to get test.support.interpreters in sync with PEP 734.
* gh-76785: Fixes for test.support.interpreters (gh-112982)Eric Snow2023-12-121-0/+73
This involves a number of changes for PEP 734.