Skip to content

Commit 346d291

Browse files
committed
fix warning test
1 parent aab4138 commit 346d291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_store/test_zip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def test_api_integration(self, store: ZipStore) -> None:
8080
assert np.array_equal(data, z[:])
8181

8282
# you can overwrite existing chunks but zipfile will issue a warning
83-
with pytest.warns(UserWarning, match="Duplicate name: 'foo/c/0/0'"):
83+
with pytest.warns(UserWarning, match=f"Duplicate name: '{store.resolve_key('foo/c/0/0')}'"):
8484
z[0, 0] = 100
8585

8686
# TODO: assigning an entire chunk to fill value ends up deleting the chunk which is not supported

0 commit comments

Comments
 (0)