Current File : //opt/imh-python/lib/python2.7/test/test_multiprocessing.pyc
�
��Wc	@s�ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZ
ddl
mZddlmZejd�ZddlZejd�ddlZddlZddlZddlZddlZddlmZyddlmZeZWnek
rceZnXy ddlm Z m!Z!eZ"Wnek
r�eZ"nXyddl#Z#Wnek
r�dZ#nXe%Z&ej'Z(d	Z)eZ*e*r�d�\Z+Z,Z-nd�\Z+Z,Z-e.ed
e�Z/ej0dkZ1yej2d�Z3Wn
dZ3nXy ddl4m5Z5m6Z6m7Z7Wn!ek
r�e8Z5dZ6Z7nXd�Z9de8fd��YZ:de8fd��YZ;d�Z<de;fd��YZ=dej>fd��YZ?de;fd��YZ@d�ZAd�ZBd e;fd!��YZCd"e;fd#��YZDd$e;fd%��YZEd&e;fd'��YZFd(e;fd)��YZGd*e;fd+��YZHd,e;fd-��YZId.e;fd/��YZJd0d1�ZKd2eLfd3��YZMd4�ZNd5e;fd6��YZOd7�ZPd8e;fd9��YZQd:e;fd;��YZRd<e;fd=��YZSdd>lmTZTmUZUmVZVd?e8fd@��YZWdA�ZXdBeUfdC��YZYdDeTfdE��YZZeZj[dFdGeW�eZj[dHdGeWdId��eZj[dLdGeXdMeY�dNe;fdO��YZ\ej�Z]dP�Z^dQeTfdR��YZ_e_j[dSdGe^�dTeTfdU��YZ`e`j[dS�dVZadWe;fdX��YZbdYe;fdZ��YZce&d[�Zdd\e;fd]��YZed^e;fd_��YZfd`e;fda��YZgdbe5fdc��YZhdde;fde��YZidfe;fdg��YZjdhe;fdi��YZkdje;fdk��YZldle;fdm��YZmdnejnfdo��YZodp�Zpdq�Zqdre8fds��YZreqerdtdu�Zset�jues�dve8fdw��YZveqevdtdx�Zwet�juew�dye8fdz��YZxeqexdtd{�Zyet�juey�d|ejnfd}��YZzd~�Z{dejnfd���YZ|d��Z}d��Z~d��Zd��Z�d�e8fd���YZ�d�ejnfd���YZ�d�ejnfd���YZ�d�ejnfd���YZ�d�ejnfd���YZ�d�ejnfd���YZ�d�ejnfd���YZ�ezeoe|e�e�e�e�e�e�g	Z�dd��Z�d��Z�e�d�kr�e��ndS(�i����N(ttest_support(tStringIOt_multiprocessingsmultiprocessing.synchronize(tutil(t	reduction(tValuetcopyg�������?g=
ףp=�?gffffff�?gffffff�?tHAVE_BROKEN_SEM_GETVALUEtwin32tSC_OPEN_MAXi(t	Structuretc_inttc_doublecCsgd}ytjd�}Wnttfk
r3dSX|dksL||krPdStjd|��dS(sACheck that the system supports enough semaphores to run the test.itSC_SEM_NSEMS_MAXNi����sHThe OS doesn't support enough semaphores to run the test (required: %d).(tostsysconftAttributeErrort
ValueErrortunittesttSkipTest(t	nsems_mintnsems((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pytcheck_enough_semaphoresbs	t
TimingWrappercBseZd�Zd�ZRS(cCs||_d|_dS(N(tfunctNonetelapsed(tselfR((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt__init__ws	cOs;tj�}z|j||�SWdtj�||_XdS(N(ttimeRR(Rtargstkwdstt((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt__call__{s(t__name__t
__module__RR!(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRus	tBaseTestCasecBs/eZdZd�Zd�Zd�ZeZRS(t	processestmanagertthreadscCs tr|j||d�ndS(Ni(t
CHECK_TIMINGStassertAlmostEqual(Rtatb((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pytassertTimingAlmostEqual�scGs8y||�}Wntk
r#nX|j||�SdS(N(tNotImplementedErrortassertEqual(RtvalueRRtres((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pytassertReturnsIfImplemented�s

cGstd��dS(Ns#shouldn't try to pickle a test case(R-(RR((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt
__reduce__�s(s	processessmanagerR'(R"R#t
ALLOWED_TYPESR,R1R2t
__reduce_ex__(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR$�s
		
	cCsjy|j�SWnUtk
rey|jSWqftk
ray|jSWqbtk
r]t�qbXqfXnXdS(N(t	get_valueRt_Semaphore__valuet_valueR-(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR5�s


t_TestProcesscBs�eZd
Zd�Zed��Zd�Zed��Zd�Zd�Z	d�Z
ed	��Zd
�Zed��Z
d�ZRS(R%R'cCs�|jdkr+|jdj|j��n|j�}|j}|j|j��|j|j�|j|t	�|jt
|�dk�|j|jt
j��|j|jd�dS(NR'stest not appropriate for {}i(tTYPEtskipTesttformattcurrent_processtauthkeyt
assertTruetis_alivetdaemontassertIsInstancetbytestlenR.tidentRtgetpidtexitcodeR(RtcurrentR=((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_current�s	cOsr|j�}|j|�|j|�|j|j�|jdkrn|jt|j��|j|j�ndS(NR'(R<tputtnameR9RBR=tpid(tclstqRRRG((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt_test�s

c	Cs<|jd�}|j�}|ddf}idd6dd6}d}|jd|jd	|d
|d|�}t|_|j�}|jdkr�|j|j	|j	�n|j|j
�t�|j|jt�|j||j
��|jt|j
��tk�|j|jd�|j�|j|jd�|j|j
�t�|j||j
��|j|j�|d�|j|j�|�|j|j�|j�|jdkr�|j|j�|j	�|j|j�|j�n|j�|j|jd
�|j|j
�t�|j||j
��dS(NiiithellogR���Q@tbyetSomeProcessttargetRtkwargsRJR'i(tQueuetEventtProcessRNtTrueR@R<R9R.R=R?tFalsetassertNotIntactive_childrenR>ttypetlistRFRtstarttassertIntgetRJRKtjoin(RRMteRRSRJtpRG((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_process�s<		

cCstjd�dS(Ni�(Rtsleep(RL((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt_test_terminate�scCs|jdkr+|jdj|j��n|jd|j�}t|_|j�|j|j	�t�|j
||j��|j|jd�|j�t|j�}|j|�d�|j|jd�|j|j	�t�|j||j��|j�dS(NR'stest not appropriate for {}RRg(R9R:R;RVReRWR@R]R.R?R^RZRFRt	terminateRR`R,RRXRY(RRbR`((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_terminate�s	

cCsZytj�}Wntk
r)d}nX|jt|�tk�|j|dk�dS(Ni(tmultiprocessingt	cpu_countR-R>R[tint(Rtcpus((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_cpu_counts

cCs�|jt|j��t�|jdtjdtf�}|j||j��t	|_
|j�|j||j��|j
�|j||j��dS(NRRR(R.R[RZR\RVRRdtDELTARYRWR@R]R^R`(RRb((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_active_childrens	

cCs�ddlm}|j|�t|�dkr�xStd�D]B}|jd|jd|||gf�}|j�|j�q<WndS(Ni����(tforkingiRRR(	RhRotsendRCtrangeRVt_test_recursionR]R`(RLtwconntidRotiRb((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRr's
	
cCs�|jdt�\}}|j|g�tjt�g}x#|j�r`|j|j��q>Wgdgddgddgdgddgddgg}|j	||�dS(Ntduplexii(
tPipeRXRrRRdRmtpolltappendtrecvR.(RtrconnRstresulttexpected((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_recursion3s
			cCs#t|d�t_tj|�dS(Ntw(topentsyststderrtexit(RLtreasonttestfn((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt_test_sys_exitGsc	Csp|jdkr+|jdj|j��ntj}|jtj|�x�dddgdfdfD]�\}}|jd|jd||f�}t	|_
|j�|jd	�|j
|j|�t|d
��)}|j
|j�j�t|��WdQXqcWxht	tdfD]W}|jdtjd|f�}t	|_
|j�|jd	�|j
|j|�qWdS(
NR'stest not appropriate for {}iiisignore thisRRRitri(signore thisi(R9R:R;RtTESTFNt
addCleanuptunlinkRVR�RWR@R]R`R.RFR�treadtrstriptstrRXR�R�(RR�R�tcodeRbtf((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt
test_sys_exitLs$	(!	

,	

(s	processessthreads(R"R#R3RHtclassmethodRNRcReRgRlRnRrR~R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR8�s	
	'			
	t_UpperCasercBs,eZd�Zd�Zd�Zd�ZRS(cCs,tjj|�tj�\|_|_dS(N(RhRVRRwt
child_conntparent_conn(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRkscCsT|jj�x3t|jjd�D]}|jj|j��q#W|jj�dS(N(R�tclosetiterR�RzRRptupper(Rts((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pytrunos
cCs5t|�tkst�|jj|�|jj�S(N(R[R�tAssertionErrorR�RpRz(RR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pytsubmituscCs.|jjd�|jj�|jj�dS(N(R�RpRR�R�(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pytstopzs
(R"R#RR�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR�is			t_TestSubclassingProcesscBseZdZd�ZRS(R%cCsft�}t|_|j�|j|jd�d�|j|jd�d�|j�|j�dS(NROtHELLOtworldtWORLD(R�RWR@R]R.R�R�R`(Rt
uppercaser((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_subclassing�s		

(s	processes(R"R#R3R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR�scCs-t|d�r|j�S|j�dkSdS(Ntemptyi(thasattrR�tqsize(RM((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pytqueue_empty�s
cCs-t|d�r|j�S|j�|kSdS(Ntfull(R�R�R�(RMtmaxsize((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt
queue_full�s
t
_TestQueuecBszeZed��Zd�Zed��Zd�Zed��Zd�Zd�Z	ed��Z
d�Zd	�ZRS(
cCs9|j�xtd�D]}|j�qW|j�dS(Ni(twaitRqR_tset(RLtqueuetchild_can_starttparent_can_continueRu((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt	_test_put�s
cCs�d}|jd|�}|j�}|j�}|jd|jd|||f�}t|_|j�|jt|�t�|jt	||�t
�|jd�|jdt�|jdtd�|jdt
�|jd	t
d�|j
d�tjt�|jt|�t
�|jt	||�t�t|j�}t|j
�}|jtj|d
t
�|j|jd�|jtj|d
t
d�|j|jd�|jtj|d
�|j|jd�|jtj|d
tt�|j|jt�|jtj|d
t
t�|j|jd�|jtj|d
tdt�|j|jt�|j�|j�|jt|�t�|jt	||�t
�|j�dS(
NiR�RRRiiiiiiittimeout(RTRURVR�RWR@R]R.R�R�RXRIRt
put_nowaitRRdRmRtassertRaisestFullR,RtTIMEOUT1tTIMEOUT2tTIMEOUT3R�R�R`(RtMAXSIZER�R�R�tprocRIR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_put�sN			





cCsL|j�|jd�|jd�|jd�|jd�|j�dS(Niiii(R�RIR�(RLR�R�R�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt	_test_get�s




cCsP|j�}|j�}|j�}|jd|jd|||f�}t|_|j�|jt|�t�|j	�|j
�tjt
�|jt|�t�|j|jtd�d�|j|jt�d�|j|jdd�d�|j|j�d�|jt|�t�t|j�}t|j�}|jtj|t�|j|jd	�|jtj|td�|j|jd	�|jtj|�|j|jd	�|jtj|tt�|j|jt�|jtj|tt�|j|jd	�|jtj|dt�|j|jt�|j�dS(
NRRRiiR�iiii(RTRURVR�RWR@R]R.R�R�R�RRdRmRXR_Rt
get_nowaitRR�tEmptyR,RR�R�R�R`(RR�R�R�R�R_R�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_get�sB			



cCs+x$tdd�D]}|j|�qWdS(Ni
i(RqRI(RLR�Ru((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt
_test_forkscCs�|j�}x!td�D]}|j|�qWtjt�|jd|jd|f�}t|_	|j
�x*td�D]}|j|j�|�q{W|j
tj|jt�|j�dS(Ni
RRRi(RTRqRIRRdRmRVR�RWR@R]R.R_R�R�RXR`(RR�RuRb((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt	test_fork's
	
cCs�|j�}y|j|j�d�Wntk
rF|jd�nX|jd�|j|j�d�|jd�|j|j�d�|j�|j|j�d�|j�|j|j�d�dS(Nisqsize method not implementediii(RTR.R�R-R:RIR_(RRM((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt
test_qsizeBs




cCs8x1t|jd�D]}tjt�|j�qWdS(N(R�R_RRRdRmt	task_done(RLRMtobj((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt_test_task_doneQs
cCs|j�}tjd	kr;t|d�r;|jd�ngtd�D]$}|jd|jd|f�^qH}x!|D]}t|_	|j
�qyWx!td�D]}|j|�q�W|j�x|D]}|jd�q�Wx|D]}|j�q�WdS(
NiiR�s#requires 'queue.task_done()' methodiRRRi
(ii(t
JoinableQueueR�tversion_infoR�R:txrangeRVR�RWR@R]RIR`R(RR�RutworkersRb((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_task_doneWs4
	


cCs�tj���d}t|dd��}|jd�WdQXtjtj���7yt|�Wn!tj	k
r�|j
d�nXWdQXWdQXdS(Ntimported_by_an_imported_modules.pyRs�if 1:
                    import multiprocessing

                    q = multiprocessing.Queue()
                    q.put('knock knock')
                    q.get(timeout=3)
                    q.close()
                s?Probable regression on import lock contention; see Issue #22853(Rttemp_cwdR�twritet
DirsOnSysPathRtgetcwdt
__import__RTR�tfail(Rtmodule_nameR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_no_import_lock_contentionos

(
R"R#R�R�R�R�R�R�R�R�R�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR��s	:
	4			t	_TestLockcBs#eZd�Zd�Zd�ZRS(cCsq|j�}|j|j�t�|j|jt�t�|j|j�d�|jtt	j
f|j�dS(N(tLockR.tacquireRWRXtreleaseRR�Rt	threadingtThreadError(Rtlock((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt	test_lock�s
cCs�|j�}|j|j�t�|j|j�t�|j|j�t�|j|j�d�|j|j�d�|j|j�d�|jttf|j�dS(N(	tRLockR.R�RWR�RR�R�tRuntimeError(RR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt
test_rlock�scCs|j��WdQXdS(N(R�(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_lock_context�s
(R"R#R�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR��s		
t_TestSemaphorecBs,eZd�Zd�Zd�Zd�ZRS(cCs�|jdt|�|j|j�t�|jdt|�|j|j�t�|jdt|�|j|jt�t�|jdt|�|j|j�d�|jdt|�|j|j�d�|jdt|�dS(Niii(R1R5R.R�RWRXR�R(Rtsem((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt_test_semaphore�scCsr|jd�}|j|�|j|j�d�|jdt|�|j|j�d�|jdt|�dS(Niii(t	SemaphoreR�R.R�RR1R5(RR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_semaphore�s
cCs |jd�}|j|�dS(Ni(tBoundedSemaphoreR�(RR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_bounded_semaphore�scCs&|jdkr+|jdj|j��n|jd�}t|j�}|j|t�t�|j|j	d�|j|td�t�|j|j	d�|j|tt�t�|j|j	d�|j|tt
�t�|j|j	t
�|j|dt�t�|j|j	t�dS(NR%stest not appropriate for {}igR�(R9R:R;R�RR�R.RXR,RRR�RWR�R�(RR�R�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_timeout�s(R"R#R�R�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR��s	
		t_TestConditioncBs>eZedd��Zd�Zd�Zd�Zd�ZRS(cCs9|j�|j�|j|�|j�|j�dS(N(R�R�R�(RLtcondtsleepingtwokenR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR��s




cCss|jdkroyI|jj�|jj�}|j|d�|j|jj�d�Wqotk
rkqoXndS(NR%i(R9t_sleeping_countR5t_woken_countR.t_wait_semaphoreR-(RR�tsleepers((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pytcheck_invariant�s
cCsc|j�}|jd�}|jd�}|jd|jd|||f�}t|_|j�tjd|jd|||f�}t|_|j�|j	�|j	�t
jt�|j
dt|�|j	�|j�|j�t
jt�|j
dt|�|j	�|j�|j�t
jt�|j
dt|�|j|�|j�dS(NiRRRii(t	ConditionR�RVR�RWR@R]R�tThreadR�RRdRmR1R5tnotifyR�R�R`(RR�R�R�Rb((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_notify�s2$	
$	












c	Cs,|j�}|jd�}|jd�}x�td�D]z}|jd|jd|||tf�}t|_|j�t	j
d|jd|||tf�}t|_|j�q7Wxtd�D]}|j�q�Wxtd�D]}|j�q�W|j
dt|�|j|�x�td�D]t}|jd|jd|||f�}t|_|j�t	j
d|jd|||f�}t|_|j�q$Wxtd�D]}|j�q�Wtjt�|j
dt|�|j�|j�|j�tjt�|j
dt|�|j|�dS(NiiRRRi(R�R�RqRVR�R�RWR@R]R�R�R�R�R1R5R�RRdRmt
notify_allR�(RR�R�R�RuRbR ((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_notify_allsF	
	
$	
$	




cCsb|j�}t|j�}|j�|t�}|j�|j|d�|j|j	t�dS(N(
R�RR�R�R�R�R.RR,R(RR�R�R0((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR�Ps

N(	R"R#R�RR�R�R�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR��s		+	;t
_TestEventcBs eZed��Zd�ZRS(cCstjt�|j�dS(N(RRdR�R�(RLtevent((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt_test_event\s
cCsD|j�}t|j�}|j|j�t�|j|d�t�|j|jd�|j|t�t�|j|jt�|j	�|j|j�t
�|j|�t
�|j|jd�|j|t�t
�|j|jd�|j�|jd|j
d|f�}t
|_|j�|j|�t
�dS(NgRRR(RURR�R.tis_setRXR,RR�R�RWtclearRVR�R@R](RR�R�Rb((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt
test_eventas$

	
(R"R#R�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR�Zst
_TestValuecBskeZdZdddd
ed�ed�fgZd
�Zed��Zed�Z	d�Z
d�ZRS(R%Rui�i�^tdg
@g�thi���i�tctxtycCsts|jd�ndS(Ns%requires multiprocessing.sharedctypes(tHAS_SHAREDCTYPESR:(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pytsetUp�scCs4x-t||j�D]\}}|d|_qWdS(Ni(tziptcodes_valuesR/(RLtvaluestsvtcv((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRN�sc	Cs|r:g|jD]!\}}}|j||�^q}n1g|jD]!\}}}|j||�^qD}x7t||j�D]#\}}|j|j|d�q~W|jd|jd|f�}t|_	|j
�|j�x7t||j�D]#\}}|j|j|d�q�WdS(NiRRRi(RtRawValueRRR.R/RVRNRWR@R]R`(	RtrawR�R/t_RRRR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt
test_value�s1.	

cCs|jdt�dS(NR
(RRW(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt
test_rawvalue�sc
CsK|jdd�}|j�}|j�}|jdddd�}|j�}|j�}|j�}|jddd|�}|j�}	|j�}
|j||	�|jdddt�}|jt|d��|jt|d��|j	t
|jdddd�|jdd�}|jt|d��|jt|d��dS(NRuiR�tget_locktget_objtnavalue(RRRRR�R.RXtassertFalseR�R�RR	(
Rtval1tlock1tobj1tval2tlock2tobj2R�tval3tlock3tobj3tarr4tarr5((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_getobj_getlock�s$(s	processes(Rui�i�^(R�g
@g�(R�i���i�(R"R#R3tlatinRRR�RNRXRR
R(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR��s		t
_TestArraycBs�eZdZed��Zejed	kd�e	d��Z
ejed	kd�d��Zejed	kd�d��Zejed	kd�d��Z
ejed	kd�d��ZRS(
R%cCs<x5tdt|��D]}||c||d7<qWdS(Ni(RqRC(RLtseqRu((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR��ssrequires _ctypesc
CsYddddddddd	d
g
}|r?|jd|�}n|jd|�}|jt|�t|��|j|d|d�|jt|d
d!�t|d
d!��tjddd
ddg�|dd+|dd+|jt|�|�|j|�|jd|jd|f�}t|_	|j
�|j�|jt|�|�dS(Ni�iri�i5i�i�i$i�i�i?RuiiiiiiRRR(tRawArraytArrayR.RCR\tarrayR�RVRWR@R]R`(RR
R tarrRb((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt
test_array�s$*0
	

cCs�d}x�td�D]w}|jd|�}|jt|�|�|jt|�dg|�td�|(|jt|�td��~qWdS(Ni
iRui(RqR"R.RCR\(RtsizeRR$((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_array_from_size�s
cCs|jdt�dS(NR
(R%RW(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt
test_rawarray�scCsT|jdd�}|jt|�d�|jdd�}|jt|�d�dS(NRul
i
(R"R.RCR!(RR$traw_arr((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_array_accepts_longsc
Cso|jdtd��}|j�}|j�}|jdtd�dd�}|j�}|j�}|j�}|jdtd�d|�}|j�}	|j�}
|j||	�|jdtd�dt�}|jt	|d��|jt	|d��|j
t|jdtd�dd�|jdtd��}|jt	|d��|jt	|d��dS(NRui
R�RRtnotalock(
R"RqRRRR�R.RXRR�R�RR!(
Rtarr1RRtarr2RRR�tarr3RRRR((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_getobj_getlock_objs&	(s	processesN(R"R#R3R�R�RtskipIfRRRXR%R'R(R*R/(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR�s!!!t_TestContainerscBs)eZdZd�Zd�Zd�ZRS(R&cCs�|jtd��}|j|td��|j�}|j|g�|jtd��|j|td��|j|dd�|j|dd!dddg�|d9}|j|ddddddddddg
�|j|ddgddddddddddddg�|j|td��||g}|j|�}|j|dddddddd	d
dg
ddddddddddg
g�|j|g�}|jd�|j|dddddddd	d
ddgg�dS(
Ni
iiiiiiiiii	RO(R\RqR.textendRy(RR*R+R�RaR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt	test_list*s( 
/>I
cCs�|j�}tdd�}x|D]}t|�||<q"W|j|j�td�|D���|jt|j��|�|jt|j��g|D]}t|�^q��|jt|j��g|D]}|t|�f^q��dS(NiAiFcss!|]}|t|�fVqdS(N(tchr(t.0Ru((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pys	<genexpr>Ns(	tdictRqR4R.RtsortedtkeysRtitems(RR�tindicesRu((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt	test_dictIs
&5cCs�|j�}d|_d|_d|_|j|j|jfd�|`|jt|�d�|jt|d��|jt|d��dS(NtBobtBuilderthiddensNamespace(name='Bob')RJtjob(R<R=(t	NamespaceRJR?t_hiddenR.R�R>R�(Rtn((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_namespaceSs			(smanager(R"R#R3R3R;RC(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR1&s		
gcCstj|�||S(N(RRd(RR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pytsqrbs
tSayWhenErrorcBseZRS((R"R#(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyREfsccs;x4t|�D]&}||kr.td��n|Vq
WdS(NsSomebody said when(RqRE(ttotaltwhenRu((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pytexception_throwing_generatorhst	_TestPoolcBs}eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�ZRS(
cCs[|jj}|j|td�td��|j|tdidd6�tdd��dS(NiiR(i((tpooltapplyR.RD(Rtpapply((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt
test_applypscCsr|jj}|j|ttd��tttd���|j|ttd�dd�tttd���dS(Ni
idt	chunksizei(RJtmapR.RDRq(Rtpmap((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_mapus.cCsx|jdkr+|jdj|j��ndtfd��Y}|jt��"|jjt|�gd�WdQXdS(NR'stest not appropriate for {}tAcBseZd�ZRS(cSstd��dS(Ns
cannot pickle(R�(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR2�s(R"R#R2(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRRsi
(	R9R:R;tobjectR�R�RJRORD(RRR((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_map_unplicklable{s
cCsQy)|jjtgdd�jdt�Wn!tjk
rL|jd�nXdS(NRNiR�s2pool.map_async with chunksize stalled on null list(RJt	map_asyncRDR_R�RhtTimeoutErrorR�(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_map_chunksize�s)cCsT|jjtdtf�}t|j�}|j|�d�|j|jt�dS(Nii1(	RJtapply_asyncRDR�RR_R.R,R(RR0R_((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt
test_async�scCs^|jjtdtdf�}t|j�}|jtj|dt�|j	|j
t�dS(Nig�?R�(RJRXRDR�RR_R�RhRVR,R(RR0R_((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_async_timeout�scCs|jjttd��}|jt|�tttd���|jjttd��}x.td�D] }|j|j�||�qhW|jt	|j�|jjttd�dd�}x.td�D] }|j|j�||�q�W|jt	|j�dS(Ni
i�RNid(
RJtimapRDRqR.R\ROtnextR�t
StopIteration(RtitRu((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt	test_imap�s%!cCs^|jdkr+|jdj|j��n|jjttdd�d�}x.td�D] }|jt	|�||�qYW|j
t|j	�|jjttdd�d�}x.td	�D] }|jt	|�||�q�W|j
t|j	�|jjttdd�d
�}x.td
�D] }|jt	|�||�q#W|j
t|j	�dS(NR&stest not appropriate for {}i
iiiiiii(R9R:R;RJR[RDRHRqR.R\R�RE(RR^Ru((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt#test_imap_handle_iterable_exception�s!!!cCs�|jjttd��}|jt|�tttd���|jjttd�dd�}|jt|�tttd���dS(Ni�RNi5(RJtimap_unorderedRDRqR.R7RO(RR^((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_imap_unordered�s%!c	CsG|jdkr+|jdj|j��n|jjttdd�d�}tttd��}|j	t
��Ex=td�D]/}t|�}|j||�|j
|�q~WWdQX|jjttdd�d�}tttd��}|j	t
��Ex=td�D]/}t|�}|j||�|j
|�q
WWdQXdS(	NR&stest not appropriate for {}i
iiiii(R9R:R;RJRaRDRHRORqR�RER\R^tremove(RR^texpected_valuesRuR/((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt-test_imap_unordered_handle_iterable_exception�s(		cCsl|jttjd�|jttjd�tjd�}|jdt|j��|j�|j�dS(Ni����ii(	R�RRhtPoolR.RCt_poolR�R`(RRb((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_make_pool�s
cCs}|jd�}|jtjgtd�D]}d^q(dd�}|j�t|j�}|�|j|j	dk�dS(Nii'g�������?RNig�������?(
RfRURRdRqRfRR`R>R(RRbRuR|R`((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRg�s.
cCs�|jd�}|j|jtg�g�|jt|jtg��g�|jt|jtg��g�|j|jtg�j�g�|j	�|j
�dS(Ni(RfR.RORDR\R[RaRUR_R�R`(RRb((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_empty_iterable�s"""
(R"R#RMRQRTRWRYRZR_R`RbReRhRgRi(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRIns			
										
cCsd�S(NcSsdS(Ni*((((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt<lambda>�s((((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pytunpickleable_result�st_TestPoolWorkerErrorscBseZdZd�ZRS(R%cCspddlm}tjd�}x6td�D](}|jt�}|j||j�q,W|j	�|j
�dS(Ni����(tMaybeEncodingErrorii(tmultiprocessing.poolRmRhRfRqRXRkR�R_R�R`(RRmRbt	iterationR0((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_unpickleable_result�s
(s	processes(R"R#R3Rp(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRl�st_TestPoolWorkerLifetimecBs eZdZd�Zd�ZRS(R%c
Cs�tjddd�}|jdt|j��g|jD]}|j^q8}g}x0td�D]"}|j|jt	|f��q`Wx6t
|�D](\}}|j|j�t	|��q�W|j�d}x;|rt
d�|jD��r|d8}tjt�q�Wg|jD]}|j^q}	|jd|�|jd|	�|jt|�t|	��|j�|j�dS(Nitmaxtasksperchildi
idi2css|]}|j�VqdS(N(R?(R5R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pys	<genexpr>si(RhRfR.RCRgRKRqRyRXRDt	enumerateR_t_repopulate_pooltallRRdRmRYRtassertNotEqualR7R�R`(
RRbRtorigworkerpidstresultsRutjR0t	countdowntfinalworkerpids((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_pool_worker_lifetimes&  
#

cCs�tjddd�}g}x3td�D]%}|j|jt|df��q(W|j�|j�x6t|�D](\}}|j	|j
�t|��qrWdS(NiRriig333333�?(RhRfRqRyRXRDR�R`RsR.R_(RRbRxRuRyR0((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt%test_pool_worker_lifetime_early_close)s#

(s	processes(R"R#R3R|R}(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRq	s	t_TestZZZNumberOfObjectscBseZdZd�ZRS(R&cCsnd}tj�tj�|jj�}|jj�}||krZ|jj�GH|GHn|j||�dS(Ni(RhRZtgctcollectR&t_number_of_objectst_debug_infoR.(RtEXPECTED_NUMBERtrefst
debug_info((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_number_of_objectsBs

(smanager(R"R#R3R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR~;s(tBaseManagert	BaseProxytRemoteErrortFooBarcBs#eZd�Zd�Zd�ZRS(cCsdS(Nsf()((R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR�UscCs
t�dS(N(R(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pytgWscCsdS(Ns_h()((R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt_hYs(R"R#R�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR�Ts		ccs$xtd�D]}||Vq
WdS(Ni
(R�(Ru((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pytbaz\st
IteratorProxycBs)eZdZd�Zd�Zd�ZRS(R\t__next__cCs|S(N((R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt__iter__bscCs
|jd�S(NR\(t_callmethod(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR\dscCs
|jd�S(NR�(R�(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR�fs(snexts__next__(R"R#t	_exposed_R�R\R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR�`s		t	MyManagercBseZRS((R"R#(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR�istFootcallabletBartexposedR�R�R�t	proxytypet_TestMyManagercBseZdZd�ZRS(R&c	Cs�t�}|j�|j�}|j�}|j�}gdD]}t||�r>|^q>}gdD]}t||�rf|^qf}|j|ddg�|j|ddg�|j|j�d�|jt	|j
�|j|jd�d�|jt|jd�|j|j�d�|j|j
�d�|j|jd�d�|j|jd�d�|jt|�gtd�D]}||^q��|j�dS(	NR�R�R�sf()s_h()i
(R�R�s_h(R�R�s_h(R�R]R�R�R�R�R.R�R�RR�R�R�R�R\Rqtshutdown(	RR&tfootbarR�RJtfoo_methodstbar_methodsRu((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_mymanagerus&	
((3(smanager(R"R#R3R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR�qscCstS(N(t_queue(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt	get_queue�stQueueManagercBseZdZRS(s$manager class used by server process(R"R#t__doc__(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR��sR�t
QueueManager2cBseZdZRS(s@manager class which specifies the same interface as QueueManager(R"R#R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR��st	xmlrpclibt_TestRemoteManagercBsteZdZddedgZeZejrZej	d�Z
eje
�eje
�ned��Z
d�ZRS(R&shello worldg@s=\u043f\u0440\u0438\u0432\u0456\u0442 \u0441\u0432\u0456\u0442cCsKtd|d|dt�}|j�|j�}|jt|j��dS(NtaddressR=t
serializer(R�t
SERIALIZERtconnectR�RIttupleR(RLR�R=R&R�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt_putter�s

cCs�tjd�}tdtjjdfd|dt�}|j�|jd|j	d|j
|f�}t|_|j�t
d|j
d|dt�}|j�|j�}|j|j�|j�|jt|jtj�~|j�dS(Ni R�iR=R�RRR(RturandomR�ttestRtHOSTR�R]RVR�R�RWR@R�R�R�R.R_R|R�t	ExceptionRIRRdR�(RR=R&Rbtmanager2R�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_remote�s!
$	

(smanagerN(R"R#R3RRWRR|Rthave_unicodetutuvalueRyR�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR��s	

t_TestManagerRestartcBs eZed��Zd�ZRS(cCsBtd|d|dt�}|j�|j�}|jd�dS(NR�R=R�shello world(R�R�R�R�RI(RLR�R=R&R�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR��s

cCs�tjd�}tdtjjdfd|dt�}|j�}|j}|j	j
�|j�|jd|j
d|j|f�}t|_|j�|j�}|j|j�d�~|j�td|d|dt�}|j�|j�dS(	Ni R�iR=R�RRRshello world(RR�R�R�RR�R�t
get_serverR�tlistenerR�R]RVR�RWR@R�R.R_R�(RR=R&tsrvrtaddrRbR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_rapid_restart�s$!	

$	


(R"R#R�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR��stt_TestConnectioncBs+eZdZed��Zd�Zd�Zd�Zd�Zed��Z	ee
d��Zej
ed	�d
��Zej
ed	�ejejdkd�ejed
kd�ej
eed�d�d�����Zed��Zej
ed	�ejejdkd�d���ZRS(R%R'cCs8x't|jt�D]}|j|�qW|j�dS(N(R�t
recv_bytestSENTINELt
send_bytesR�(RLtconntmsg((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt_echoscCs@|j�\}}|jd|jd|f�}t|_|j�dddg}td�}|d}tjdt	d��}|j
d	kr�|jt|j
��t�n|j|j|�d�|j|j�|�|j|j|�d�|j|j�|�|j
d	kr�tjdd
gd�}t|�d
gdt|�}	|j|j|�d�|j|j|�t|�|j�|jt|�|	�tjdd
gd�}d
gdt|�d
gdt|�}	|j|j|�d�|j|j|d|j�t|�|j�|jt|�|	�ttdd
��}|j|j|�d�y|j|�}
Wn,tjk
r�}|j|j|f�q�X|jd|
�nt|j�}|j|�t�|j|j d
�|j|t!�t�|j|j t!�|jd�t"j#d�|j|t!�t�|j|j d
�|j|j�d�td�d}
|j|
�|j|j�|
�|jt$�|j%�|j
d	kr2|j|j&t�|j|j't�|j(t)|j�|j(t)|j�n|j*�dS(NRRRig@shello worldi
RuiR%iit i(sexpected BufferTooShort, got %sg�������?tXiiiii(+RwRVR�RWR@R]RRR#RqR9R.R[tfilenoRjRpRzR�R�R\RCtrecv_bytes_intotitemsizet	bytearrayRhtBufferTooShortRR�RRxRXR,RR�RRdR�R�treadabletwritableR�tEOFErrorR`(RR�R�RbR R�tlongmsgR$tbufferR}R0RaRxtreally_big_msg((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_connection	sn	

!,




cCs�|jdt�\}}|j|jd�d�|j|j�d�|jdkr�|j|jt�|j|j	t�|j|jt�|j|j	t�|j
t|jd�|j
t|j�|j
t|j�ndS(NRviR%i(
RwRXR.RpRRzR9R�RWR�R�tIOErrorRx(Rtreadertwriter((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_duplex_falseUscCs�|j�\}}|jd|jd|f�}t|_|j�|j�td�}|j|�|j	|j
�|�|jt�|j�|j�dS(NRRRRO(
RwRVR�RWR@R]R�RR�R.R�R�R`(RR�R�RbR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_spawn_closebs	




cCs�|jdkr+|jdj|j��ntd�}|j�\}}|j|�|j|j�|�|j|d�|j|j�|d�|j|dd�|j|j�|dd!�|j|d�|j|j�td��|j|dd	�|j|j�td��|jt	|j|d
�|jt	|j|dd�|jt	|j|dd�|jt	|j|d
�|jt	|j|dd
�dS(NR%stest not appropriate for {}tabcdefghijklmnopqrstuvwxyziiiiR�iiiii����ii(
R9R:R;RRwR�R.R�R�R(RR�R*R+((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_sendbytesws&
cCsHytj|�Wn,tk
r?}|jtjkr9tS�nXtSdS(N(RtfstattOSErrorterrnotEBADFRXRW(RLtfdRa((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt_is_fd_assigned�scCs�|rKxBtdd�D].}|j|�stj|j�|�qqWntj|�}trxtj|tj	�}ntj
||�tj|�dS(Nii(RqR�Rtdup2R�Rtrecv_handletmsvcrttopen_osfhandletO_WRONLYR�R�(RLR�tdatatcreate_dummy_fdsRuR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt_writefd�s s$test needs multiprocessing.reductioncCs�|jdkr|jd�n|jdt�\}}|jd|jd|df�}t|_|j�tt	j
d��A}|j�}tr�tj
|�}ntj|||j�WdQX|j�tt	j
d��}|j|j�d�WdQXdS(	NR%sonly makes sense with processesRvRRRR�twbtrb(R9R:RwRWRVR�R@R]R�RR�R�R�t
get_osfhandleRtsend_handleRKR`R.R�(RR�R�RbR�R�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_fd_transfer�s!	

Rs*test semantics don't make sense on Windowsis)largest assignable fd number is too smallR�stest needs os.dup2()c	CsI|jdkr|jd�n|jdt�\}}|jd|jd|dtf�}t|_|j�tt	j
d���}|j�}x7tdt
�D]}|j|�s�Pq�q�W|jd	�tj||�ztj|||j�Wdtj|�XWdQX|j�tt	j
d
��}|j|j�d�WdQXdS(NR%sonly makes sense with processesRvRRRR�R�is2could not find an unassigned large file descriptorR�(R9R:RwRWRVR�R@R]R�RR�R�RqtMAXFDR�R�RR�RR�RKR�R`R.R�(RR�R�RbR�R�tnewfd((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_large_fd_transfer�s&	$	


cCstj|j�d�dS(Nt(RR�R�(RR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt_send_data_without_fd�ssdoesn't make sense on WindowscCs�|jdkr|jd�n|jdt�\}}|jd|jd|f�}t|_|j�|jt	t
j|�|j�dS(NR%sonly makes sense with processesRvRRR(
R9R:RwRWRVR�R@R]R�R�RR�R`(RR�R�Rb((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_missing_fd_transfer�s	
(s	processessthreads(R"R#R3R�R�R�R�R�R�R�RXR�Rt
skipUnlesst
HAS_REDUCTIONR�R0R�tplatformR�R�RR�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR��s(	L	
		 t_TestListenerClientcBs/eZdZed��Zd�Zd�ZRS(R%R'cCs-|jj|�}|jd�|j�dS(NRO(t
connectiontClientRpR�(RLR�R�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRN�s
cCs�x�|jjD]�}|jjd|�}|jd|jd|jf�}t|_|j�|j	�}|j
|j�d�|j�|j
�q
WdS(NtfamilyRRRRO(R�tfamiliestListenerRVRNR�RWR@R]tacceptR.RzR`R�(RR�tlRbR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_listener_client�s!	

cCs�|jj�}|jd|jd|jf�}t|_|j�tj	d�|j
�}|j|j�d�|j
�|j�|j
�dS(NRRRiRO(R�R�RVRNR�RWR@R]RRdR�R.RzR�R`(RR�RbR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_issue14725s!	



(s	processessthreads(R"R#R3R�RNR�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR��s	t	_TestHeapcBs eZdZd�Zd�ZRS(R%cCs
d}d}g}xzt|�D]l}ttjdd�d�}tjj|�}|j|�t|�|krtj	|�}||=qqWtjjj
}g}d}	|jj�|j
|jj�x]|jj�D]L}
xC|
D];\}}}
|j|jj|�||
|
|df�q�Wq�WxT|jD]I\}}}
|j|jj|�||
|
|df�|	|
|7}	q4W|j�x{tt|�d�D]c}||d \}}}
||dd \}}}|j||kr�|dkp|
|k�q�WdS(	Ni�i2iii�tfreetoccupiedi(R�RjtrandomtlognormvariateRhtheapt
BufferWrapperRyRCt	randranget_heapt_lockR�R�R�t_len_to_seqRt_arenastindext_allocated_blockstsortRqR>(Rt
iterationst	maxblockstblocksRuR&R+RRuRtLtarenaR]R�tnarenatnstarttnstop((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt	test_heapxs:


cCs�tj�s)tj�|jtj�ntj�}|jtj|�tjd�xJtd�D]<}tj	j
d�}tj	j
d�}||_||_qbWdS(Ni
i�i(Rt	isenabledtenableR�tdisablet
get_thresholdt
set_thresholdRqRhRRtbuddy(Rt
thresholdsRuR*R+((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_free_from_gc�s

	(s	processes(R"R#R3RR(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR�ts	't_FoocBs eZdefdefgZRS(RR(R"R#RRt_fields_(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR�s	t_TestSharedCTypescBsDeZdZd�Zed��Zed�Zd�Zd�Z	RS(R%cCsts|jd�ndS(Ns%requires multiprocessing.sharedctypes(RR:(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR�scCs||jd9_|jd9_|jd9_|jd9_|jd9_x*tt|��D]}||cd9<q^WdS(Ni(R/RRRqRC(RLRRR�R$tstringRu((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt_double�sc		Csntddd|�}ttddd|�}ttddd|�}|jdtd	�d|�}|jd
dd|�}td�|_|jd
|jd|||||f�}t	|_
|j�|j�|j
|jd�|j|jdd�|j
|jd�|j|jd�x,td	�D]}|j|||d�q/W|j
|jtd��dS(NRuiR�g�?g@iiR�i
R�iRORRRig@ig@t
hellohello(RRRR"RqRR/RVR#RWR@R]R`R.R)RR(	RR�RRR�R$R"RbRu((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_sharedctypes�s"*	

cCs|jdt�dS(NR�(R%RW(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_synchronize�scCsWtdd�}t|�}d|_d|_|j|jd�|j|jd�dS(Nig@i(RRRRR.R)(RR�R�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt	test_copy�s		(s	processes(
R"R#R3RR�R#RXR%R&R'(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR!�s	
	t
_TestFinalizecBs&eZdZed��Zd�ZRS(R%cCs�dtfd��Y}|�}tj||jdd�~|�}tj||jdd�}|�|�~|�}tj||jdd�|�}tj||jdddd	�|�}tj||jdddd�|�}	tj|	|jdddd�|�}
tj|
|jdddd�tjd|jdddd�tjd|jdddd�tj�|j�tjd�dS(NR�cBseZRS((R"R#(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR��sRR*R+R�td10texitpriorityitd01itd02td03Rai����tSTOPi����(R*(R+(R�(sd10(sd01(sd02(sd03(Ra(R.(	RSRtFinalizeRpRt_exit_functionR�Rt_exit(RLR�R�R*R+tclose_bR�R)R+R,R-((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt_test_finalize�s0							

c	Cs�|j�\}}|jd|jd|f�}t|_|j�|j�gt|jd�D]}|^q`}|j	|dddddd	d
g�dS(NRRRR.R*R+R)R-R,R+Ra(
RwRVR3RWR@R]R`R�RzR.(RR�R�RbR�R|((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt
test_finalizes	

%(s	processes(R"R#R3R�R3R4(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR(�s&t_TestImportStarcBseZdZd�ZRS(R%cCs�ddddddddg}tr4|jd	�ntdk	rP|jd
�nxe|D]]}t|�tj|}x=t|dd
�D])}|jt	||�d||f�q�WqWWdS(NRhsmultiprocessing.connectionsmultiprocessing.heapsmultiprocessing.managerssmultiprocessing.poolsmultiprocessing.processsmultiprocessing.synchronizesmultiprocessing.utilsmultiprocessing.reductionsmultiprocessing.sharedctypest__all__s%r does not have attribute %r((
R�RyRRR�R�tmodulestgetattrR>R�(RR7RJtmodtattr((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_import2s


(s	processes(R"R#R3R;(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR5.st_TestLoggingcBs/eZdZd�Zed��Zd�ZRS(R%cCsZtj�}|jtj�|j|dk	�|jd�|jd�|jt	�dS(Nsthis will not be printeds
nor will this(
Rht
get_loggertsetLevelRt
SUBWARNINGR>Rtdebugtinfot	LOG_LEVEL(Rtlogger((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_enable_loggingSs

cCs#tj�}|j|j��dS(N(RhR=RptgetEffectiveLevel(RLR�RC((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt_test_level[sc	Csd}d}tj�}tj�}|j}tjdt�\}}|j|�|jd|j	d|f�}t
|_|j�|j
||j��|jtj�|j|�|jd|j	d|f�}t
|_|j�|j
||j��|j|�|jdt�dS(Ni i%RvRRRtlevel(RhR=tloggingt	getLoggerRGRwRXR>RVRFRWR@R]R.RztNOTSETRB(	RtLEVEL1tLEVEL2RCtroot_loggert
root_levelR�R�Rb((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt
test_level`s&	
	

	

(s	processes(R"R#R3RDR�RFRO(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR<Os	t_TestPollEintrcBsAeZdZed��Zejeed�d�d��Z	RS(R%cCs$tjd�tj|tj�dS(Ng�?(RRdRtkilltsignaltSIGUSR1(RLRK((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt_killer�s
RSsrequires SIGUSR1cs�tg��fd�}tj�}tjtj|�}z�|jd|jd|f�}|j�|jdtj	dd�}|j�|j
�|j�d�|j|j
d�|j
�Wdtjtj|�XdS(Ncst�d<dS(Ni(RW(R(t
got_signal(sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pytrecord�sRRRii(i(RXRRERRRSRVRTR]RRdR`R>R.RF(RRVRKt
oldhandlertkillerRb((RUsr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_poll_eintr�s	


(s	processes(
R"R#R3R�RTRR�R�RRRY(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRP�stTestInvalidHandlecBs#eZejed�d��ZRS(sskipped on WindowscCs<tjd�}|jt|j�|jttjd�dS(Ni�M�i����(Rt
ConnectionR�R�Rx(RR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_invalid_handles�s(R"R#RR0tWIN32R\(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRZ�scCs[i}xN|D]F}t||�}t|�tt�krIt|�}n|||<q
W|S(N(R8R[tget_attributeststaticmethod(tSourcetnamesR�RJR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR^�s
c	Cs�i}t�}|j�}x�|j�D]�}|jd�r(||}||jkr�d||d}d|tj|fd��Y}|||<||_|j|_q�q(q(W|S(Nt_TesttWithitTempcBseZRS((R"R#(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRd�s(	tglobalst
capitalizeR8t
startswithR3RtTestCaseR"R#(	tMixinR[R|tglobtTypeRJtbasetnewnameRd((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pytcreate_test_cases�s	

	tProcessesMixincBs0eZdZejZe�jeed��RS(R%RTR�R�R�R�R�RURR"R	R!R<RZRwR�R�Rf(sQueuesLocksRLocks	SemaphoresBoundedSemaphores	ConditionsEventsValuesArraysRawValuesRawArrayscurrent_processsactive_childrensPipes
connections
JoinableQueuesPool(R"R#R9RhRVtlocalstupdateR^(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRo�s	R[R%tManagerMixincBsEeZdZejZejejj�Z	e
�jee	d��RS(R&RTR�R�R�R�R�RURR"R\R6R@R�Rf(sQueuesLocksRLocks	SemaphoresBoundedSemaphores	ConditionsEventsValuesArrayslistsdicts	Namespaces
JoinableQueuesPool(
R"R#R9RhRVRSt__new__tmanagerstSyncManagerR&RpRqR^(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRr�s	R&tThreadsMixincBs6eZdZejjZe�jeejd��RS(R'RTR�R�R�R�R�RURR"R<RZRwR�R6R\R@R�Rf(sQueuesLocksRLocks	SemaphoresBoundedSemaphores	ConditionsEventsValuesArrayscurrent_processsactive_childrensPipes
connectionsdictslists	Namespaces
JoinableQueuesPool(	R"R#R9RhtdummyRVRpRqR^(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRv�sR't	OtherTestcBseZd�Zd�ZRS(cCs<dtfd��Y}|jtjtjj|�d�dS(Nt_FakeConnectioncBseZd�Zd�ZRS(cSsdS(Nssomething bogus((RR&((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR�		scSsdS(N((RR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR�	s(R"R#R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRy	s	tabc(RSR�RhtAuthenticationErrorR�tdeliver_challenge(RRy((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt#test_deliver_challenge_auth_failure	s	cCs<dtfd��Y}|jtjtjj|�d�dS(NRycBs#eZd�Zd�Zd�ZRS(cSs
d|_dS(Ni(tcount(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR	scSs?|jd7_|jdkr(tjjS|jdkr;dSdS(Niissomething bogusR�(R~RhR�t	CHALLENGE(RR&((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR�	s
cSsdS(N((RR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR�	s(R"R#RR�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRy	s		Rz(RSR�RhR{R�tanswer_challenge(RRy((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt"test_answer_challenge_auth_failure	s	(R"R#R}R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRx	s	
cCs|jd7_dS(Ni(R�(tns((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pytinitializer&	stTestInitializerscBs,eZd�Zd�Zd�Zd�ZRS(cCs1tj�|_|jj�|_d|j_dS(Ni(RhtManagertmgrR@R�R�(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR*	scCs|jj�dS(N(R�R�(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttearDown/	scCs_tjj�}|jt|jd�|jt|jf�|j|jj	d�|j
�dS(Ni(RhRtRuR�t	TypeErrorR]R�R�R.R�R�(Rtm((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_manager_initializer2	s
cCsb|jttjdd�tjdt|jf�}|j�|j�|j|jj	d�dS(NR�i(
R�R�RhRfR�R�R�R`R.R�(RRb((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_pool_initializer9	s


(R"R#RR�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR�)	s			cCs1y|jdt�}Wntjk
r,nXdS(Ntblock(R_RXRTR�(RMtitem((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt_this_sub_processE	scCsHtj�}tjdtd|f�}t|_|j�|j�dS(NRRR(RhRTRVR�RWR@R]R`(RMR�tsubProc((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt
_test_processK	s
	
cCs||S(N((R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt_afuncR	sc	Cs=tjdd�}|jtdddddddg�}dS(	NR%iiiiiii(RhRfROR�(RJR((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pytpool_in_processU	st
_file_likecBs2eZd�Zed��Zd�Zd�ZRS(cCs||_d|_dS(N(t	_delegateRt_pid(Rtdelegate((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRZ	s	cCs7tj�}||jkr0||_g|_n|jS(N(RRER�t_cache(RRK((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pytcache^	s
	cCs|jj|�dS(N(R�Ry(RR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR�g	scCs)|jjdj|j��g|_dS(NR�(R�R�R`R�R�(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pytflushj	s(R"R#RtpropertyR�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR�Y	s			tTestStdinBadfiledescriptorcBs#eZd�Zd�Zd�ZRS(cCs?tj�}tjdtd|f�}|j�|j�dS(NRRR(RhRTRVR�R]R`(RR�R�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_queue_in_processp	s
cCs*tjdt�}|j�|j�dS(NRR(RhRVR�R]R`(RRb((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_pool_in_processv	s
csct�}t|���jd�tjd�fd��}�j�|j�dks_t�dS(NR�RRcs
�j�S(N(R�((tflike(sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRj	s(RR�R�RhRVR�tgetvalueR�(RtsioR�((R�sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt
test_flushing{	s	

(R"R#R�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR�n	s		tTestTimeoutscBs eZed��Zd�ZRS(cCsQtjd�|jd�|j�tjj|�}|jd�|j�dS(Nii{i�(RRdRpR�RhR�R�(RLtchildR�R�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt
_test_timeout�	s



cCs�tj�}z�tjd�tjdt�\}}tjjdd�}tjd|j	d||j
f�}|j�|j�|j
|j�d�|j�|j�}|j
|j�d�|j�|j�|jd	�Wdtj|�XdS(
Ng�������?RvR�tAF_INETRRRi{i�i
(tsockettgetdefaulttimeouttsetdefaulttimeoutRhRwRWR�R�RVR�R�R]R�R.RzR�R`(Rtold_timeouttparentR�R�RbR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR��	s"





(R"R#R�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR��	s	tTestNoForkBombcBseZd�ZRS(cCs�tjjtjjt�d�}tretjj|�\}}}|j	|d�|j
d|�nAtjj|�\}}}|j	|j�d�|j	|d�dS(Nsmp_fork_bomb.pyR�R�t123(
RtpathR`tdirnamet__file__R]R�t
script_helpertassert_python_failureR.R^tassert_python_okR�(RRJtrctoutterr((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_noforkbomb�	s!(R"R#R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR��	st	TestFlagscBs8eZed��Zed��Zejd��ZRS(cCs|jttj��dS(N(RpR�R�tflags(RLR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pytrun_in_grandchild�	scCs�ddl}tjdt�\}}tjd|jd|f�}|j�|j�}|j�|j	�|j	�t
tj�|f}|j
|�GHdS(Ni����RvRRR(tjsonRhRwRXRVR�R]RzR`R�R�R�R�tdumps(RLR�R�RRbtgrandchild_flagsR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pytrun_in_child�	s



cCsxddl}ddl}dd}|jtjdddd|g�}|j|jd��\}}|j||�dS(	Ni����s1from test.test_multiprocessing import TestFlags; sTestFlags.run_in_child()s-Es-Bs-Os-ctascii(R�t
subprocesstcheck_outputR�t
executabletloadstdecodeR.(RR�R�tprogR�tchild_flagsR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt
test_flags�	s(R"R#R�R�R�Rtrequires_unicodeR�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR��	s
tTestForkAwareThreadLockcBs eZed��Zd�ZRS(cCsl|dkrHtjd|jd|d|f�}|j�|j�n|jttj��|j	�dS(NiRRR(
RhRVR�R]R`RpRCRt_afterfork_registryR�(RLRBR�Rb((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR��	s%

cCs�tjt�\}}tj�}ttj�}tjd|jdd|f�}|j	�|j
�}|j�|j||�dS(NRRRi(
RhRwRXRtForkAwareThreadLockRCR�RVR�R]RzR`tassertLessEqual(RR�RR�told_sizeRbtnew_size((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR��	s!

(R"R#R�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR��	s
tTestIgnoreEINTRcBsneZed��Zejeed�d�d��Zed��Z	ejeed�d�d��Z
RS(cCsWd�}tjtj|�|jd�|j�}|j|�|jdd�dS(NcSsdS(N((tsignumtframe((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pythandler�	streadyRii(RRRSRpRzR�(RLR�R�R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt_test_ignore�	s	

RSsrequires SIGUSR1cCs tj�\}}z�tjd|jd|f�}t|_|j�|j�|j|j	�d�t
jd�tj
|jtj�t
jd�|jd�|j|j	�d�t
jd�tj
|jtj�|j|j�dd�t
jd�|j�Wd|j�XdS(	NRRRR�g�������?i�Rii(RhRwRVR�RWR@R]R�R.RzRRdRRQRKRRRSRpR�R`(RR�R�Rb((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_ignore
s&	






cCsXd�}tjtj|�tjj�}|j|j�|j�}|jd�dS(NcSsdS(N((R�R�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR�
stwelcome(RRRSRhR�R�RpR�R�(RLR�R�R�R*((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt_test_ignore_listener
s	cCs�tj�\}}z�tjd|jd|f�}t|_|j�|j�|j�}t	j
d�tj|j
tj�t	j
d�tjj|�}|j|j�d�|j�Wd|j�XdS(NRRRg�������?R�(RhRwRVR�RWR@R]R�RzRRdRRQRKRRRSR�R�R.R`(RR�R�RbR�tclient((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyttest_ignore_listener$
s	



(R"R#R�R�RR�R�RRR�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyR��	s
$
cs�tjjd�rHytj�}WqHtk
rDtjd��qHXnt�|dkrnddl
m}ntj
�tj�jt�tjd�t_tjjd�t_tjj�tjj�tjjd�t_ttj�dd��ttj�dd��ttj�dd	��t}tj j!�tj"�fd
�|D��}t#j$dt%fdt%fd
t&��||�WdQXtjj'�tjj'�tjj'�tjj(�t`t`t`dS(Ntlinuxs1OSError raises on RLock creation, see issue 3111!i����(trun_unittestitkeycSs|jS(N(R"(ttc((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRjZ
scSs|jS(N(R"(R�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRj[
scSs|jS(N(R"(R�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyRj\
sc3s|]}�|�VqdS(N((R5R�(tloadTestsFromTestCase(sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pys	<genexpr>a
ss%.+__(get|set)slice__ has been removedssys.exc_clear\(\) not supportedtquiet()R�R�RgRhR�R�RRRRttest.test_supportR�Rtget_temp_dirR=R>RBRfRoRJRwRvRrR&RR]R7ttestcases_processesRttestcases_threadsttestcases_managerttestcases_othertdefaultTestLoaderR�t	TestSuiteRtcheck_py3k_warningstDeprecationWarningRWRfR�(R�R�t	testcasestsuite((R�sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt	test_mainC
s:



J	




cCsttjdd�j�dS(Nt	verbosityi(R�RtTextTestRunnerR�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pytmains
st__main__(g=
ףp=�?gffffff�?gffffff�?(g�������?g�������?g�������?(R�s_h(�RRTRR�RRRRR#R�RRHR�ttest.script_helperR�RRt
import_moduleRR�tmultiprocessing.dummyRhtmultiprocessing.connectiontmultiprocessing.managerstmultiprocessing.heapRnRRRWR�tImportErrorRXtmultiprocessing.sharedctypesRRRR�RR�RR?RBRmR(R�R�R�R8t
HAVE_GETVALUER�R]RR�tctypesR
RRRSRRR$R5R8RVR�R�R�R�R�R�R�R�R�R�RR1RDRRERHRIRkRlRqR~R�R�R�R�R�R�R�tregisterR�R�R�R�R�R�R�R�R�R�R�R�RR!R(R5R<RPRhRZR^RnRoR�ReRqRrR�RvR�RxR�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R"(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_multiprocessing.pyt<module>s








	

 
		�		�6�-EZ<	�	2		$	
4%��E69!C 			


!					"!D		0