diff options
author | Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com> | 2022-03-07 07:32:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-07 07:32:51 (GMT) |
commit | b748a36696ca56ed4ffcfae011a8488878eb2b3a (patch) | |
tree | a32a804bf83570fa3ae32d69c6f4c9f54878fb1e | |
parent | e38d0dfe92c28e081a46a5a858ac26bd6a14aded (diff) | |
download | cpython-b748a36696ca56ed4ffcfae011a8488878eb2b3a.zip cpython-b748a36696ca56ed4ffcfae011a8488878eb2b3a.tar.gz cpython-b748a36696ca56ed4ffcfae011a8488878eb2b3a.tar.bz2 |
Use assertEqual, not assertEquals, in test_unicode (GH-31718)
Fixes a DeprecationWarning
-rw-r--r-- | Lib/test/test_unicode.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index e97f971..df7afd5 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -3055,18 +3055,18 @@ class StringModuleTest(unittest.TestCase): with self.assertRaises(AttributeError): delattr(o, name) setattr(o, name, 1) - self.assertEquals(o.name, 1) + self.assertEqual(o.name, 1) o.name = 2 - self.assertEquals(list(o.__dict__), [name]) + self.assertEqual(list(o.__dict__), [name]) with self.assertRaises(AttributeError): delattr(o, name2) with self.assertRaises(AttributeError): del o.name2 setattr(o, name2, 3) - self.assertEquals(o.name2, 3) + self.assertEqual(o.name2, 3) o.name2 = 4 - self.assertEquals(list(o.__dict__), [name, name2]) + self.assertEqual(list(o.__dict__), [name, name2]) if __name__ == "__main__": |