From 58109c4f9b18923bfe9553a558e7b9b6e2b67878 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 11 Mar 2011 13:03:15 +0100 Subject: [PATCH] Py3 test fix --- runtests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtests.py b/runtests.py index 3436d473..1a26a0c1 100644 --- a/runtests.py +++ b/runtests.py @@ -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( -- 2.26.2