From: Robert Bradshaw Date: Fri, 4 Feb 2011 10:30:10 +0000 (-0800) Subject: Make unit tests testable from any directory. X-Git-Tag: 0.14.1~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e4785f99325efc12806fb7118b3416b7e3b09821;p=cython.git Make unit tests testable from any directory. --- diff --git a/runtests.py b/runtests.py index f8131451..c023c81a 100644 --- a/runtests.py +++ b/runtests.py @@ -1127,7 +1127,7 @@ def main(): # RUN ALL TESTS! UNITTEST_MODULE = "Cython" - UNITTEST_ROOT = os.path.join(os.getcwd(), UNITTEST_MODULE) + UNITTEST_ROOT = os.path.join(os.path.dirname(__file__), UNITTEST_MODULE) if WITH_CYTHON: if os.path.exists(WORKDIR): for path in os.listdir(WORKDIR):