From 524b9eaa33ec67e34eb31a208e02bb934f778096 Mon Sep 17 00:00:00 2001 From: Julian Taylor Date: Sat, 8 Feb 2014 11:55:36 +0100 Subject: TST: fix test_io.TestSavezLoad --- numpy/lib/tests/test_io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/tests/test_io.py') 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) -- cgit v1.2.1