%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/plesk/python/2.7/lib64/python2.7/ctypes/test/
Upload File :
Create Path :
Current File : //opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_errno.pyo

�
5}�ac@s�ddlZddlZddlZddlTddlmZddlmZyddlZWne	k
rwdZnXdejfd��YZe
dkr�ej�ndS(i����N(t*(tfind_library(ttest_supporttTestcBs5eZd�Zejejdkd�d��ZRS(cs,td���dkr*tjd��nt�dt�}tjdkrW|j}n	|j	}t
tf|_�j
|dd�d��j
t�tj��j
td�tj��j
t�d�tr(��fd	�}tjd
|�}|j�|j��j
t�d�td�ndS(NtcsUnable to find C libraryt	use_errnotnttii����i cstd�t�dt�}tjdkr7|j}n	|j}ttf|_	�j
|dd�d��j
t�d�dS(NiRRRi����(t	set_errnotCDLLtFalsetostnamet_opentopentc_char_ptc_inttargtypestassertEqualt	get_errno(tlibct	libc_open(t	libc_nametself(s?/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_errno.pyt_workers
	ttarget(RtNonetunittesttSkipTestR	tTrueRRR
RRRRRRterrnotENOENTRt	threadingtThreadtstarttjoin(RRRRtt((RRs?/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_errno.pyt	test_opens&	

RsTest specific to Windowscs�tddt�}|j}tg|_�jd|d���jt�d��jtd�d��jt�d��fd�}tj	d|�}|j
�|j��jt�d�td�dS(	Ntkernel32tuse_last_erroritfooi~i csRtd�tddt�}|j}tg|_|d��jt�d�dS(NiR&R'tbar(tset_last_errortWinDLLR
tGetModuleHandleWt	c_wchar_pRRtget_last_error(tdlltGetModuleHandle(R(s?/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_errno.pyR=s
	
R(R+RtGetModuleHandleAR-RRR.R*R R!R"R#(RR/R0RR$((Rs?/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_errno.pyttest_GetLastError1s	


(t__name__t
__module__R%Rt
skipUnlessRRR2(((s?/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_errno.pyR
s	&t__main__(RRRtctypestctypes.utilRttestRR tImportErrorRtTestCaseRR3tmain(((s?/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_errno.pyt<module>s$


E

Zerion Mini Shell 1.0