%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/plesk/python/2.7/lib64/python2.7/test/
Upload File :
Create Path :
Current File : //opt/plesk/python/2.7/lib64/python2.7/test/test_threadsignals.pyc

�
5}�ac@sdZddlZddlZddlZddlZddlmZmZmZed�Z	ej
d dks�ej
dkr�ejd	ej
�nej�Z
e	j�Zd
�Zd�Zd�Zd
ejfd��YZd�Zedkre�ndS(s6PyUnit testing that threads honor our signal semanticsi����N(trun_unittestt
import_moduletreap_threadstthreaditwintos2triscossCan't test signal on %scCsLtjtj|�}tjtj|�}tjtj|�}|||fS(N(tsignaltSIGUSR1tSIGUSR2tSIGALRM(tfor_usr1tfor_usr2tfor_alrmtusr1tusr2talrm((s@/opt/plesk/python/2.7/lib64/python2.7/test/test_threadsignals.pytregisterSignalsscCs,t|dcd7<tj�t|d<dS(Nttrippedit
tripped_by(tsignal_blackboardRt	get_ident(tsigtframe((s@/opt/plesk/python/2.7/lib64/python2.7/test/test_threadsignals.pythandle_signalsscCs4tjttj�tjttj�tj�dS(N(tostkilltprocess_pidRRR	t
signalled_alltrelease(((s@/opt/plesk/python/2.7/lib64/python2.7/test/test_threadsignals.pytsend_signalsst
ThreadSignalscBs&eZdZed��Zd�ZRS(s�Test signal handling semantics of threads.
       We spawn a thread, have the thread send two signals, and
       wait for it to finish. Check that we got both signals
       and that they were run by the main thread.
    cCstj�|j�tj�ttjddksLttjddkr{ztjd�tj�Wdtjd�Xn|j	ttjdd�|j	ttjdt
j��|j	ttjdd�|j	ttjdt
j��tj�dS(NRiiR(
RtacquiretspawnSignallingThreadRRRR	talarmtpausetassertEqualRRR(tself((s@/opt/plesk/python/2.7/lib64/python2.7/test/test_threadsignals.pyttest_signals*s 





cCstjtd�dS(N((Rtstart_new_threadR(R%((s@/opt/plesk/python/2.7/lib64/python2.7/test/test_threadsignals.pyR!Es(t__name__t
__module__t__doc__RR&R!(((s@/opt/plesk/python/2.7/lib64/python2.7/test/test_threadsignals.pyR$scCs�iidd6dd6tj6idd6dd6tj6idd6dd6tj6atttt�}ztt�Wdt|�XdS(NiRR(	RRR	R
RRRRR(toldsigs((s@/opt/plesk/python/2.7/lib64/python2.7/test/test_threadsignals.pyt	test_mainIst__main__(RR(R*tunittestRRtsysttest.test_supportRRRRtplatformtSkipTesttgetpidRt
allocate_lockRRRRtTestCaseRR,R((((s@/opt/plesk/python/2.7/lib64/python2.7/test/test_threadsignals.pyt<module>s""				%	


Zerion Mini Shell 1.0