%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/thread-self/root/lib64/python2.7/unittest/test/
Upload File :
Create Path :
Current File : //proc/thread-self/root/lib64/python2.7/unittest/test/test_break.pyo

�
{fc@s�ddlZddlZddlZddlZddlZddlmZddlZeje	ed�d�ej
ejdkd�ej
ejdkd�d	ejfd
��Y���Z
eje	ed�d�ej
ejdkd�ej
ejdkd�de
fd��Y���Zeje	ed�d�ej
ejdkd�ej
ejdkd�d
e
fd��Y���Zeje	ed�d�ej
ejdkd�ej
ejdkd�de
fd��Y���ZdS(i����N(tStringIOtkillsTest requires os.killtwin32sTest cannot run on Windowstfreebsd6s9Test kills regrtest on freebsd6 if threads have been usedt	TestBreakcBs�eZdZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd�Zd	�Z
d
�Zd�Zd�Zd
�ZRS(cCsAtjtj�|_|jdk	r=tjtj|j�ndS(N(tsignalt	getsignaltSIGINTt_default_handlertint_handlertNone(tself((s0/usr/lib64/python2.7/unittest/test/test_break.pytsetUpscCs8tjtj|j�tj�tj_dtj_	dS(N(
RRRtweakreftWeakKeyDictionarytunittesttsignalst_resultsR
t_interrupt_handler(R((s0/usr/lib64/python2.7/unittest/test/test_break.pyttearDownscCs�tjtj�}tj�|jtjtj�|�y#tj�}tj|tj�Wnt	k
r{|j
d�nX|jtjj
j�dS(NsKeyboardInterrupt not handled(RRRRtinstallHandlertassertNotEqualtostgetpidRtKeyboardInterrupttfailt
assertTrueRRtcalled(Rtdefault_handlertpid((s0/usr/lib64/python2.7/unittest/test/test_break.pyttestInstallHandlers

cCsmtj�}tj|�xMtjjD]2}||kr<Pq&||k	r&|jd�q&q&W|jd�dS(Nsodd object in result setsresult not found(Rt
TestResulttregisterResultRRR(Rtresulttref((s0/usr/lib64/python2.7/unittest/test/test_break.pyttestRegisterResult,s
cs�tjtj�}tj�}tj�tj|��jtjtj�|��fd�}y||�Wntk
r��j	d�nX�j
|j�dS(Ncs<tj�}tj|tj�t|_�j|j�dS(N(	RRRRRtTruetbreakCaughtRt
shouldStop(R!R(R(s0/usr/lib64/python2.7/unittest/test/test_break.pyttestBs	sKeyboardInterrupt not handled(RRRRRRR RRRRR%(RRR!R'((Rs0/usr/lib64/python2.7/unittest/test/test_break.pyttestInterruptCaught9s


cs�tjtj�tjkr+�jd�ntj�}tj�tj|��fd�}y||�Wnt	k
r~nX�j
d��j|j�dS(Ns&test requires SIGINT to not be ignoredcs\tj�}tj|tj�t|_�j|j�tj|tj��j	d�dS(Ns#Second KeyboardInterrupt not raised(
RRRRRR$R%RR&R(R!R(R(s0/usr/lib64/python2.7/unittest/test/test_break.pyR'Xs	s#Second KeyboardInterrupt not raised(
RRRtSIG_IGNtskipTestRRRR RRRR%(RR!R'((Rs0/usr/lib64/python2.7/unittest/test/test_break.pyttestSecondInterruptOs



cCs�tj�tj�}tj|�tjtj�}tj�}tj|�|jtjtj�|�tj�}d�}y||�Wntk
r�|j	d�nX|j
|j�|j
|j�|j|j�dS(NcSs#tj�}tj|tj�dS(N(RRRRR(R!R((s0/usr/lib64/python2.7/unittest/test/test_break.pyR'vssKeyboardInterrupt not handled(
RRRR RRRtassertEqualRRRR&tassertFalse(RR!tnew_handlertresult2tresult3R'((s0/usr/lib64/python2.7/unittest/test/test_break.pyttestTwoResultsis 


	
cs�tjtj�tjkr+|jd�ntj�tjtj���fd�}tjtj|�y#tj�}tj	|tj�Wnt
k
r�nX|jd�dS(Ns&test requires SIGINT to not be ignoredcs�||�dS(N((tframetsignum(thandler(s0/usr/lib64/python2.7/unittest/test/test_break.pyR.�ss6replaced but delegated handler doesn't raise interrupt(RRRR)R*RRRRRRR(RR.R((R4s0/usr/lib64/python2.7/unittest/test/test_break.pyttestHandlerReplacedButCalled�s

cCsDtjdt��}|jtj��}|j|tjj�dS(Ntstream(RtTextTestRunnerRtrunt	TestSuitetassertInRR(RtrunnerR!((s0/usr/lib64/python2.7/unittest/test/test_break.pyt
testRunner�scCsStj�}tj|�tj|�}~tj�tj�|j|��dS(N(RRR R
R"tgctcollecttassertIsNone(RR!R"((s0/usr/lib64/python2.7/unittest/test/test_break.pyttestWeakReferences�s


cCs�tj�}tj|�tj�|jtj|��|jtjtj���y#tj�}tj	|t
j�Wntk
r�nX|j|j
�dS(N(RRR RRtremoveResultR-RRRRRRR&(RR!R((s0/usr/lib64/python2.7/unittest/test/test_break.pyttestRemoveResult�s


cs�t��t��t��t��tjtj�}dtf�fd��Y�dtjf����fd��Y}|t�}|j�|j�j	didd6�d6�d6fg�|j�j�g�|j|j��|jtjtj�|�g�_	g�_|t
�}|j�|j�j	d	idd6�d6�d6fg�|j�j�g�|j|j��|jtjtj�|�dS(
Nt
FakeRunnercs,eZgZgZd�Z�fd�ZRS(c_s|jj||f�dS(N(tinitArgstappend(Rtargstkwargs((s0/usr/lib64/python2.7/unittest/test/test_break.pyt__init__�scs|jj|��S(N(trunArgsRE(RR'(R!(s0/usr/lib64/python2.7/unittest/test/test_break.pyR8�s(t__name__t
__module__RDRIRHR8((R!(s0/usr/lib64/python2.7/unittest/test/test_break.pyRC�s	tProgramcs eZ����fd�ZRS(csCt|_�|_�|_||_�|_�|_d|_dS(N(	tFalsetexitt	verbositytfailfastt
catchbreakR<R'R
R!(RRQ(RCRPR'RO(s0/usr/lib64/python2.7/unittest/test/test_break.pyRH�s						(RJRKRH((RCRPR'RO(s0/usr/lib64/python2.7/unittest/test/test_break.pyRL�stbufferRORP(((tobjectRRRRtTestProgramRMtrunTestsR,RDR
RIR!R$R(RRRLtp((RCRPR!R'ROs0/usr/lib64/python2.7/unittest/test/test_break.pyttestMainInstallsHandler�s2					(

		
cCsltjtj�}tj�tj�|jtjtj�|�tj�|jtjtj�|�dS(N(RRRRRt
removeHandlerR,(RR((s0/usr/lib64/python2.7/unittest/test/test_break.pyttestRemoveHandler�s


cs^tjtj��tj�tj��fd��}|��jtjtj���dS(Ncs �jtjtj���dS(N(R,RRR((RR(s0/usr/lib64/python2.7/unittest/test/test_break.pyR's(RRRRRRXR(RR'((RRs0/usr/lib64/python2.7/unittest/test/test_break.pyttestRemoveHandlerAsDecorator�s

N(RJRKR
R	RRRR#R(R+R1R5R<R@RBRWRYRZ(((s0/usr/lib64/python2.7/unittest/test/test_break.pyR
s			
	
						
		2	
tTestBreakDefaultIntHandlercBseZejZRS((RJRKRtdefault_int_handlerR	(((s0/usr/lib64/python2.7/unittest/test/test_break.pyR[	stTestBreakSignalIgnoredcBseZejZRS((RJRKRR)R	(((s0/usr/lib64/python2.7/unittest/test/test_break.pyR]stTestBreakSignalDefaultcBseZejZRS((RJRKRtSIG_DFLR	(((s0/usr/lib64/python2.7/unittest/test/test_break.pyR^s(R=RtsysRR
t	cStringIORRt
skipUnlessthasattrtskipIftplatformtTestCaseRR[R]R^(((s0/usr/lib64/python2.7/unittest/test/test_break.pyt<module>s,�

Zerion Mini Shell 1.0