We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22c2bbe commit 58e8577Copy full SHA for 58e8577
Lib/test/test_frame.py
@@ -577,9 +577,8 @@ class ObjectSubclass:
577
proxy[obj] = 0
578
579
def test_constructor(self):
580
- FrameLocalsProxy = type([sys._getframe().f_locals
581
- for x in range(1)][0])
582
- self.assertEqual(FrameLocalsProxy.__name__, 'FrameLocalsProxy')
+ from types import FrameLocalsProxyType as FrameLocalsProxy
+ self.assertEqual(FrameLocalsProxy.__name__, 'FrameLocalsProxyType')
583
584
def make_frame():
585
x = 1
0 commit comments