From dcfe79e8a7e11538368f6848ea852958af026976 Mon Sep 17 00:00:00 2001 From: Kirill Podoprigora Date: Fri, 8 Mar 2024 20:29:36 +0200 Subject: [PATCH] Skip test if module _testinternalcapi is not available --- Lib/test/test__xxsubinterpreters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test__xxsubinterpreters.py b/Lib/test/test__xxsubinterpreters.py index a76e4d0ade5b8a..35d7355680e549 100644 --- a/Lib/test/test__xxsubinterpreters.py +++ b/Lib/test/test__xxsubinterpreters.py @@ -7,7 +7,6 @@ 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 @@ interpreters = import_helper.import_module('_xxsubinterpreters') +_testinternalcapi = import_helper.import_module('_testinternalcapi') from _xxsubinterpreters import InterpreterNotFoundError