From: Stefan Behnel Date: Thu, 11 Mar 2010 11:42:56 +0000 (+0100) Subject: run embedding test with current Python, not system Python X-Git-Tag: 0.13.beta0~319^2~2^2~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8fec4ceaac15c48b1c4ef0d30217f9d522dbddc2;p=cython.git run embedding test with current Python, not system Python --- 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):