Skip to content

Commit

Permalink
fix test to properly test warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyminium committed Oct 26, 2023
1 parent 83699ce commit 44c43d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openff/nagl/tests/utils/test_openff.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,6 @@ def test_capture_toolkit_warnings(caplog):
assert stereo_warning in caplog.records[0].message

# check we haven't messed with warnings
with pytest.warns(UserWarning):
with warnings.catch_warnings(record=True) as records:
warnings.warn("test")
assert len(records)

0 comments on commit 44c43d5

Please sign in to comment.