a :jgF @sddlZddlZddlmZddlmmZddlm Z ddZ ddZ dd Z ej d ed d d gededgddZdS)N)assert_raises_regex)StringIOcCs6ttdtdWdn1s(0YdS)Nzno deprecation warning)r ValueErrorrrD/usr/local/lib/python3.9/site-packages/numpy/lib/tests/test_utils.py(test_assert_raises_regex_context_manager s rcCs@Gddd}Gddd}dd}||s0J||r.NoPublicMethodsN)__name__ __module__ __qualname__rrrrNoPublicMethodssr c@seZdZddZdS)z3test_info_method_heading..WithPublicMethodscSsdS)Nrrrrr first_methodsz@test_info_method_heading..WithPublicMethods.first_methodN)rr r r rrrrWithPublicMethodssr cSs t}tj||dd|vS)N)outputzMethods:)rnpinfogetvalue)clsoutrrr_has_method_headingsz5test_info_method_heading.._has_method_headingr)r r rrrrtest_info_method_headings  rcCsJdd}tjddtjdddidfgfgdd id}t|}|||d usPJ|jdus^J|djduspJ|ddjdusJtjd d gd ddid }t|}|||d usJ|jdusJtjdddid}t|}|||d usJ|jdusJtjdddid}t|}|||d us6J|jdusFJdS)NcSstj||ddS)Nno)Zcasting)rZcan_cast)Zdt1Zdt2rrr_compare_dtypes#sz+test_drop_metadata.._compare_dtypesl1l2ZS8msgZtotometadataZtitiT)xzs  $