Commit 8fec4cea authored by Stefan Behnel's avatar Stefan Behnel

run embedding test with current Python, not system Python

parent c12f6722
...@@ -619,17 +619,20 @@ class EmbedTest(unittest.TestCase): ...@@ -619,17 +619,20 @@ class EmbedTest(unittest.TestCase):
def setUp(self): def setUp(self):
self.old_dir = os.getcwd() self.old_dir = os.getcwd()
os.chdir(self.working_dir) os.chdir(self.working_dir)
os.system("make clean > /dev/null") os.system(
"make PYTHON='%s' clean > /dev/null" % sys.executable)
def tearDown(self): def tearDown(self):
try: try:
os.system("make clean > /dev/null") os.system(
"make PYTHON='%s' clean > /dev/null" % sys.executable)
except: except:
pass pass
os.chdir(self.old_dir) os.chdir(self.old_dir)
def test_embed(self): 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: class MissingDependencyExcluder:
def __init__(self, deps): def __init__(self, deps):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment