Skip to content

Commit 63541a8

Browse files
committed
tests: expect warning for hmf
1 parent c7c8070 commit 63541a8

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

test/test_hmf.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ def write(*args, **kwargs):
3333

3434

3535
def test_generic_io():
36-
helpers.generic_io("test.hmf")
37-
# With additional, insignificant suffix:
38-
helpers.generic_io("test.0.hmf")
36+
with pytest.warns(UserWarning):
37+
helpers.generic_io("test.hmf")
38+
39+
with pytest.warns(UserWarning):
40+
# With additional, insignificant suffix:
41+
helpers.generic_io("test.0.hmf")

0 commit comments

Comments
 (0)