From e4785f99325efc12806fb7118b3416b7e3b09821 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Fri, 4 Feb 2011 02:30:10 -0800 Subject: [PATCH] Make unit tests testable from any directory. --- runtests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.26.2