Py3 test fix
authorStefan Behnel <scoder@users.berlios.de>
Fri, 11 Mar 2011 12:03:15 +0000 (13:03 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 11 Mar 2011 12:03:15 +0000 (13:03 +0100)
runtests.py

index 3436d473a081890eeb7e658d963c483afbfd22f6..1a26a0c167ba1755a7f8c649bb505a277ff1882d 100644 (file)
@@ -894,7 +894,7 @@ class EmbedTest(unittest.TestCase):
                     # report the error for the original directory
                     libdir = sysconfig.get_config_var('LIBDIR')
         cython = 'cython.py'
-        if sys.version_info[0] >=3:
+        if sys.version_info[0] >=3 and CY3_DIR:
             cython = os.path.join(CY3_DIR, cython)
         cython = os.path.abspath(os.path.join('..', '..', cython))
         self.assert_(os.system(