File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -597,6 +597,10 @@ def _is_ipv6_enabled():
597597
598598requires_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+
600604is_jython = sys .platform .startswith ('java' )
601605
602606# Filename used for testing
Original file line number Diff line number Diff 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__ )
You can’t perform that action at this time.
0 commit comments