Current File : //usr/lib64/python2.7/site-packages/numpy/core/tests/test_item_selection.pyc
�
E�`Qc@s^ddlZddlTddlZddlZdefd��YZedkrZe�ndS(i����N(t*tTestTakecBseZd�Zd�ZRS(c
Csetjddgddgg�}dddg}dd	g}tjd
dtj�tjddtj�g}i}idd6td	6|d<idd6d
d	6|d<id
d6dd	6|d<tjtjtjdg�f}x�|D]{}tj|d|�}t|j	j
��}	xH|D]@}
|
jd
krYd|
j|	d
_d|
j|	d_nx�|D]�}x�|D]�}|||}
|
tkr�|
jd
kr�|
j
d
|�tt|j|
d|dd�qm|
jd
kr|
j
d
|�|j|
d|dd�}t||	|
�qm|j|
d|dd�}t|jd|
jk�qmWq`WqWq�WdS(Nt1t2t3t4traisetwraptclipi����iitdtypeittiitmodetaxis(ii(R
Ri(i(i(i(tnptarraytemptytintpt
IndexErrortinttobjectR	tlisttTtcopytsizetshapetputt
assert_raisesttaketassert_array_equaltassert_(tselftatmodestindicestindex_arraystreal_indicesttypesttttattresulttindex_arrayRtindext
real_indextres((sJ/usr/lib64/python2.7/site-packages/numpy/core/tests/test_item_selection.pyttest_simples<!!



cCs%gtd�D]}t�^q
}x�dD]�}tj|�}tjddddddg�}|j|d	|d
 �~ttjg|D]}tj|�dk^q���tj|d�ddd�}|j|d	|d
 �~ttjg|D]}tj|�dk^q���q)WdS(Ni
RRRiiiitouti(sraisesclipswrap(	txrangeRRRRRtalltsystgetrefcount(RRtobjectsRR tbto((sJ/usr/lib64/python2.7/site-packages/numpy/core/tests/test_item_selection.pyttest_refcounting,s"
!5 (t__name__t
__module__R-R6(((sJ/usr/lib64/python2.7/site-packages/numpy/core/tests/test_item_selection.pyRs	%t__main__(	tnumpyRt
numpy.testingR1twarningstTestCaseRR7trun_module_suite(((sJ/usr/lib64/python2.7/site-packages/numpy/core/tests/test_item_selection.pyt<module>s

5