]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-115142: Skip test_optimizer if _testinternalcapi module is not available (GH-115175)
authorKirill Podoprigora <kirill.bast9@mail.ru>
Fri, 9 Feb 2024 16:59:41 +0000 (19:59 +0300)
committerGitHub <noreply@github.com>
Fri, 9 Feb 2024 16:59:41 +0000 (18:59 +0200)
Lib/test/test_optimizer.py

index b56bf3cfd9560eadc6d09d1434b97175cb470a7b..c8554c40df4b2deac9467bbba178eee06c6efefb 100644 (file)
@@ -1,6 +1,9 @@
-import _testinternalcapi
 import unittest
 import types
+from test.support import import_helper
+
+
+_testinternalcapi = import_helper.import_module("_testinternalcapi")
 
 
 class TestRareEventCounters(unittest.TestCase):