Skip to content

Commit e0f674d

Browse files
committed
Revert "Fix type name in test_frame."
This reverts commit 58e8577.
1 parent bdabeaf commit e0f674d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/test/test_frame.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,8 +577,9 @@ class ObjectSubclass:
577577
proxy[obj] = 0
578578

579579
def test_constructor(self):
580-
from types import FrameLocalsProxyType as FrameLocalsProxy
581-
self.assertEqual(FrameLocalsProxy.__name__, 'FrameLocalsProxyType')
580+
FrameLocalsProxy = type([sys._getframe().f_locals
581+
for x in range(1)][0])
582+
self.assertEqual(FrameLocalsProxy.__name__, 'FrameLocalsProxy')
582583

583584
def make_frame():
584585
x = 1

0 commit comments

Comments
 (0)