mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
gh-133210: Fix test_types with --without-doc-strings (#139548)
This commit is contained in:
parent
1ae9250364
commit
18d4e2ecd4
1 changed files with 4 additions and 1 deletions
|
|
@ -714,7 +714,10 @@ def call(part):
|
|||
|
||||
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…
Add table
Add a link
Reference in a new issue