https://github.com/python/cpython/commit/91d7605ac3c15a185fd67921907cebaf0def1674
commit: 91d7605ac3c15a185fd67921907cebaf0def1674
branch: main
author: Kirill Podoprigora <[email protected]>
committer: encukou <[email protected]>
date: 2024-04-11T16:19:19+02:00
summary:
gh-115142: Skip ``test_capi/test_opt.py`` if ``_testinternalcapi`` is not
available (GH-117574)
files:
M Lib/test/test_capi/test_opt.py
diff --git a/Lib/test/test_capi/test_opt.py b/Lib/test/test_capi/test_opt.py
index 7ca0f6927fe4a1..28d18739b6d4a5 100644
--- a/Lib/test/test_capi/test_opt.py
+++ b/Lib/test/test_capi/test_opt.py
@@ -6,9 +6,10 @@
import os
import _opcode
-import _testinternalcapi
-from test.support import script_helper, requires_specialization
+from test.support import script_helper, requires_specialization, import_helper
+
+_testinternalcapi = import_helper.import_module("_testinternalcapi")
from _testinternalcapi import TIER2_THRESHOLD
_______________________________________________
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]