From bdc86e5f1d1ff9dd09f46e11491671d515e3b4a2 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Fri, 10 May 2013 11:17:04 -0400 Subject: [PATCH] ENH: use the same python executable for setup.py test This doesn't anyhow resolve gh-161 which was revealed consistently on Debian sytem after adding this testSetupInstallRoot --- testcases/misctestcase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testcases/misctestcase.py b/testcases/misctestcase.py index c9449407..4a6b4241 100644 --- a/testcases/misctestcase.py +++ b/testcases/misctestcase.py @@ -64,7 +64,8 @@ class SetupTest(unittest.TestCase): def testSetupInstallRoot(self): if not self.setup: return # if verbose skip didn't work out tmp = tempfile.mkdtemp() - os.system("%s install --root=%s >/dev/null" % (self.setup, tmp)) + os.system("%s %s install --root=%s >/dev/null" + % (sys.executable, self.setup, tmp)) def addpath(l): return [os.path.join(tmp, x) for x in l]