}ORW 8 d dl Zd dlmZmZ G d d ZdS ) N) assert_raisesassert_raises_regexc B e Zd ZdZd Zd Zd Zd Zd Zd Z d Z d Zd S )TestIndexErrorsz9Tests to exercise indexerrors not covered by other tests.c " t j d }t t |j dgd t t |j dgd t t |j dgdd t t |j dgdd d S ) ztake from a 0-length dimension) r r r axis wrap)r modeclipN)npemptyr IndexErrortake)selfxs u/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/numpy/core/tests/test_indexerrors.pytest_arraytypes_fasttakez(TestIndexErrors.test_arraytypes_fasttake s H\""j!&1#A6666j!&1#A6666j!&1#AFCCCCj!&1#AFCCCCCC c t j dt }t t |j dg t j dt }t t |j dgd t t |j dgd t t |j dg t t |j dgd t t |j dgd d S )N dtype r r r r r r )r r )r zerosobjectr r r )r ds r test_take_from_objectz%TestIndexErrors.test_take_from_object s HQf%%%j!&1#... HV6***j!&1#A6666j!&1#A6666j!&1#...j!&1#F;;;;j!&1#F;;;;;;r c t j dt }t t |j d t j dt }t t |j d t j dt }t t |j dd t j dt }t t |j dd d S )Nr r r )r r r )r r r! r r itemitemsetr as r test_multiindex_exceptionsz*TestIndexErrors.test_multiindex_exceptions s HQf%%%j!&"---HV6***j!&&111HQf%%%j!)R333HV6***j!)VQ77777r c t j d }t t |j dd t j dt }t t |j dd t j d }t t |j dd t j dt }t t |j dd d S )N)r r d r r )r r r )r r r r putr! r( s r test_put_exceptionsz#TestIndexErrors.test_put_exceptions* s HVj!%a000HV6***j!%a000HYj!%a000HYf---j!%a00000r c d t j g d t t fd t t fd t t fd t t fd t j g d t t fd t t fd t j g d t t fd t t fd t j g d t t fd t t fd t j g d t t fd t t fd t j g d t t fd t t fd t j g d t t fd t t fd t j g d t t fd t t fd dS )zcases in iterators.cc || |<