%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/plesk/python/2.7/lib64/python2.7/ctypes/test/
Upload File :
Create Path :
Current File : //opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_values.pyc

�
5}�ac@s�dZddlZddlZddlTddlZdejfd��YZdejfd��YZedkrej	�ndS(	s.
A testcase which accesses *values* in a dll.
i����N(t*tValuesTestCasecBseZd�Zd�ZRS(cCsmttj�}tj|d�}|j}|j||j��|jd9_|j|d|j��dS(Nt
an_integeri(tCDLLt_ctypes_testt__file__tc_inttin_dlltvaluetassertEqualtget_an_integer(tselftctdllRtx((s@/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_values.pyttest_an_integer
s	cCs,ttj�}|jttj|d�dS(NtUndefined_Symbol(RRRtassertRaisest
ValueErrorRR(RR((s@/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_values.pyttest_undefineds(t__name__t
__module__RR(((s@/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_values.pyRs	tPythonValuesTestCasecBs)eZdZd�Zd�Zd�ZRS(s?This test only works when python itself is a dll/shared librarycCs)tjtd�j}|j|d�dS(NtPy_OptimizeFlagi(RRt	pythonapiRR	(Rtopt((s@/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_values.pyttest_optimizeflagscCs�dtfd��Y}t|�}|jtd�}g}x:|D]2}|jdkrZPn|j|j|jf�qAWddd
g}|j||�d	d
l	m
}||=dS(Nt
struct_frozencBs/eZdefdee�fdefgZRS(tnametcodetsize(RRtc_char_ptPOINTERtc_ubyteRt_fields_(((s@/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_values.pyR5s	tPyImport_FrozenModulest	__hello__iht
__phello__i����s__phello__.spami����(t_pointer_type_cache(R#ih(R$i����(s__phello__.spamih(t	StructureRRRRtNonetappendRR	tctypesR%(RRtFrozenTabletfttitemstentrytexpectedR%((s@/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_values.pyttest_frozentable,s	
	cCs|jttjtd�dS(NR(RRRRR(R((s@/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_values.pyRNs(RRt__doc__RR/R(((s@/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_values.pyRs		"t__main__(
R0tunittesttsysR)RtTestCaseRRRtmain(((s@/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_values.pyt<module>s
9

Zerion Mini Shell 1.0