diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2013-10-27 04:19:12 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2013-10-27 04:19:12 (GMT) |
commit | 624a74e4b775c93293f5dece9f6ed8407d2aec9f (patch) | |
tree | 6d85653996880a9d254899dfb5a443a3841f79d0 /Lib/test/support | |
parent | 77353664e2fc0489bb18e2644d36b67ddea2ceef (diff) | |
download | cpython-624a74e4b775c93293f5dece9f6ed8407d2aec9f.zip cpython-624a74e4b775c93293f5dece9f6ed8407d2aec9f.tar.gz cpython-624a74e4b775c93293f5dece9f6ed8407d2aec9f.tar.bz2 |
Mitigate #19412: restore test skips for --without-doc-strings
Diffstat (limited to 'Lib/test/support')
-rw-r--r-- | Lib/test/support/__init__.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 1b20fa7..23d015c 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -1703,7 +1703,12 @@ def run_unittest(*classes): def _check_docstrings(): """Just used to check if docstrings are enabled""" -HAVE_DOCSTRINGS = (_check_docstrings.__doc__ is not None) +MISSING_C_DOCSTRINGS = (check_impl_detail() and + sys.platform != 'win32' and + not sysconfig.get_config_var('WITH_DOC_STRINGS')) + +HAVE_DOCSTRINGS = (_check_docstrings.__doc__ is not None and + not MISSING_C_DOCSTRINGS) requires_docstrings = unittest.skipUnless(HAVE_DOCSTRINGS, "test requires docstrings") |