diff --git a/nibabel/testing/__init__.py b/nibabel/testing/__init__.py index 0ba82d6cb..992ef2ead 100644 --- a/nibabel/testing/__init__.py +++ b/nibabel/testing/__init__.py @@ -150,9 +150,10 @@ class clear_and_catch_warnings(warnings.catch_warnings): Examples -------- >>> import warnings - >>> with clear_and_catch_warnings(modules=[np.core.fromnumeric]): + >>> with clear_and_catch_warnings(modules=[np.lib.scimath]): ... warnings.simplefilter('always') - ... # do something that raises a warning in np.core.fromnumeric + ... # do something that raises a warning in np.lib.scimath + ... _ = np.arccos(90) """ class_modules = ()