2
0
Эх сурвалжийг харах

Allow ValueError to be raised when checking for merge entries errors.

Jelmer Vernooij 10 жил өмнө
parent
commit
4ca1031abd

+ 1 - 1
dulwich/tests/test_diff_tree.py

@@ -96,7 +96,7 @@ class TreeChangesTest(DiffTestCase):
     def assertMergeFails(self, merge_entries, name, mode, sha):
         t = Tree()
         t[name] = (mode, sha)
-        self.assertRaises(TypeError, merge_entries, '', t, t)
+        self.assertRaises((TypeError, ValueError), merge_entries, '', t, t)
 
     def _do_test_merge_entries(self, merge_entries):
         blob_a1 = make_object(Blob, data=b'a1')