Current File : //home/strato/chroot/opt/RZpython2/lib/python2.7/ctypes/test/test_internals.pyo
�
��#ec@s\ddlZddlTddlmZdejfd��YZedkrXej�ndS(i����N(t*(tgetrefcounttObjectsTestCasecBsGeZd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cCs |jt|�t|��dS(N(tassertEqualtid(tselftatb((s:/opt/RZpython2/lib/python2.7/ctypes/test/test_internals.pyt
assertSamescCsKd}t|�}t|�}|j|t|��|j|jd�dS(Ni�ހ(tgrctc_intRt_objectstNone(Rtitrefcnttci((s:/opt/RZpython2/lib/python2.7/ctypes/test/test_internals.pyt	test_intss
cCsOd}t|�}t|�}|j|dt|��|j|j|�dS(NsHello, Worldi(R	tc_char_pRRR(RtsRtcs((s:/opt/RZpython2/lib/python2.7/ctypes/test/test_internals.pyt
test_c_char_ps
cCsgdtfd��Y}d}d}|�}|j|jd�||_||_|j|jd�dS(NtXcBs eZdefdefgZRS(RR(t__name__t
__module__R
t_fields_(((s:/opt/RZpython2/lib/python2.7/ctypes/test/test_internals.pyR'sirmism(t	StructureRRRRR(RRRRtx((s:/opt/RZpython2/lib/python2.7/ctypes/test/test_internals.pyttest_simple_struct&s			cs�dtfd��Y�dtf�fd��Y}|�}|j|jd�����}}|||_|_|j|jiid6id6�d	\|_|_|j|jiid6id6�dS(
NRcBs eZdefdefgZRS(RR(RRR
R(((s:/opt/RZpython2/lib/python2.7/ctypes/test/test_internals.pyR3stYcs eZd�fd�fgZRS(Rty(RRR((R(s:/opt/RZpython2/lib/python2.7/ctypes/test/test_internals.pyR6st0t1i*i](i*i](RRRRRRRR(RRRtx1tx2((Rs:/opt/RZpython2/lib/python2.7/ctypes/test/test_internals.pyttest_embedded_structs2s	!cs�dtfd��Y�dtf�fd��Y}d}d}��}||_||_|j|ji|d6|d6�|�}||_|j|jii|d6|d6d6�dS(	NRcBs eZdefdefgZRS(RR(RRRR(((s:/opt/RZpython2/lib/python2.7/ctypes/test/test_internals.pyRCsRcs eZd�fd�fgZRS(RR(RRR((R(s:/opt/RZpython2/lib/python2.7/ctypes/test/test_internals.pyRFssHello, WorldsHallo, WeltRR(RRRRRR(RRts1ts2RR((Rs:/opt/RZpython2/lib/python2.7/ctypes/test/test_internals.pyttest_xxxBs			!		cCs^dtfd��Y}td}|dddd�}|j|jd�|�}||_dS(NRcBseZdee�fgZRS(tdata(RRtPOINTERR
R(((s:/opt/RZpython2/lib/python2.7/ctypes/test/test_internals.pyRYsiiii!i,(RR
RRRR&(RRtARR((s:/opt/RZpython2/lib/python2.7/ctypes/test/test_internals.pyttest_ptr_structXs
	(	RRRRRRR"R%R)(((s:/opt/RZpython2/lib/python2.7/ctypes/test/test_internals.pyRs						t__main__(	tunittesttctypestsysRR	tTestCaseRRtmain(((s:/opt/RZpython2/lib/python2.7/ctypes/test/test_internals.pyt<module>s

R