summaryrefslogtreecommitdiffstats
path: root/Lib/test/support.py
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2013-01-26 12:06:36 (GMT)
committerStefan Krah <skrah@bytereef.org>2013-01-26 12:06:36 (GMT)
commit6e572b8b2e34bc88d0485c1ed1c0e4a5157e3a62 (patch)
tree67b656e4852477e751a17f54f26ebb0de78ca603 /Lib/test/support.py
parent244b6873743e8eb21c8bcd73a34ec40d300740c0 (diff)
downloadcpython-6e572b8b2e34bc88d0485c1ed1c0e4a5157e3a62.zip
cpython-6e572b8b2e34bc88d0485c1ed1c0e4a5157e3a62.tar.gz
cpython-6e572b8b2e34bc88d0485c1ed1c0e4a5157e3a62.tar.bz2
Adapt test_bytes for a build --without-doc-strings.
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 1e3aef0..d44436b 100644
--- a/Lib/test/support.py
+++ b/Lib/test/support.py
@@ -590,6 +590,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