There was an error while loading. Please reload this page.
1 parent 4ba76d6 commit 0c6e670Copy full SHA for 0c6e670
1 file changed
test/test_installation.py
@@ -28,8 +28,10 @@ def test_installation(self, rw_dir):
28
self.assertEqual(0, result.returncode, msg=result.stderr or result.stdout or "Can't build - setup.py failed")
29
result = subprocess.run([self.python, '-c', 'import git'], stdout=subprocess.PIPE, cwd=self.sources)
30
self.assertEqual(0, result.returncode, msg=result.stderr or result.stdout or "Selftest failed")
31
- result = subprocess.run([self.python, '-c', 'import sys;import git; print(sys.path)'], stdout=subprocess.PIPE, cwd=self.sources)
32
- syspath = result.stdout.decode('utf-8').splitlines()[0]
+ result = subprocess.run([self.python, '-c', 'import sys;import git; print(sys.path)'],
+ stdout=subprocess.PIPE, cwd=self.sources)
33
+ syspath = result.stdout.decode('utf-8').splitlines()[0]
34
syspath = ast.literal_eval(syspath)
- self.assertEqual('', syspath[0], msg='Failed to follow the conventions for https://docs.python.org/3/library/sys.html#sys.path')
35
+ self.assertEqual('', syspath[0],
36
+ msg='Failed to follow the conventions for https://docs.python.org/3/library/sys.html#sys.path')
37
self.assertTrue(syspath[1].endswith('gitdb'), msg='Failed to add gitdb to sys.path')
0 commit comments