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 44from functools import wraps
55import warnings
66
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. "
88 "Please use the built-in Python `*` argument to ensure "
99 "keyword-only parameters (see PEP 3102)." ,
1010 DeprecationWarning ,
You can’t perform that action at this time.
0 commit comments