diff options
author | Pauli Virtanen <pav@iki.fi> | 2010-10-17 18:16:45 +0200 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2010-10-18 21:10:58 +0200 |
commit | 98484bb6e3958a26d8f7a4742975e13713003c64 (patch) | |
tree | a86be19133a6cc20bc502ebc87d6a045516e1b64 | |
parent | ba019417f66168b32357f397df7fd45808fd1ce4 (diff) | |
download | numpy-98484bb6e3958a26d8f7a4742975e13713003c64.tar.gz |
TST: core: fix test_fromfile_tofile_seeks to work on Windows
-rw-r--r-- | numpy/core/tests/test_regression.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py index 12fe089e6..3a013f351 100644 --- a/numpy/core/tests/test_regression.py +++ b/numpy/core/tests/test_regression.py @@ -1378,7 +1378,8 @@ class TestRegression(TestCase): def test_fromfile_tofile_seeks(self): # On Python 3, tofile/fromfile used to get (#1610) the Python # file handle out of sync - f = tempfile.TemporaryFile() + f0 = tempfile.NamedTemporaryFile() + f = f0.file f.write(np.arange(255, dtype='u1').tostring()) f.seek(20) |