Skip to content
Prev Previous commit
Next Next commit
Use assertIsNone
  • Loading branch information
kumaraditya303 authored Dec 23, 2022
commit 35a4c5820d3d7eb41995f49f5140249145aa8743
2 changes: 1 addition & 1 deletion Lib/test/test_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def dummy():

frame = _testcapi.frame_new(dummy.__code__, globals(), locals())
# The following line should not cause a segmentation fault.
self.assertEqual(frame.f_back, None)
self.assertIsNone(frame.f_back)

if __name__ == "__main__":
unittest.main()