diff options
Diffstat (limited to 'numpy/lib')
-rw-r--r-- | numpy/lib/tests/test_io.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py index f6cc365ef..c539c040a 100644 --- a/numpy/lib/tests/test_io.py +++ b/numpy/lib/tests/test_io.py @@ -174,11 +174,11 @@ class TestSavezLoad(RoundtripTest, TestCase): fd, tmp = mkstemp(suffix='.npz') os.close(fd) try: - fp = open(tmp, 'w') + fp = open(tmp, 'wb') np.savez(fp, data='LOVELY LOAD') fp.close() - fp = open(tmp, 'r', 10000) + fp = open(tmp, 'rb', 10000) fp.seek(0) assert_(not fp.closed) _ = np.load(fp)['data'] @@ -199,7 +199,7 @@ class TestSavezLoad(RoundtripTest, TestCase): os.close(fd) try: - fp = open(tmp, 'w') + fp = open(tmp, 'wb') np.savez(fp, data='LOVELY LOAD') fp.close() |