File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/zope/interface/common/tests Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,10 @@ def test_UserString(self):
101
101
add_abc_interface_tests (TestVerifyClass , collections .ISet .__module__ )
102
102
103
103
104
+ def _get_FrameLocalsProxy ():
105
+ return type (sys ._getframe ().f_locals )
106
+
107
+
104
108
class TestVerifyObject (VerifyObjectMixin ,
105
109
TestVerifyClass ):
106
110
CONSTRUCTORS = {
@@ -130,11 +134,8 @@ class TestVerifyObject(VerifyObjectMixin,
130
134
}
131
135
if sys .version_info >= (3 , 13 ):
132
136
def FrameLocalsProxy_constructor ():
133
- FrameLocalsProxy = type ([sys ._getframe ().f_locals for x in
134
- range (1 )][0 ])
135
- return FrameLocalsProxy (sys ._getframe ())
136
- FrameLocalsProxy = type ([sys ._getframe ().f_locals for x in
137
- range (1 )][0 ])
137
+ return _get_FrameLocalsProxy ()(sys ._getframe ())
138
+ FrameLocalsProxy = _get_FrameLocalsProxy ()
138
139
CONSTRUCTORS [FrameLocalsProxy ] = FrameLocalsProxy_constructor
139
140
140
141
UNVERIFIABLE_RO = {
You can’t perform that action at this time.
0 commit comments