Skip to content

Commit 2ad3dd2

Browse files
committed
test for warning
1 parent 4f22c95 commit 2ad3dd2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

zarr/tests/test_storage.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ def test_coverage_rename():
9797

9898
def test_deprecated_listdir_nosotre():
9999
store = dict()
100-
with warnings.catch_warnings():
101-
warnings.simplefilter("default")
100+
with pytest.warns(UserWarning, match="has not `listdir`"):
102101
listdir(store)
103102

104103

0 commit comments

Comments
 (0)