run embedding test with current Python, not system Python
authorStefan Behnel <scoder@users.berlios.de>
Thu, 11 Mar 2010 11:42:56 +0000 (12:42 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 11 Mar 2010 11:42:56 +0000 (12:42 +0100)
runtests.py

index f7a7c69bafbbffc7c9a05389847423bbfa050919..e06873e2094f34b5f1dd20d688c228aa0350d27e 100644 (file)
@@ -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):