Browse Source

Avoid deprecated `self.assertEquals`

`self.assertEqual` is equivalent and does not issue a deprecation
warning.
Daniel Andersson 7 năm trước cách đây
mục cha
commit
c0c54d8bb3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      dulwich/tests/test_client.py

+ 1 - 1
dulwich/tests/test_client.py

@@ -147,7 +147,7 @@ class GitClientTests(TestCase):
         self.rin.seek(0)
 
         def check_heads(heads):
-            self.assertEquals({}, heads)
+            self.assertEqual({}, heads)
             return []
         ret = self.client.fetch_pack(b'bla', check_heads, None, None, None)
         self.assertEqual({}, ret.refs)