summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorKirill Podoprigora <kirill.bast9@mail.ru>2024-02-09 16:59:41 (GMT)
committerGitHub <noreply@github.com>2024-02-09 16:59:41 (GMT)
commitf8931adc597aa696a0f60439e8f9a9047d51ef1c (patch)
treec7da9efd49261d1effd7126ac55ae4137480dc19 /Lib
parent31633f4473966b3bcd470440bab7f348711be48f (diff)
downloadcpython-f8931adc597aa696a0f60439e8f9a9047d51ef1c.zip
cpython-f8931adc597aa696a0f60439e8f9a9047d51ef1c.tar.gz
cpython-f8931adc597aa696a0f60439e8f9a9047d51ef1c.tar.bz2
gh-115142: Skip test_optimizer if _testinternalcapi module is not available (GH-115175)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_optimizer.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_optimizer.py b/Lib/test/test_optimizer.py
index b56bf3c..c8554c4 100644
--- a/Lib/test/test_optimizer.py
+++ b/Lib/test/test_optimizer.py
@@ -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):