From 2d989dfce0253a97023065c85628f9eec2fb813f Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Date: Mon, 12 Dec 2016 20:45:22 +0100
Subject: [PATCH] tests: use sys.executable instead of hardcoded python
python != python3 in many cases.
Closes: https://github.com/casperdcl/git-fame/issues/5
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
---
gitfame/tests/test_gitfame.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gitfame/tests/test_gitfame.py b/gitfame/tests/test_gitfame.py
index a0c70b7..0aab18a 100644
--- a/gitfame/tests/test_gitfame.py
+++ b/gitfame/tests/test_gitfame.py
@@ -52,7 +52,7 @@ def test_main():
from copy import deepcopy
from os.path import dirname as dn
- res = subprocess.Popen(('python', '-c', "import gitfame; import sys;" +
+ res = subprocess.Popen((sys.executable, '-c', "import gitfame; import sys;" +
' sys.argv = ["", "--silent-progress", "' +
dn(dn(dn(__file__))) +
'"]; gitfame.main()'),
--
2.11.0