We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa418c9 commit ae4a5beCopy full SHA for ae4a5be
1 file changed
testing/test_recwarn.py
@@ -248,6 +248,7 @@ def test_record_by_subclass(self):
248
assert str(record[1].message) == "runtime"
249
250
class MyUserWarning(UserWarning): pass
251
+
252
class MyRuntimeWarning(RuntimeWarning): pass
253
254
with pytest.warns((UserWarning, RuntimeWarning)) as record:
0 commit comments