Преглед изворни кода

Merge pull request #30 from tirkarthi/fix-assert

Refactor deprecated unittest aliases for Python 3.11 compatibility.
luozhouyang пре 4 година
родитељ
комит
115acaacf9
1 измењених фајлова са 1 додато и 1 уклоњено
  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__":