Skip to content

Commit

Permalink
Fix upstream change
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed Apr 29, 2015
1 parent 9bdb21b commit b56f781
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyasdf/tags/core/tests/test_ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,11 +381,10 @@ def test_masked_array_stay_open_bug(tmpdir):
}

f = asdf.AsdfFile(tree)
with f.write_to(tmppath):
pass
f.write_to(tmppath)

for i in range(1000):
with asdf.AsdfFile.read(tmppath) as f2:
with asdf.AsdfFile.open(tmppath) as f2:
np.sum(f2.tree['test'])

# fails with "too many open files" if the masked arrays
Expand Down

0 comments on commit b56f781

Please sign in to comment.