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_random_things.pyo
�
P��ac@s�ddlTddlZddlZd�Zejejdkd�dejfd��Y�Zdejfd	��YZe	d
kr�ej
�ndS(i����(t*NcCsd|t|��dS(Ni*(t
ValueError(targ((s:/usr/local/lib/python2.7/ctypes/test/test_random_things.pyt
callback_funcstwin32sWindows-specific testtcall_function_TestCasecBseZd�ZRS(cCs�ddlm}ttjj_ttftjj_	ttjj_tjjd�}tjj|d�}|j
||d�tjjd��dS(Ni����(t
call_functiontkernel32tGetModuleHandleA(N(
t_ctypesRtc_void_ptwindllRtLoadLibraryAtrestypetc_char_ptGetProcAddresstargtypestassertEqualtNoneR(tselfRthdlltfuncaddr((s:/usr/local/lib/python2.7/ctypes/test/test_random_things.pyttest
s(t__name__t
__module__R(((s:/usr/local/lib/python2.7/ctypes/test/test_random_things.pyRstCallbackTracbackTestCasecBs5eZd�Zd�Zd�Zd�Zd�ZRS(cOsPddl}tj}|j�}t_z|||�Wd|t_X|j�S(Ni����(tStringIOtsyststderrtgetvalue(RtfunctargstkwRt
old_stderrtlogger((s:/usr/local/lib/python2.7/ctypes/test/test_random_things.pytcapture_stderr%s	
cCsEttt�t�}|j|d�}|j|j�dd�dS(Ni*i����sValueError: 42(t	CFUNCTYPEtc_intRR#Rt
splitlines(Rtcbtout((s:/usr/local/lib/python2.7/ctypes/test/test_random_things.pyttest_ValueError0scCsIttt�t�}|j|d�}|j|j�dd d�dS(Nii����isZeroDivisionError: (R$R%RR#RR&(RR'R(((s:/usr/local/lib/python2.7/ctypes/test/test_random_things.pyttest_IntegerDivisionError6scCsIttt�t�}|j|d�}|j|j�dd d�dS(Ngi����isZeroDivisionError: (R$R%tc_doubleRR#RR&(RR'R(((s:/usr/local/lib/python2.7/ctypes/test/test_random_things.pyttest_FloatDivisionError<scCsEttt�t�}|j|d�}|j|j�dd�dS(Ntspami����s>TypeError: unsupported operand type(s) for //: 'int' and 'str'(R$R%RRR#RR&(RR'R(((s:/usr/local/lib/python2.7/ctypes/test/test_random_things.pyttest_TypeErrorDivisionErrorBs(RRR#R)R*R,R.(((s:/usr/local/lib/python2.7/ctypes/test/test_random_things.pyRs
				t__main__(tctypestunittestRRt
skipUnlesstplatformtTestCaseRRRtmain(((s:/usr/local/lib/python2.7/ctypes/test/test_random_things.pyt<module>s
	0