summaryrefslogtreecommitdiff
path: root/numpy/testing/numpytest.py
diff options
context:
space:
mode:
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)