瀏覽代碼

Fix tests on Python3.

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

+ 1 - 1
dulwich/tests/test_index.py

@@ -484,7 +484,7 @@ class TestTreeFSPathConversion(TestCase):
 
     def test_tree_to_fs_path(self):
         tree_path = u'délwíçh/foo'.encode('utf8')
-        fs_path = _tree_to_fs_path('/prefix/path', tree_path)
+        fs_path = _tree_to_fs_path(b'/prefix/path', tree_path)
         self.assertEqual(
             fs_path,
             os.path.join(u'/prefix/path', u'délwíçh', u'foo').encode('utf8'))