mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -13,7 +13,7 @@ except ImportError:
|
|||
def with_tp_del(cls):
|
||||
class C(object):
|
||||
def __new__(cls, *args, **kwargs):
|
||||
raise TypeError('requires _testcapi.with_tp_del')
|
||||
raise unittest.SkipTest('requires _testcapi.with_tp_del')
|
||||
return C
|
||||
|
||||
try:
|
||||
|
@ -22,7 +22,7 @@ except ImportError:
|
|||
def without_gc(cls):
|
||||
class C:
|
||||
def __new__(cls, *args, **kwargs):
|
||||
raise TypeError('requires _testcapi.without_gc')
|
||||
raise unittest.SkipTest('requires _testcapi.without_gc')
|
||||
return C
|
||||
|
||||
from test import support
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue