diff options
Diffstat (limited to 'numpy/tests/pass/warnings_and_errors.py')
-rw-r--r-- | numpy/tests/pass/warnings_and_errors.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/numpy/tests/pass/warnings_and_errors.py b/numpy/tests/pass/warnings_and_errors.py new file mode 100644 index 000000000..5b6ec2626 --- /dev/null +++ b/numpy/tests/pass/warnings_and_errors.py @@ -0,0 +1,7 @@ +import numpy as np + +np.AxisError(1) +np.AxisError(1, ndim=2) +np.AxisError(1, ndim=None) +np.AxisError(1, ndim=2, msg_prefix="error") +np.AxisError(1, ndim=2, msg_prefix=None) |