Skip to content

Commit

Permalink
test for warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Mar 10, 2021
1 parent 4f22c95 commit 2ad3dd2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zarr/tests/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ def test_coverage_rename():

def test_deprecated_listdir_nosotre():
store = dict()
with warnings.catch_warnings():
warnings.simplefilter("default")
with pytest.warns(UserWarning, match="has not `listdir`"):
listdir(store)


Expand Down

0 comments on commit 2ad3dd2

Please sign in to comment.