Skip to content

Commit 91d7605

Browse files
authored
gh-115142: Skip test_capi/test_opt.py if _testinternalcapi is not available (GH-117574)
1 parent be82058 commit 91d7605

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/test/test_capi/test_opt.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
import os
77

88
import _opcode
9-
import _testinternalcapi
109

11-
from test.support import script_helper, requires_specialization
10+
from test.support import script_helper, requires_specialization, import_helper
11+
12+
_testinternalcapi = import_helper.import_module("_testinternalcapi")
1213

1314
from _testinternalcapi import TIER2_THRESHOLD
1415

0 commit comments

Comments
 (0)