We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 966cce8 commit f2029b1Copy full SHA for f2029b1
tests/test_advice.py
@@ -93,7 +93,9 @@ def testCallInfo(self):
93
sys._getframe()
94
)
95
self.assertEqual(kind, "function call")
96
- self.assertTrue(f_locals is locals()) # ???
+ frame = sys._getframe()
97
+ self.assertEqual(f_locals, frame.f_locals)
98
+ self.assertEqual(f_locals, locals())
99
for d in module.__dict__, f_globals:
100
self.assertTrue(d is globals())
101
self.assertEqual(len(codeinfo), 4)
0 commit comments