o 6a@sddlZddlZddlZddlmZddlmZmZmZddl m Z m Z ddl m mZddlmZejjejjdkddejjejd kd dd d Ze d dZe ddddZddZe edddZddZe eZddZe eddZddZe eZ e ddd d!Z!d"d#Z"d$d%Z#d&d'Z$d(d)Z%ejjejjdkd*dej&d+eefeefee fgd,d-Z'd.d/Z(ejjejjdkd*dd0d1Z)d2d3Z*Gd4d5d5Z+d6d7Z,d8d9Z-dS):N)arange)assert_ assert_equalassert_raises_regex) deprecatedeprecate_with_doc)StringIOzPython running -OO)reason) r candidatezBroken as of bpo-44524cCs0t}tjdd|dd|}td|vdS)N eigenvaluenumpyF)moduleoutputimport_modulesznumpy.linalg.eig)rutilslookforgetvaluer)outrtddd}|j}t|\}}t|||j|jdSrRrrUTrrVrrWrXrrYbrZr[rrr"test_unusual_order_positive_stridesz1TestByteBounds.test_unusual_order_positive_stridecCsHtddd}|jddd}t|\}}t|||j|jdS)NrSr rTr]r_rrr"test_unusual_order_negative_stridesz1TestByteBounds.test_unusual_order_negative_stridecCsHtd}|ddd}t|\}}t|||jd|j|jdS)NrSr )rrrVrrWrXr_rrr test_strideds$zTestByteBounds.test_stridedN)__name__ __module__ __qualname__r\rarcrdrrrrrQ{s  rQcCs(ttdtd1s wYdS)Nzno deprecation warning)r ValueErrorrrrr(test_assert_raises_regex_context_managers ricCs@Gddd}Gddd}dd}||sJ||rJdS)Nc@s eZdZdS)z1test_info_method_heading..NoPublicMethodsN)rerfrgrrrrNoPublicMethodssrjc@seZdZddZdS)z3test_info_method_heading..WithPublicMethodscSsdSrrrrrr first_methodr&z@test_info_method_heading..WithPublicMethods.first_methodN)rerfrgrkrrrrWithPublicMethodss rlcSs t}tj||dd|vS)N)rzMethods:)rrinfor)clsrrrr_has_method_headings z5test_info_method_heading.._has_method_headingr)rjrlrorrrtest_info_method_headings  rp).rGsyspytest numpy.corer numpy.testingrrr numpy.librrnumpy.lib.utilslibriormarkskipifflagsoptimize version_inforr r$r%r'r* new_func4r,rLr- new_func6r0r4r6r7r8 parametrizerFr=rMrPrQrirprrrrs\