HEX
Server: Apache
System: FreeBSD www860.sakura.ne.jp 13.0-RELEASE-p14 FreeBSD 13.0-RELEASE-p14 #2: Mon Dec 9 13:54:55 JST 2024 root@www5301.sakura.ne.jp:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
User: yoyo0427 (1306)
PHP: 8.3.8
Disabled: NONE
Upload Files
File: //usr/local/lib/python2.7/ctypes/test/test_errno.pyc
�
P��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(s2/usr/local/lib/python2.7/ctypes/test/test_errno.pyt_workers
	ttarget(RtNonetunittesttSkipTestR	tTrueRRR
RRRRRRterrnotENOENTRt	threadingtThreadtstarttjoin(RRRRtt((RRs2/usr/local/lib/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(s2/usr/local/lib/python2.7/ctypes/test/test_errno.pyR=s
	
R(R+RtGetModuleHandleAR-RRR.R*R R!R"R#(RR/R0RR$((Rs2/usr/local/lib/python2.7/ctypes/test/test_errno.pyttest_GetLastError1s	


(t__name__t
__module__R%Rt
skipUnlessRRR2(((s2/usr/local/lib/python2.7/ctypes/test/test_errno.pyR
s	&t__main__(RRRtctypestctypes.utilRttestRR tImportErrorRtTestCaseRR3tmain(((s2/usr/local/lib/python2.7/ctypes/test/test_errno.pyt<module>s$


E