summaryrefslogtreecommitdiff
path: root/numpy/tests/pass/warnings_and_errors.py
blob: 5b6ec2626c0cfe1b39c86993d1af0f5daa9137ac (plain)
1
2
3
4
5
6
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)