mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-116303: Skip test module dependent tests if test modules are unavailable (#117341)
This commit is contained in:
parent
2ec6bb4111
commit
ea94b3b149
57 changed files with 255 additions and 123 deletions
|
@ -275,7 +275,10 @@ def gen_ctypes_test(manifest, args, outfile):
|
|||
import sys
|
||||
import unittest
|
||||
from test.support.import_helper import import_module
|
||||
from _testcapi import get_feature_macros
|
||||
try:
|
||||
from _testcapi import get_feature_macros
|
||||
except ImportError:
|
||||
raise unittest.SkipTest("requires _testcapi")
|
||||
|
||||
feature_macros = get_feature_macros()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue