File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change
1
+ import pytest
2
+
3
+ # Pre-load deprecated modules to avoid cluttering warnings
4
+ with pytest .deprecated_call ():
5
+ import nibabel .keywordonly
6
+ with pytest .deprecated_call ():
7
+ import nibabel .trackvis
8
+ with pytest .warns (FutureWarning ):
9
+ import nibabel .py3k
10
+
11
+ # Ignore warning requesting help with nicom
12
+ with pytest .warns (UserWarning ):
13
+ import nibabel .nicom
Original file line number Diff line number Diff line change 4
4
from functools import wraps
5
5
import warnings
6
6
7
- warnings .warn ("We will remove this module from nibabel 5.0. "
7
+ warnings .warn ("We will remove the 'keywordonly' module from nibabel 5.0. "
8
8
"Please use the built-in Python `*` argument to ensure "
9
9
"keyword-only parameters (see PEP 3102)." ,
10
10
DeprecationWarning ,
You can’t perform that action at this time.
0 commit comments