diff --git a/testing/test_recwarn.py b/testing/test_recwarn.py index 8a7edcddb..40d11cd04 100644 --- a/testing/test_recwarn.py +++ b/testing/test_recwarn.py @@ -248,6 +248,7 @@ class TestWarns(object): assert str(record[1].message) == "runtime" class MyUserWarning(UserWarning): pass + class MyRuntimeWarning(RuntimeWarning): pass with pytest.warns((UserWarning, RuntimeWarning)) as record: