https://github.com/python/cpython/commit/f8931adc597aa696a0f60439e8f9a9047d51ef1c
commit: f8931adc597aa696a0f60439e8f9a9047d51ef1c
branch: main
author: Kirill Podoprigora <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2024-02-09T18:59:41+02:00
summary:
gh-115142: Skip test_optimizer if _testinternalcapi module is not available
(GH-115175)
files:
M Lib/test/test_optimizer.py
diff --git a/Lib/test/test_optimizer.py b/Lib/test/test_optimizer.py
index b56bf3cfd9560e..c8554c40df4b2d 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):
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]