From: Kirill Podoprigora Date: Sat, 9 Mar 2024 14:06:24 +0000 (+0200) Subject: [3.12] gh-115142: Skip ``test__xxsubinterpreters`` if ``_testcapi`` is not available... X-Git-Tag: v3.12.3~127 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f21f033c92a119a79964382f198d14d5d1a05d8;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-115142: Skip ``test__xxsubinterpreters`` if ``_testcapi`` is not available (#116543) --- diff --git a/Lib/test/test__xxsubinterpreters.py b/Lib/test/test__xxsubinterpreters.py index 1ee18774d172..e8a386c0e6fb 100644 --- a/Lib/test/test__xxsubinterpreters.py +++ b/Lib/test/test__xxsubinterpreters.py @@ -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