We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46a3228 commit 8fd1bd1Copy full SHA for 8fd1bd1
nibabel/tests/test_checkwarns.py
@@ -7,8 +7,5 @@ def test_ignore_and_error_warnings():
7
with suppress_warnings():
8
from .. import checkwarns
9
10
- with assert_warns(DeprecationWarning):
11
- checkwarns.IgnoreWarnings()
12
-
13
14
- checkwarns.ErrorWarnings()
+ assert_warns(DeprecationWarning, checkwarns.IgnoreWarnings)
+ assert_warns(DeprecationWarning, checkwarns.ErrorWarnings)
0 commit comments