Selaa lähdekoodia

fix python3.6

Jelmer Vernooij 3 vuotta sitten
vanhempi
commit
092728bc99
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  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)