mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Mitigate #19412: restore test skips for --without-doc-strings
This commit is contained in:
parent
77353664e2
commit
624a74e4b7
1 changed files with 6 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue