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

index a76e4d0ade5b8ae46c16571328ce823363499c89..35d7355680e549f8131dd221d640864025ad485a 100644 (file)
@@ -7,7 +7,6 @@ from textwrap import dedent
 import threading
 import unittest
 
-import _testinternalcapi
 from test import support
 from test.support import import_helper
 from test.support import os_helper
@@ -15,6 +14,7 @@ from test.support import script_helper
 
 
 interpreters = import_helper.import_module('_xxsubinterpreters')
+_testinternalcapi = import_helper.import_module('_testinternalcapi')
 from _xxsubinterpreters import InterpreterNotFoundError