a :êdg ã@s®ddlZddlZddlZdd„ZGdd„dejƒZedkrªejdd@Ze ej ƒd krlej d ej   ¡d n ej d d Wdƒn1sŒ0YeD]Z ee jƒqšdS) éNcCst dt¡dS)NÚrw)ÚwarningsÚwarnÚRuntimeWarning©rrú8/usr/local/lib/python3.9/unittest/test/_test_warnings.pyÚwarnfunsrc@sDeZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dS)Ú TestWarningscCs(| dd¡| dd¡| dd¡dS)Né)Z assertEquals©ÚselfrrrÚ test_asserts  zTestWarnings.test_assertcCs| d¡| d¡dS)NéT)Z failUnlessr rrrÚ test_fails zTestWarnings.test_failcCs| dd¡| dd¡dS)Nr éé)ZassertAlmostEqualZassertNotAlmostEqualr rrrÚtest_other_unittest s z TestWarnings.test_other_unittestcCs(t dt¡t dt¡t dt¡dS)NZdw)rrÚDeprecationWarningr rrrÚtest_deprecation%s  zTestWarnings.test_deprecationcCs(t dt¡t dt¡t dt¡dS)NÚiw)rrÚ ImportWarningr rrrÚ test_import*s  zTestWarnings.test_importcCs"t d¡t d¡t d¡dS)NZuw)rrr rrrÚ test_warning0s  zTestWarnings.test_warningcCstƒtƒtƒdS)N)rr rrrÚ test_function7szTestWarnings.test_functionN) Ú__name__Ú __module__Ú __qualname__r rrrrrrrrrrr sr Ú__main__T)ÚrecordrF)Úexitr)r)ÚsysZunittestrrZTestCaser rÚcatch_warningsÚwsÚlenÚargvÚmainÚpopÚwÚprintÚmessagerrrrÚ s+*