mirror of
https://github.com/python/cpython.git
synced 2025-09-02 23:18:25 +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
|
@ -11,6 +11,10 @@ from test import support
|
|||
from test.support import import_helper
|
||||
from test.support import warnings_helper
|
||||
from test.support.script_helper import assert_python_ok
|
||||
try:
|
||||
import _testcapi
|
||||
except ImportError:
|
||||
_testcapi = None
|
||||
|
||||
|
||||
class AsyncYieldFrom:
|
||||
|
@ -2445,6 +2449,7 @@ class UnawaitedWarningDuringShutdownTest(unittest.TestCase):
|
|||
|
||||
|
||||
@support.cpython_only
|
||||
@unittest.skipIf(_testcapi is None, "requires _testcapi")
|
||||
class CAPITest(unittest.TestCase):
|
||||
|
||||
def test_tp_await_1(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue