From: Stefan Behnel Date: Fri, 11 Mar 2011 12:03:15 +0000 (+0100) Subject: Py3 test fix X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=58109c4f9b18923bfe9553a558e7b9b6e2b67878;p=cython.git Py3 test fix --- 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(