浏览代码

fix python3.6

Jelmer Vernooij 3 年之前
父节点
当前提交
092728bc99
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      dulwich/tests/test_repository.py

+ 3 - 1
dulwich/tests/test_repository.py

@@ -656,7 +656,9 @@ with open('foo', 'w') as f:
 
 r = Repo('.')
 r.stage(['foo'])
-""" % {'executable': sys.executable, 'path': sys.path}
+""" % {
+            'executable': sys.executable,
+            'path': [os.path.join(os.path.dirname(__file__), '..', '..')] + sys.path }
 
         repo_dir = os.path.join(self.mkdtemp())
         self.addCleanup(shutil.rmtree, repo_dir)