Current File : //home/strato/chroot/opt/RZpython2/lib/python2.7/test/test_threaded_import.pyo
�
��#ec@s�ddlZddlmZmZmZed�Zej�aej�ad�Z	d�Z
d�Zedkr}e�ndS(i����N(tverboset
TestFailedt
import_moduletthreadcCs_ddl}|jdd�}tj�td8atdk}tj�|r[tj�ndS(Ni����iii(trandomt	randrangetcritical_sectiontacquiretNtreleasetdone(Rtxtfinished((s9/opt/RZpython2/lib/python2.7/test/test_threaded_import.pyttasks


cCsjddl}trdGnddl}z3|jjrIt|jj��ntrWdGHnWd|jd=XdS(Ni����stesting import hangers ...sOK.stest.threaded_import_hangers(tsysRttest.threaded_import_hangerstthreaded_import_hangersterrorsRtmodules(Rttest((s9/opt/RZpython2/lib/python2.7/test/test_threaded_import.pyttest_import_hangersscCs�ddl}|j�r*tjd��ntj�xbd
D]ZatrVdGtGdGnx$tt�D]}t	j
td�qcWtj�tr;dGHq;q;Wtj�t
�dS(Ni����s"can't run when import lock is heldii2itTryingsthreads ...sOK.(ii2(ii2ii2ii2((timpt	lock_heldtunittesttSkipTestR
RRRtrangeRtstart_new_threadR
R	R(Rti((s9/opt/RZpython2/lib/python2.7/test/test_threaded_import.pyt	test_main6s



t__main__(
Rttest.test_supportRRRRt
allocate_lockRR
R
RRt__name__(((s9/opt/RZpython2/lib/python2.7/test/test_threaded_import.pyt<module>s