From f56d0f631da58a8b1b1371331868e787e4aa0325 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Sat, 23 Jan 2021 08:51:46 +0100 Subject: [PATCH] Fix deprecation warnings --- tests/test_cwcwidth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_cwcwidth.py b/tests/test_cwcwidth.py index 334e5b8..5b76184 100644 --- a/tests/test_cwcwidth.py +++ b/tests/test_cwcwidth.py @@ -8,11 +8,11 @@ class Tests(unittest.TestCase): ): if expected_length is None: expected_length = sum(individual_expected_lengths) - self.assertEquals( + self.assertEqual( individual_expected_lengths, tuple(map(wcwidth, phrase if n is None else phrase[:n])), ) - self.assertEquals(expected_length, wcswidth(phrase, n)) + self.assertEqual(expected_length, wcswidth(phrase, n)) def test_hello_jp(self): """Width of Japanese phrase: コンニチハ, セカイ!"""