diff options
Diffstat (limited to 'Lib/test')
| -rw-r--r-- | Lib/test/support.py | 4 | ||||
| -rw-r--r-- | Lib/test/test_bytes.py | 1 |
2 files changed, 5 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 diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py index acf9daf379..f12f911428 100644 --- a/Lib/test/test_bytes.py +++ b/Lib/test/test_bytes.py @@ -1172,6 +1172,7 @@ class AssortedBytesTest(unittest.TestCase): self.assertEqual(bytes(b"abc") < b"ab", False) self.assertEqual(bytes(b"abc") <= b"ab", False) + @test.support.requires_docstrings def test_doc(self): self.assertIsNotNone(bytearray.__doc__) self.assertTrue(bytearray.__doc__.startswith("bytearray("), bytearray.__doc__) |
