Fix deprecation warnings
This commit is contained in:
parent
98ddaecfd8
commit
f56d0f631d
1 changed files with 2 additions and 2 deletions
|
|
@ -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: コンニチハ, セカイ!"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue