mirror of
https://github.com/python/cpython.git
synced 2026-01-26 21:03:34 +00:00
gh-133210: Fix test_types with --without-doc-strings (#139548)
This commit is contained in:
parent
1ae9250364
commit
18d4e2ecd4
@ -714,7 +714,10 @@ class TypesTests(unittest.TestCase):
|
||||
|
||||
def test_frame_locals_proxy_type(self):
|
||||
self.assertIsInstance(types.FrameLocalsProxyType, type)
|
||||
self.assertIsInstance(types.FrameLocalsProxyType.__doc__, str)
|
||||
if MISSING_C_DOCSTRINGS:
|
||||
self.assertIsNone(types.FrameLocalsProxyType.__doc__)
|
||||
else:
|
||||
self.assertIsInstance(types.FrameLocalsProxyType.__doc__, str)
|
||||
self.assertEqual(types.FrameLocalsProxyType.__module__, 'builtins')
|
||||
self.assertEqual(types.FrameLocalsProxyType.__name__, 'FrameLocalsProxy')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user