Issue #17041: Fix testing when Python is configured with the
--without-doc-strings.
diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py
index 89e2274..ba40915 100644
--- a/Lib/test/test_bytes.py
+++ b/Lib/test/test_bytes.py
@@ -986,6 +986,7 @@
         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__)