[Numpy-svn] r3318 - trunk/numpy/testing

numpy-svn at scipy.org numpy-svn at scipy.org
Thu Oct 12 14:16:58 CDT 2006


Author: tim_hochberg
Date: 2006-10-12 14:16:55 -0500 (Thu, 12 Oct 2006)
New Revision: 3318

Modified:
   trunk/numpy/testing/numpytest.py
Log:
Under Python 2.5 on windows test_multiarray was failing mysteriously. Applying normpath to set_local_path cured that.

Modified: trunk/numpy/testing/numpytest.py
===================================================================
--- trunk/numpy/testing/numpytest.py	2006-10-12 11:19:01 UTC (rev 3317)
+++ trunk/numpy/testing/numpytest.py	2006-10-12 19:16:55 UTC (rev 3318)
@@ -69,7 +69,7 @@
         testfile = sys.argv[0]
     else:
         testfile = f.f_locals['__file__']
-    local_path = os.path.join(os.path.dirname(os.path.abspath(testfile)),reldir)
+    local_path = os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(testfile)),reldir))
     if DEBUG:
         print 'Inserting %r to sys.path' % (local_path)
     sys.path.insert(0,local_path)



More information about the Numpy-svn mailing list