Browse Source

Merge pull request #30 from tirkarthi/fix-assert

Refactor deprecated unittest aliases for Python 3.11 compatibility.
luozhouyang 4 năm trước cách đây
mục cha
commit
115acaacf9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      strsimpy/sift4_test.py

+ 1 - 1
strsimpy/sift4_test.py

@@ -14,7 +14,7 @@ class SIFT4Test(unittest.TestCase):
         ]
 
         for a, b, offset, res in results:
-            self.assertEquals(res, s.distance(a, b, maxoffset=offset))
+            self.assertEqual(res, s.distance(a, b, maxoffset=offset))
 
 
 if __name__ == "__main__":