Browse Source

Support Tree.iteritems() returning an iterator rather than a list.

Jelmer Vernooij 15 năm trước cách đây
mục cha
commit
92eddbdaaa
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      dulwich/tests/test_repository.py

+ 1 - 1
dulwich/tests/test_repository.py

@@ -404,7 +404,7 @@ class BuildRepoTests(TestCase):
         self.assertEqual([self._root_commit], r[commit_sha].parents)
         self.assertEqual([], list(r.open_index()))
         tree = r[r[commit_sha].tree]
-        self.assertEqual([], tree.iteritems())
+        self.assertEqual([], list(tree.iteritems()))
 
     def test_commit_fail_ref(self):
         r = self._repo