ENH set warning to stacklevel 2
TST silence warning
ENH use with np.errstate