Skip to content

Commit

Permalink
TST: core: fix test_fromfile_tofile_seeks to work on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pv committed Oct 18, 2010
1 parent ba01941 commit 98484bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion numpy/core/tests/test_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -1378,7 +1378,8 @@ def test_take_refcount(self):
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)
Expand Down

0 comments on commit 98484bb

Please sign in to comment.