Skip to content

Commit 14a9b48

Browse files
authored
bpo-40421: test_capi uses assertEqual(), not assertEquals() (GH-32361)
unittest.TestCase.assertEquals() alias is depracated. Fix the warning: Lib/test/test_capi.py:1100: DeprecationWarning: Please use assertEqual instead. self.assertEquals(frame.f_locals, _testcapi.frame_getlocals(frame))
1 parent 765f6de commit 14a9b48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_capi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ def getgenframe(self):
10971097

10981098
def test_frame_getters(self):
10991099
frame = self.getframe()
1100-
self.assertEquals(frame.f_locals, _testcapi.frame_getlocals(frame))
1100+
self.assertEqual(frame.f_locals, _testcapi.frame_getlocals(frame))
11011101
self.assertIs(frame.f_globals, _testcapi.frame_getglobals(frame))
11021102
self.assertIs(frame.f_builtins, _testcapi.frame_getbuiltins(frame))
11031103

0 commit comments

Comments
 (0)