mirror of https://github.com/python/cpython
gh-115142: Skip ``test_capi/test_opt.py`` if ``_testinternalcapi`` is not available (GH-117574)
This commit is contained in:
parent
be82058064
commit
91d7605ac3
|
@ -6,9 +6,10 @@ import gc
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import _opcode
|
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
|
from _testinternalcapi import TIER2_THRESHOLD
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue