From 8fec4ceaac15c48b1c4ef0d30217f9d522dbddc2 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 11 Mar 2010 12:42:56 +0100 Subject: [PATCH] run embedding test with current Python, not system Python --- runtests.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/runtests.py b/runtests.py index f7a7c69b..e06873e2 100644 --- a/runtests.py +++ b/runtests.py @@ -619,17 +619,20 @@ class EmbedTest(unittest.TestCase): def setUp(self): self.old_dir = os.getcwd() os.chdir(self.working_dir) - os.system("make clean > /dev/null") + os.system( + "make PYTHON='%s' clean > /dev/null" % sys.executable) def tearDown(self): try: - os.system("make clean > /dev/null") + os.system( + "make PYTHON='%s' clean > /dev/null" % sys.executable) except: pass os.chdir(self.old_dir) def test_embed(self): - self.assert_(os.system("make test > make.output") == 0) + self.assert_(os.system( + "make PYTHON='%s' test > make.output" % sys.executable) == 0) class MissingDependencyExcluder: def __init__(self, deps): -- 2.26.2