python (3.12.0)
͑eu d Z ddlZddlZddlZddlmZ G d dej Zedk( r ej yy)zL
Tests run by test_atexit in a subprocess since it clears atexit callbacks.
N)supportc Z e Zd Zd Zd Zd Zd Zd Zd Zd Z d Z
d Zd
Zd Z
d Zd
Zy)GeneralTestc , t j y Natexit_clearselfs E/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/test/_test_atexit.pysetUpzGeneralTest.setUp
c , t j y r r r s r
tearDownzGeneralTest.tearDown r r c t j 5 }t j |g| t j | j |j j | | j |j j | | j t |j j | d d d y # 1 sw Y y xY wr )r catch_unraisable_exceptionr register_run_exitfuncsassertEqual
unraisableobjectexc_typetype exc_value)r r funcargscms r
assert_raises_unraisablez$GeneralTest.assert_raises_unraisable s
/
/
1 FROOD(4(!!#R]]1148R]]33X>T"--"9"9:HE
F F Fs B&CC
c g fd}fd}t j |dd t j | t j |dd t j | j dd d
difddi fdd
i fg y )Nc . j d| |f y )Nfunc1appendr kwargscallss r
r# z%GeneralTest.test_order.<locals>.func1 LL'401r c . j d| |f y )Nfunc2r$ r&