瀏覽代碼

Fix tests on python3.

Jelmer Vernooij 7 年之前
父節點
當前提交
3b05aae012
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      dulwich/tests/test_repository.py

+ 2 - 2
dulwich/tests/test_repository.py

@@ -665,8 +665,8 @@ class BuildRepoRootTests(TestCase):
     def test_shallow(self):
         self.assertEqual(set(), self._repo.get_shallow())
         with open(os.path.join(self._repo.path, '.git', 'shallow'), 'wb') as f:
-            f.write('a90fa2d900a17e99b433217e988c4eb4a2e9a097\n')
-        self.assertEqual({'a90fa2d900a17e99b433217e988c4eb4a2e9a097'},
+            f.write(b'a90fa2d900a17e99b433217e988c4eb4a2e9a097\n')
+        self.assertEqual({b'a90fa2d900a17e99b433217e988c4eb4a2e9a097'},
                          self._repo.get_shallow())
 
     def test_build_repo(self):