diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2024-04-02 17:16:50 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-02 23:16:50 +0000 |
commit | 857d3151c9efa029268e8249e91d26eb1b31c2fd (patch) | |
tree | f2a6b3d675c1141dee34711334e483fac6b96aeb /Lib/test/test_importlib/test_util.py | |
parent | f341d6017dd4e80509b69b5a9e2625b71b70f205 (diff) | |
download | cpython-857d3151c9efa029268e8249e91d26eb1b31c2fd.tar.gz cpython-857d3151c9efa029268e8249e91d26eb1b31c2fd.zip |
gh-76785: Consolidate Some Interpreter-related Testing Helpers (gh-117485)
This eliminates the duplication of functionally identical helpers in the _testinternalcapi and _xxsubinterpreters modules.
Diffstat (limited to 'Lib/test/test_importlib/test_util.py')
-rw-r--r-- | Lib/test/test_importlib/test_util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_importlib/test_util.py b/Lib/test/test_importlib/test_util.py index a6a76e58976..115cb7a56c9 100644 --- a/Lib/test/test_importlib/test_util.py +++ b/Lib/test/test_importlib/test_util.py @@ -656,7 +656,7 @@ class MagicNumberTests(unittest.TestCase): class IncompatibleExtensionModuleRestrictionsTests(unittest.TestCase): def run_with_own_gil(self, script): - interpid = _interpreters.create(isolated=True) + interpid = _interpreters.create('isolated') def ensure_destroyed(): try: _interpreters.destroy(interpid) @@ -669,7 +669,7 @@ class IncompatibleExtensionModuleRestrictionsTests(unittest.TestCase): raise ImportError(excsnap.msg) def run_with_shared_gil(self, script): - interpid = _interpreters.create(isolated=False) + interpid = _interpreters.create('legacy') def ensure_destroyed(): try: _interpreters.destroy(interpid) |