diff --git a/tests/test_advice.py b/tests/test_advice.py index df2f5c0..d2a5a8d 100644 --- a/tests/test_advice.py +++ b/tests/test_advice.py @@ -93,7 +93,9 @@ def testCallInfo(self): sys._getframe() ) self.assertEqual(kind, "function call") - self.assertTrue(f_locals is locals()) # ??? + frame = sys._getframe() + self.assertEqual(f_locals, frame.f_locals) + self.assertEqual(f_locals, locals()) for d in module.__dict__, f_globals: self.assertTrue(d is globals()) self.assertEqual(len(codeinfo), 4)