()
| 3606 | |
| 3607 | |
| 3608 | def test_h5py_tokenize(): |
| 3609 | h5py = pytest.importorskip("h5py") |
| 3610 | with tmpfile("hdf5") as fn1: |
| 3611 | with tmpfile("hdf5") as fn2: |
| 3612 | f = h5py.File(fn1, mode="a") |
| 3613 | g = h5py.File(fn2, mode="a") |
| 3614 | |
| 3615 | f["x"] = np.arange(10).astype(float) |
| 3616 | g["x"] = np.ones(10).astype(float) |
| 3617 | |
| 3618 | x1 = f["x"] |
| 3619 | x2 = g["x"] |
| 3620 | |
| 3621 | assert tokenize(x1) != tokenize(x2) |
| 3622 | |
| 3623 | |
| 3624 | def test_map_blocks_with_changed_dimension(): |