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_memfunctions.pyo
�
P��ac@shddlZddlZddlTddlmZdejfd��YZedkrdej�ndS(i����N(t*(tneed_symboltMemFunctionsTestcBsYeZejd�d��Zd�Zd�Zd�Zd�Ze	d�d��Z
RS(s
test disabledcCs<|jtttfd��|jtttfd��dS(NcSstdtjd�S(Nufooi(t
wstring_attsystmaxint(((s9/usr/local/lib/python2.7/ctypes/test/test_memfunctions.pyt<lambda>tcSstdtjd�S(Ntfooi(t	string_atRR(((s9/usr/local/lib/python2.7/ctypes/test/test_memfunctions.pyRR(tassertRaisest
OverflowErrortMemoryErrortSystemError(tself((s9/usr/local/lib/python2.7/ctypes/test/test_memfunctions.pyt
test_overflows
cCs�td�}d}t||t|��}|j|jd�|jt|�d�|jt|d�d�|jt|d�d�|jt|d�d�dS(	Ni@BsHello, WorlditHelloisHello, WorldiR(tcreate_string_buffertmemmovetlentassertEqualtvalueR	(Rtatptresult((s9/usr/local/lib/python2.7/ctypes/test/test_memfunctions.pyttest_memmovescCs�td�}t|td�d�}|j|jd�|jt|�d�|jt|�d�|jt|d�d�dS(Ni@Btxitxxxxxxxxxxxxxxxxisxxxxxxxxxxxxxxxx(RtmemsettordRRR	(RRR((s9/usr/local/lib/python2.7/ctypes/test/test_memfunctions.pyttest_memsetsc	CsZtdttd��}|jt|t�jd�|jt|tt��d dddddd	d
g�|jt|tt��ddd�dddddd	d
g�|jt|tt��ddd�d
d	dddddg�|jt|tt��ddd
�dddd
g�|jt|tt��ddd�dg�dS(Ni tabcdefiiaibicidieifiii����i(
tc_ubytetmapRRtcasttc_char_pRtPOINTERtc_bytetNone(RR((s9/usr/local/lib/python2.7/ctypes/test/test_memfunctions.pyt	test_cast(s%%%%cCsktd�}|jdtj|��|j|d�|jtdd�d�|jtdd�d�dS(Nsfoo bariisfoo bariR(R	RRtgetrefcountt
assertTrue(Rts((s9/usr/local/lib/python2.7/ctypes/test/test_memfunctions.pyttest_string_at6s
tcreate_unicode_buffercCs�td�}td�}t||t|�tt��}|j|jd�|jt|�d�|jt|d�d�|jt|d�d�|jt|d�d�dS(	NsHello, Worldi@BiRisHello, WorldiR(R,RRtsizeoftc_wcharRRR(RRRR((s9/usr/local/lib/python2.7/ctypes/test/test_memfunctions.pyttest_wstring_at@s"(t__name__t
__module__tunittesttskipRRRR'R+RR/(((s9/usr/local/lib/python2.7/ctypes/test/test_memfunctions.pyRs	
				
t__main__(	RR2tctypestctypes.testRtTestCaseRR0tmain(((s9/usr/local/lib/python2.7/ctypes/test/test_memfunctions.pyt<module>s
F