diff options
author | Victor Stinner <vstinner@python.org> | 2022-04-06 13:12:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-06 13:12:38 (GMT) |
commit | 14a9b4895b61bcd46ed968c43c5eec27670a0aac (patch) | |
tree | f9f8f64feb205a89bf05f940169370bdefb01e2f | |
parent | 765f6dee0fcf55c6ea258c2be4cc9dfb1b014f60 (diff) | |
download | cpython-14a9b4895b61bcd46ed968c43c5eec27670a0aac.zip cpython-14a9b4895b61bcd46ed968c43c5eec27670a0aac.tar.gz cpython-14a9b4895b61bcd46ed968c43c5eec27670a0aac.tar.bz2 |
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))
-rw-r--r-- | Lib/test/test_capi.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |