Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c4a10f5

Browse files
author
Stefan Krah
committed
Merge 3.3.
2 parents f86e484 + 6e572b8 commit c4a10f5

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

Lib/test/support.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,10 @@ def _is_ipv6_enabled():
597597

598598
requires_lzma = unittest.skipUnless(lzma, 'requires lzma')
599599

600+
requires_docstrings = unittest.skipUnless(
601+
sysconfig.get_config_var('WITH_DOC_STRINGS'),
602+
"test requires docstrings")
603+
600604
is_jython = sys.platform.startswith('java')
601605

602606
# Filename used for testing

Lib/test/test_bytes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,6 +1172,7 @@ def test_compare_bytes_to_bytearray(self):
11721172
self.assertEqual(bytes(b"abc") < b"ab", False)
11731173
self.assertEqual(bytes(b"abc") <= b"ab", False)
11741174

1175+
@test.support.requires_docstrings
11751176
def test_doc(self):
11761177
self.assertIsNotNone(bytearray.__doc__)
11771178
self.assertTrue(bytearray.__doc__.startswith("bytearray("), bytearray.__doc__)

0 commit comments

Comments
 (0)