summaryrefslogtreecommitdiff
path: root/numpy/testing/numpytest.py
diff options
context:
space:
mode:
authorTim Hochberg <tim_hochberg@local>2006-10-12 19:16:55 +0000
committerTim Hochberg <tim_hochberg@local>2006-10-12 19:16:55 +0000
commit61d36f3bcbb50da5d33cf6c614859925e27f6abd (patch)
tree8280ee91ac3d525c441e62270779f43104229f4d /numpy/testing/numpytest.py
parent53bf14a0dbde7f708fb6a83fefd95138b54a678b (diff)
downloadnumpy-61d36f3bcbb50da5d33cf6c614859925e27f6abd.tar.gz
Under Python 2.5 on windows test_multiarray was failing mysteriously. Applying normpath to set_local_path cured that.
Diffstat (limited to 'numpy/testing/numpytest.py')
-rw-r--r--numpy/testing/numpytest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/testing/numpytest.py b/numpy/testing/numpytest.py
index 74b7c1a1e..5f4ceef17 100644
--- a/numpy/testing/numpytest.py
+++ b/numpy/testing/numpytest.py
@@ -69,7 +69,7 @@ def set_local_path(reldir='', level=1):
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)