From 14a9b4895b61bcd46ed968c43c5eec27670a0aac Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 6 Apr 2022 15:12:38 +0200 Subject: 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)) --- Lib/test/test_capi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py index 238acf9..714a2d9 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)) -- cgit v0.12