retry by moving stupidly misplaced fix
authorStefan Behnel <scoder@users.berlios.de>
Fri, 27 Aug 2010 16:17:46 +0000 (18:17 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 27 Aug 2010 16:17:46 +0000 (18:17 +0200)
runtests.py

index a486405526576e8decb43c4c5782b50954aee9f5..bc407ca17aec2a8c1e64e1d2579621ea0b36b2ef 100644 (file)
@@ -633,12 +633,8 @@ class EmbedTest(unittest.TestCase):
     def setUp(self):
         self.old_dir = os.getcwd()
         os.chdir(self.working_dir)
-        from distutils import sysconfig
-        libdir = sysconfig.get_config_var('LIBDIR')
-        if not os.path.isdir(libdir):
-            libdir = os.path.join(os.path.dirname(sys.executable), '../lib')
         os.system(
-            "make PYTHON='%s' LIBDIR1='%s' clean > /dev/null" % (sys.executable, libdir))
+            "make PYTHON='%s' clean > /dev/null" % sys.executable)
     
     def tearDown(self):
         try:
@@ -649,8 +645,12 @@ class EmbedTest(unittest.TestCase):
         os.chdir(self.old_dir)
         
     def test_embed(self):
+        from distutils import sysconfig
+        libdir = sysconfig.get_config_var('LIBDIR')
+        if not os.path.isdir(libdir):
+            libdir = os.path.join(os.path.dirname(sys.executable), '../lib')
         self.assert_(os.system(
-            "make PYTHON='%s' test > make.output" % sys.executable) == 0)
+            "make PYTHON='%s' LIBDIR1='%s' test > make.output" % (sys.executable, libdir)) == 0)
         try:
             os.remove('make.output')
         except OSError: