From 0c6e67013fd22840d6cd6cb1a22fcf52eecab530 Mon Sep 17 00:00:00 2001 From: Xavier Verges Date: Sun, 4 Oct 2020 20:55:10 +0200 Subject: Keep flake happy --- test/test_installation.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/test_installation.py b/test/test_installation.py index 3b39a328..6117be98 100644 --- a/test/test_installation.py +++ b/test/test_installation.py @@ -28,8 +28,10 @@ class TestInstallation(TestBase): self.assertEqual(0, result.returncode, msg=result.stderr or result.stdout or "Can't build - setup.py failed") result = subprocess.run([self.python, '-c', 'import git'], stdout=subprocess.PIPE, cwd=self.sources) self.assertEqual(0, result.returncode, msg=result.stderr or result.stdout or "Selftest failed") - result = subprocess.run([self.python, '-c', 'import sys;import git; print(sys.path)'], stdout=subprocess.PIPE, cwd=self.sources) - 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) + syspath = result.stdout.decode('utf-8').splitlines()[0] 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') + self.assertEqual('', syspath[0], + msg='Failed to follow the conventions for https://docs.python.org/3/library/sys.html#sys.path') self.assertTrue(syspath[1].endswith('gitdb'), msg='Failed to add gitdb to sys.path') -- cgit v1.2.1