Skip to content

Commit 06ced70

Browse files
sobolevndanigm
authored andcommitted
pythongh-133210: Fix test_types with --without-doc-strings (python#139548)
1 parent 8bce40d commit 06ced70

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/test/test_types.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,10 @@ def call(part):
714714

715715
def test_frame_locals_proxy_type(self):
716716
self.assertIsInstance(types.FrameLocalsProxyType, type)
717-
self.assertIsInstance(types.FrameLocalsProxyType.__doc__, str)
717+
if MISSING_C_DOCSTRINGS:
718+
self.assertIsNone(types.FrameLocalsProxyType.__doc__)
719+
else:
720+
self.assertIsInstance(types.FrameLocalsProxyType.__doc__, str)
718721
self.assertEqual(types.FrameLocalsProxyType.__module__, 'builtins')
719722
self.assertEqual(types.FrameLocalsProxyType.__name__, 'FrameLocalsProxy')
720723

0 commit comments

Comments
 (0)