summaryrefslogtreecommitdiff
path: root/numpy/lib/tests
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2014-02-08 11:55:36 +0100
committerJulian Taylor <jtaylor.debian@googlemail.com>2014-02-08 11:55:36 +0100
commit524b9eaa33ec67e34eb31a208e02bb934f778096 (patch)
tree9c23a674bd0f8f0dca66c7c1a3b6102d3d62a682 /numpy/lib/tests
parentf2d06ceb03490d60a5720581f2a0bef75cb9ce89 (diff)
downloadnumpy-524b9eaa33ec67e34eb31a208e02bb934f778096.tar.gz
TST: fix test_io.TestSavezLoad
Diffstat (limited to 'numpy/lib/tests')
-rw-r--r--numpy/lib/tests/test_io.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py
index 2ee5c838e..8995fad64 100644
--- a/numpy/lib/tests/test_io.py
+++ b/numpy/lib/tests/test_io.py
@@ -187,7 +187,7 @@ class TestSavezLoad(RoundtripTest, TestCase):
L = (1 << 31) + 100000
a = np.empty(L, dtype=np.uint8)
with tempdir() as tmpdir:
- tmp = open(os.path.join(tmpdir, "file.npz"), "w")
+ tmp = os.path.join(tmpdir, "file.npz")
np.savez(tmp, a=a)
del a
npfile = np.load(tmp)