mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-118351: Adapt support.TEST_MODULES_ENABLED for builds without the config variable (GH-118354)
This commit is contained in:
parent
44f57a952e
commit
51c70de998
2 changed files with 7 additions and 4 deletions
|
@ -1181,8 +1181,9 @@ def requires_limited_api(test):
|
|||
return test
|
||||
|
||||
|
||||
TEST_MODULES_ENABLED = sysconfig.get_config_var('TEST_MODULES') == 'yes'
|
||||
|
||||
# Windows build doesn't support --disable-test-modules feature, so there's no
|
||||
# 'TEST_MODULES' var in config
|
||||
TEST_MODULES_ENABLED = (sysconfig.get_config_var('TEST_MODULES') or 'yes') == 'yes'
|
||||
|
||||
def requires_specialization(test):
|
||||
return unittest.skipUnless(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue