diff options
Diffstat (limited to 'numpy/tests/fail/warnings_and_errors.py')
-rw-r--r-- | numpy/tests/fail/warnings_and_errors.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/numpy/tests/fail/warnings_and_errors.py b/numpy/tests/fail/warnings_and_errors.py new file mode 100644 index 000000000..7390cc45f --- /dev/null +++ b/numpy/tests/fail/warnings_and_errors.py @@ -0,0 +1,7 @@ +import numpy as np + +np.AxisError(1.0) # E: Argument 1 to "AxisError" has incompatible type +np.AxisError(1, ndim=2.0) # E: Argument "ndim" to "AxisError" has incompatible type +np.AxisError( + 2, msg_prefix=404 # E: Argument "msg_prefix" to "AxisError" has incompatible type +) |