Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
PetroFrolov authored and Frolov Petr committed Mar 23, 2021
1 parent 6a9edf4 commit cbcb397
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions joblib/test/test_numpy_pickle.py
Expand Up @@ -634,6 +634,7 @@ def test_in_memory_persistence():
for obj in objs:
f = io.BytesIO()
numpy_pickle.dump(obj, f)
f.seek(0)
obj_reloaded = numpy_pickle.load(f)
if isinstance(obj, np.ndarray):
np.testing.assert_array_equal(obj_reloaded, obj)
Expand Down Expand Up @@ -678,6 +679,7 @@ def test_file_handle_persistence_in_memory_mmap():
buf = io.BytesIO()

numpy_pickle.dump(obj, buf)
buf.seek(0)

with warns(UserWarning) as warninfo:
numpy_pickle.load(buf, mmap_mode='r+')
Expand Down

0 comments on commit cbcb397

Please sign in to comment.