summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKirill Podoprigora <kirill.bast9@mail.ru>2024-04-11 14:19:19 (GMT)
committerGitHub <noreply@github.com>2024-04-11 14:19:19 (GMT)
commit91d7605ac3c15a185fd67921907cebaf0def1674 (patch)
tree71f9223985d3fad168a8854c14c0980177784887
parentbe82058064f34f3f3b9736927da2d3057838e70c (diff)
downloadcpython-91d7605ac3c15a185fd67921907cebaf0def1674.zip
cpython-91d7605ac3c15a185fd67921907cebaf0def1674.tar.gz
cpython-91d7605ac3c15a185fd67921907cebaf0def1674.tar.bz2
gh-115142: Skip ``test_capi/test_opt.py`` if ``_testinternalcapi`` is not available (GH-117574)
-rw-r--r--Lib/test/test_capi/test_opt.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_capi/test_opt.py b/Lib/test/test_capi/test_opt.py
index 7ca0f69..28d1873 100644
--- a/Lib/test/test_capi/test_opt.py
+++ b/Lib/test/test_capi/test_opt.py
@@ -6,9 +6,10 @@ import gc
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