summaryrefslogtreecommitdiff
path: root/Lib/test/support.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/support.py')
-rw-r--r--Lib/test/support.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py
index dab0f1b90b..a4d030aeac 100644
--- a/Lib/test/support.py
+++ b/Lib/test/support.py
@@ -597,6 +597,10 @@ requires_bz2 = unittest.skipUnless(bz2, 'requires bz2')
requires_lzma = unittest.skipUnless(lzma, 'requires lzma')
+requires_docstrings = unittest.skipUnless(
+ sysconfig.get_config_var('WITH_DOC_STRINGS'),
+ "test requires docstrings")
+
is_jython = sys.platform.startswith('java')
# Filename used for testing