From: Victor Stinner Date: Wed, 6 Apr 2022 13:12:38 +0000 (+0200) Subject: bpo-40421: test_capi uses assertEqual(), not assertEquals() (GH-32361) X-Git-Tag: v3.11.0b1~451 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=14a9b4895b61bcd46ed968c43c5eec27670a0aac;p=thirdparty%2FPython%2Fcpython.git 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)) --- diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py index 238acf94526a..714a2d98e9fb 100644 --- a/Lib/test/test_capi.py +++ b/Lib/test/test_capi.py @@ -1097,7 +1097,7 @@ class Test_FrameAPI(unittest.TestCase): def test_frame_getters(self): frame = self.getframe() - self.assertEquals(frame.f_locals, _testcapi.frame_getlocals(frame)) + self.assertEqual(frame.f_locals, _testcapi.frame_getlocals(frame)) self.assertIs(frame.f_globals, _testcapi.frame_getglobals(frame)) self.assertIs(frame.f_builtins, _testcapi.frame_getbuiltins(frame))