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
|
@ -1168,6 +1168,10 @@ def requires_limited_api(test):
|
|||
return unittest.skip('needs _testcapi and _testlimitedcapi modules')(test)
|
||||
return test
|
||||
|
||||
|
||||
TEST_MODULES_ENABLED = sysconfig.get_config_var('TEST_MODULES') == 'yes'
|
||||
|
||||
|
||||
def requires_specialization(test):
|
||||
return unittest.skipUnless(
|
||||
_opcode.ENABLE_SPECIALIZATION, "requires specialization")(test)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue