Skip to content

Commit 2e46a6c

Browse files
authored
Merge pull request #1085 from nschloe/hmf-expect-warning
tests: expect warning for hmf
2 parents c7c8070 + 63541a8 commit 2e46a6c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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)