We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0bd95cd + 3a7ceba commit 30a5f3fCopy full SHA for 30a5f3f
nibabel/testing/__init__.py
@@ -150,9 +150,10 @@ class clear_and_catch_warnings(warnings.catch_warnings):
150
Examples
151
--------
152
>>> import warnings
153
- >>> with clear_and_catch_warnings(modules=[np.core.fromnumeric]):
+ >>> with clear_and_catch_warnings(modules=[np.lib.scimath]):
154
... warnings.simplefilter('always')
155
- ... # do something that raises a warning in np.core.fromnumeric
+ ... # do something that raises a warning in np.lib.scimath
156
+ ... _ = np.arccos(90)
157
"""
158
159
class_modules = ()
0 commit comments