gh-115142: Skip ``test_capi/test_opt.py`` if ``_testinternalcapi`` is not available (GH-117574)

This commit is contained in:
Kirill Podoprigora 2024-04-11 17:19:19 +03:00 committed by GitHub
parent be82058064
commit 91d7605ac3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -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