K iF ddlmZddlZddlZddlmcmZddlm Z dZ dZ dZ ejjdejdd d gejd ejd gd Zy))StringION)assert_raises_regexcRttd5td#1swYyxYw)Nzno deprecation warning)r ValueError`/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/numpy/lib/tests/test_utils.py(test_assert_raises_regex_context_managerr s) Z)A B312233s &cZGdd}Gdd}d}||sJ||rJy)Nc eZdZy)1test_info_method_heading..NoPublicMethodsN)__name__ __module__ __qualname__rrr NoPublicMethodsr s rrceZdZdZy)3test_info_method_heading..WithPublicMethodscy)Nrrrr first_methodz@test_info_method_heading..WithPublicMethods.first_methods rN)rrrrrrr WithPublicMethodsrs rrcht}tj||d|jvS)N)outputzMethods:)rnpinfogetvalue)clsouts r _has_method_headingz5test_info_method_heading.._has_method_headings(j C S\\^++rr)rrrs r test_info_method_headingrs=  , 0 11 1"?33 33rc d}tjddtjdddifgfgddi}tj|}|||d usJ|jJ|djJ|ddjJtjd d gd ddi }tj|}|||d usJ|jJtjd ddi}tj|}|||d usJ|jJtjdddi}tj|}|||d usJ|jJy)Nc2tj||dS)Nno)casting)rcan_cast)dt1dt2s r _compare_dtypesz+test_drop_metadata.._compare_dtypes#s{{3T22rl1l2S8msgtotometadatatitiT)xzrKs ++-3 4&!!H ) dD\ * = =r