()
| 3599 | |
| 3600 | |
| 3601 | def test_h5py_tokenize(): |
| 3602 | h5py = pytest.importorskip("h5py") |
| 3603 | with tmpfile("hdf5") as fn1: |
| 3604 | with tmpfile("hdf5") as fn2: |
| 3605 | f = h5py.File(fn1, mode="a") |
| 3606 | g = h5py.File(fn2, mode="a") |
| 3607 | |
| 3608 | f["x"] = np.arange(10).astype(float) |
| 3609 | g["x"] = np.ones(10).astype(float) |
| 3610 | |
| 3611 | x1 = f["x"] |
| 3612 | x2 = g["x"] |
| 3613 | |
| 3614 | assert tokenize(x1) != tokenize(x2) |
| 3615 | |
| 3616 | |
| 3617 | def test_map_blocks_with_changed_dimension(): |