mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Adapt test for build --without-doc-strings.
This commit is contained in:
parent
c59c85c1ac
commit
4216aa1e52
2 changed files with 6 additions and 0 deletions
|
@ -925,6 +925,7 @@ class AssortedBytesTest(unittest.TestCase):
|
|||
self.assertEqual(bytes(b"abc") < b"ab", False)
|
||||
self.assertEqual(bytes(b"abc") <= b"ab", False)
|
||||
|
||||
@test.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