Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 52.14.163.169
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : test_capi.pyo
�
?��cc@�sqddlmZddlZddlZddlZddlZddlZddlmZ	yddl
Z
ddlZWnek
r�dZ
dZnXe	jd�Zdejfd��YZejed�dejfd	��Y�Zd
ejfd��YZejeoe
d�dejfd
��Y�Zdejfd��YZd�Zedkrme�ndS(i����(twith_statementN(ttest_supportt	_testcapitCAPITestcB�seZd�ZRS(cC�stj�dS(N(Rttest_buildvalue_N(tself((s5/usr/local/python-2.7/lib/python2.7/test/test_capi.pyRs(t__name__t
__module__R(((s5/usr/local/python-2.7/lib/python2.7/test/test_capi.pyRss!Threading required for this test.tTestPendingCallscB�s8eZd�Zdd�Zd�Zd�Zd�ZRS(c�sa�fd�}xKt|�D]=}tjtj�d�xtrXtj|�r<Pq<q<WqWdS(Nc�s�jd�dS(N(tappendtNone((tl(s5/usr/local/python-2.7/lib/python2.7/test/test_capi.pytcallbacksg{�G�z�?(trangettimetsleeptrandomtTrueRt_pending_threadfunc(RRtnRti((Rs5/usr/local/python-2.7/lib/python2.7/test/test_capi.pytpendingcalls_submits	cC�s�d}x�t|�|kr�tr>tjr>dt|�fGnxtd�D]}||}qKW|r{|jj�r{q	n|d7}|j|dkd|t|�f�q	Wtr�tjr�dt|�fGHndS(Nis(%i)i�ii's(timeout waiting for %i callbacks, got %i(tlentFalsetsupporttverbosetxrangeteventtis_sett
assertTrue(RRRtcontexttcountRta((s5/usr/local/python-2.7/lib/python2.7/test/test_capi.pytpendingcalls_wait,s
cC�s�d}g}dtfd��Y}|�}g|_d|_||j|_d|_tj�|_tj�|_	gt
|j�D]$}tjd|jd|f�^q�}t
j|��|j|j||�WdQXdS(Ni tfoocB�seZRS((RR(((s5/usr/local/python-2.7/lib/python2.7/test/test_capi.pyR"Csiittargettargs(tobjectRRtnThreadst	nFinishedt	threadingtLocktlocktEventRR
tThreadtpendingcalls_threadRt
start_threadsR!(RRtthreadsR"RR((s5/usr/local/python-2.7/lib/python2.7/test/test_capi.pyttest_pendingcalls_threaded?s				7c
C�s�z|j|j|j�Wd|j�8|jd7_|j}trZtjrZdG|GHnWdQX||jkr|j	j
�nXdS(Nisfinished threads: (RRRR*R'RRRR&Rtset(RRR'((s5/usr/local/python-2.7/lib/python2.7/test/test_capi.pyR-Rs
	cC�s0g}d}|j||�|j||�dS(Ni@(RR!(RRR((s5/usr/local/python-2.7/lib/python2.7/test/test_capi.pyttest_pendingcalls_non_threaded^sN(RRRR
R!R0R-R2(((s5/usr/local/python-2.7/lib/python2.7/test/test_capi.pyRs
			tTestGetIndicescB�seZd�ZRS(cC�sD|jtjtddd�d�d�|jtjtddd�d�d�|jtjtddd�d�d�|jtjtdd	d�d�d�|jtjtddd
�d�d
�|jtjtddd
�d�d�|jtjtddd
�d�d�|jtjtdd	d
�d�d�dS(Nl
iiidii
g333333$@lg�����4@l(ii
ii(ii
ii(ii
ii(ii
ii(tassertEqualRtget_indicestsliceR
(R((s5/usr/local/python-2.7/lib/python2.7/test/test_capi.pyttest_get_indicesks((((((((RRR7(((s5/usr/local/python-2.7/lib/python2.7/test/test_capi.pyR3istTestThreadStatecB�seZejd��ZRS(c�s@�fd�}|�tjd|�}|j�|j�dS(Nc�s_g��fd�}tj|�|}}tjd��j�jtj��dd�dS(Nc�s�jtj��dS(N(R	tthreadt	get_ident((tidents(s5/usr/local/python-2.7/lib/python2.7/test/test_capi.pyR�siis/Couldn't find main thread correctly in the list(Rt_test_thread_stateRRR4RR9R:(RR tb(R(R;s5/usr/local/python-2.7/lib/python2.7/test/test_capi.pyR#}s


R#(R(R,tstarttjoin(RR#tt((Rs5/usr/local/python-2.7/lib/python2.7/test/test_capi.pyttest_thread_statezs


(RRRtreap_threadsRA(((s5/usr/local/python-2.7/lib/python2.7/test/test_capi.pyR8wst
Test_testcapicB�s(eZe�jd�ee�D��RS(cc�sC|]9}|jd�r|jd�r|tt|�fVqdS(ttest_t_codeN(t
startswithtendswithtgetattrR(t.0tname((s5/usr/local/python-2.7/lib/python2.7/test/test_capi.pys	<genexpr>�s(RRtlocalstupdatetdirR(((s5/usr/local/python-2.7/lib/python2.7/test/test_capi.pyRC�scC�stjttttt�dS(N(Rtrun_unittestRRR8R3RC(((s5/usr/local/python-2.7/lib/python2.7/test/test_capi.pyt	test_main�st__main__(t
__future__RtstringtsysRRtunittestttestRRR9R(tImportErrorR
t
import_moduleRtTestCaseRt
skipUnlessRR3R8RCROR(((s5/usr/local/python-2.7/lib/python2.7/test/test_capi.pyt<module>s.

N	
© 2025 GrazzMean