]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-115142: Skip ``test__xxsubinterpreters`` if ``_testcapi`` is not available...
authorKirill Podoprigora <kirill.bast9@mail.ru>
Sat, 9 Mar 2024 14:06:24 +0000 (16:06 +0200)
committerGitHub <noreply@github.com>
Sat, 9 Mar 2024 14:06:24 +0000 (14:06 +0000)
Lib/test/test__xxsubinterpreters.py

index 1ee18774d1720960c6da44b7d6c017961d418c38..e8a386c0e6fb94396ccad6c81f0543dcab4284d2 100644 (file)
@@ -7,14 +7,13 @@ from textwrap import dedent
 import threading
 import unittest
 
-import _testcapi
 from test import support
 from test.support import import_helper
 from test.support import script_helper
 
 
 interpreters = import_helper.import_module('_xxsubinterpreters')
-
+_testcapi = import_helper.import_module('_testcapi')
 
 ##################################
 # helpers