Make unit tests testable from any directory.
authorRobert Bradshaw <robertwb@math.washington.edu>
Fri, 4 Feb 2011 10:30:10 +0000 (02:30 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Fri, 4 Feb 2011 10:30:10 +0000 (02:30 -0800)
runtests.py

index f8131451e3cca5e264616ef67db40f52153eae75..c023c81a1055a44f397a4f24f50727a38e73aac1 100644 (file)
@@ -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):