From: Kirill Podoprigora Date: Sat, 9 Mar 2024 13:28:13 +0000 (+0200) Subject: gh-115142: Skip ``test__xxsubinterpreters`` if ``_testinternalcapi`` is not available... X-Git-Tag: v3.13.0a5~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b9cb855621c0813846421e4ced97260a32e57063;p=thirdparty%2FPython%2Fcpython.git gh-115142: Skip ``test__xxsubinterpreters`` if ``_testinternalcapi`` is not available (#116507) --- diff --git a/Lib/test/test__xxsubinterpreters.py b/Lib/test/test__xxsubinterpreters.py index a76e4d0ade5b..35d7355680e5 100644 --- a/Lib/test/test__xxsubinterpreters.py +++ b/Lib/test/test__xxsubinterpreters.py @@ -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