diff options
author | Stefan Krah <skrah@bytereef.org> | 2013-01-26 13:07:36 +0100 |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2013-01-26 13:07:36 +0100 |
commit | c4a10f59703e91e5085f927e98a84d82831e3d9c (patch) | |
tree | c68346a677809da223b0109d9117a4450c2c00db /Lib | |
parent | f86e484ef2dc6b1d164a2d1c168e46b67bccc7e9 (diff) | |
parent | 6e572b8b2e34bc88d0485c1ed1c0e4a5157e3a62 (diff) | |
download | cpython-git-c4a10f59703e91e5085f927e98a84d82831e3d9c.tar.gz |
Merge 3.3.
Diffstat (limited to 'Lib')
-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__) |