Skip to content

Commit 8fd1bd1

Browse files
committed
TEST: Use old-style assert_warns
1 parent 46a3228 commit 8fd1bd1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

nibabel/tests/test_checkwarns.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,5 @@ def test_ignore_and_error_warnings():
77
with suppress_warnings():
88
from .. import checkwarns
99

10-
with assert_warns(DeprecationWarning):
11-
checkwarns.IgnoreWarnings()
12-
13-
with assert_warns(DeprecationWarning):
14-
checkwarns.ErrorWarnings()
10+
assert_warns(DeprecationWarning, checkwarns.IgnoreWarnings)
11+
assert_warns(DeprecationWarning, checkwarns.ErrorWarnings)

0 commit comments

Comments
 (0)