mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Adapt test_bytes for a build --without-doc-strings.
This commit is contained in:
parent
244b687374
commit
6e572b8b2e
2 changed files with 5 additions and 0 deletions
|
@ -1158,6 +1158,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__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue