%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_bitfields.pyc

�
5}�ac@s
ddlTddlmZddlZddlZddlZddlZdefd��YZeej	�j
Zee�e
fe_dejfd��YZeeeeefZeeeeefZeeZdejfd	��YZed
krej �ndS(i����(t*(tneed_symbolNtBITScBs�eZdedfdedfdedfdedfded	fd
edfded
fdedfdedfdedfdedfdedfdedfded	fdedfded
fgZRS(tAitBitCitDitEitFitGitHitIi	tMtNtOtPtQtRtS(t__name__t
__module__tc_inttc_shortt_fields_(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyR	s tC_TestcBseZd�Zd�ZRS(c	Csxxtd�D]j}xadD]Y}t�}t|||�|j||t||�f||tt|�|�f�qWq
WdS(Nit	ABCDEFGHI(trangeRtsetattrtassertEqualtgetattrtfunctbyref(tselftitnametb((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyt	test_ints$s

	c	Csxxtd�D]j}xadD]Y}t�}t|||�|j||t||�f||tt|�|�f�qWq
WdS(NitMNOPQRS(RRRRRRR(R R!R"R#((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyttest_shorts+s

	(RRR$R&(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyR"s	tBitFieldTestcBs�eZd�Zd�Zd�Zd�Zd�Zd�Zed�d��Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zed�d��Zed�d��Zed�d��Zed�d��ZRS(cCsydtfd��Y}|jt|�tt��|�}d\|_|_|_|j|j|j|jfd�dS(NtXcBs2eZdedfdedfdedfgZRS(taiR#i>tc(RRt
c_longlongR(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyR(9si����i(i����ii����(i����ii����(t	StructureRtsizeofR+R)R#R*(R R(tx((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyt
test_longlong8s
	cCs�dtfd��Y}|jt|�tt��|�}|j|j|j|jfd�d\|_|_|_|j|j|j|jfd�dS(	NR(cBs2eZdedfdedfdedfgZRS(R)iR#i>R*(RRtc_ulonglongR(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyR(Dsiii(iii(iii(iii(R,RR-R+R)R#R*(R R(R.((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyttest_ulonglongCs	"csxtD]��dtf�fd��Y}|jt|�t��d�|�}|j�|j|j|jf�dddf�d|_|j�|j|j|jf�dddf�d\|_|_|j�|j|j|jf�dddf�qWdS(NR(cs;eZd�fd�dfd�dfd�dfgZRS(tdummyR)iR#R*i(RRR((tc_typ(sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyR(Qs	iii����(ii����(tsigned_int_typesR,RR-R)R#R*(R R(R.((R3sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyttest_signedOs
 	1	1csx�tD]��dtf�fd��Y}|jt|�t���|�}|j�|j|j|jf�dddf�d|_|j�|j|j|jf�dddf�d\|_|_|j�|j|j|jf�dddf�qWdS(NR(cs2eZd�dfd�dfd�dfgZRS(R)iR#R*i(RRR((R3(sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyR(bsii����i(ii����(tunsigned_int_typesR,RR-R)R#R*(R R(R.((R3sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyt
test_unsigned`s
	1	1cGs#|jtt�ddi|d6�S(NR(R((t
get_exceptttypeR,(R tfields((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pytfail_fieldspscCs|jdtdf�}|j|tdf�|jdtdf�}|j|tdf�ttkr�|jdtt�df�}|j|tdf�n|jdtdf�}|j|tdf�dt	fd��Y}|jd|df�}|j|td	f�dS(
NR)is(bit fields not allowed for type c_char_ps(bit fields not allowed for type c_void_ps(bit fields not allowed for type LP_c_ints&bit fields not allowed for type c_chartDummycBseZgZRS((RRR(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyR<�ss%bit fields not allowed for type Dummy(
R;tc_char_pRt	TypeErrortc_void_pRtc_longtPOINTERtc_charR,(R tresultR<((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyttest_nonint_typeststc_wcharcCs2|jdtdf�}|j|tdf�dS(NR)is'bit fields not allowed for type c_wchar(R;RERR>(R RC((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyttest_c_wchar�s	csxtD]�|jd�df�}|j|tdf�|jd�df�}|j|tdf�dtf�fd��Y}|jt|�t���dtf�fd��Y}|jt|�t���|jd�t��dd	f�}|j|tdf�qWdS(
NR)i����s$number of bits invalid for bit fieldiR(cseZd�dfgZRS(R)i(RRR((R3(sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyR(�scs$eZd�e��dfgZRS(R)i(RRR-R((R3(sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyR(�sii(t	int_typesR;Rt
ValueErrorR,R-(R RCR(((R3sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyttest_single_bitfield_size�s
&cCstdtfd��Y}|jt|�tt��dtfd��Y}|jt|�tt�d�|j|jjd�|j|jjtt��|j|jjtt�d�|j|jjtt�d�dtfd��Y}|jt|�tt�d�|j|jjtt�d�|j|jjtt�d�|j|jjtt�d�dS(	NR(cBs2eZdedfdedfdedfgZRS(R)iR#iR*(RRRR(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyR(�scBs;eZdedfdefdedfdedfgZRS(R)ita1R#iR*(RRRR(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyR(�s	iiicBs2eZdedfdedfdedfgZRS(R)iR#iR*(RRRR(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyR(�si(	R,RR-RR)toffsetRJR#R*(R R(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyttest_multi_bitfields_size�s      cOs;y|||�Wn#tk
r6}|jt|�fSXdS(N(t	Exceptiont	__class__tstr(R Rtargstkwtdetail((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyR8�scCshdtfd��Y}tjdkrH|jt|�tt�d�n|jt|�tt��dS(NR(cBs&eZdedfdedfgZRS(R)iR#(RRtc_byteRR(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyR(�stnttcei(RTRU(R,tosR"RR-R(R R(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyttest_mixed_1�s#cCs@dtfd��Y}|jt|�tt�tt��dS(NR(cBs&eZdedfdedfgZRS(R)iR#i (RRRSRR(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyR(�s(R,RR-t	alignmentR(R R(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyttest_mixed_2�scCs6dtfd��Y}|jt|�tt��dS(NR(cBs&eZdedfdedfgZRS(R)iR#(RRRStc_ubyteR(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyR(�s(R,RR-RS(R R(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyttest_mixed_3�scCsldtfd��Y}tjdkrH|jt|�tt�d�n |jt|�tt�d�dS(NR(cBsVeZdedfdedfdedfdedfdedfdedfgZRS(R)iR#R*itdtetf(RRRRR(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyR(�sRTRUii(RTRU(R,RVR"RR-R(R R(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyttest_mixed_4�s
#cs6dtfd��Y�dtf�fd��Y}dS(NR(cBs&eZdedfdedfgZRS(R)iR#(RRRSRZR(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyR(�stYcs eZdgZd�fgZRS(t_(RRt_anonymous_R((R((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyR`�s	(R,(R R`((R(sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyttest_anon_bitfields�stc_uint32cCs[dtfd��Y}|�}d|_|j|jd�d|_|j|jd�dS(NR(cBseZdedfgZRS(R)i (RRRdR(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyR(�si
I���(R,R)R(R R(R.((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyttest_uint32�s			tc_uint64cCs[dtfd��Y}|�}d|_|j|jd�d|_|j|jd�dS(NR(cBseZdedfgZRS(R)i@(RRRfR(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyR(�si
l2�laj�v(R,R)R(R R(R.((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyttest_uint64�s			cCs`dtfd��Y}td�}|j|�}d|_d|_d|_|j|d�dS(NtLittlecBs2eZdedfdedfdedfgZRS(R)iR#iR*(RRRdR(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyRh	sii�ͫiis�ͫ!(tLittleEndianStructuret	bytearraytfrom_bufferR)R#R*R(R RhR#R.((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyttest_uint32_swap_little_endians			cCs`dtfd��Y}td�}|j|�}d|_d|_d|_|j|d�dS(NtBigcBs2eZdedfdedfdedfgZRS(R)iR#iR*(RRRdR(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyRmsii�ͫiis���(tBigEndianStructureRjRkR)R#R*R(R RmR#R.((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyttest_uint32_swap_big_endians			(RRR/R1R5R7R;RDRRFRIRLR8RWRYR[R_RcReRgRlRo(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyR'6s&																

t__main__(!tctypestctypes.testRtunittestRVt_ctypes_testR,RtCDLLt__file__tunpack_bitfieldsRRARBtargtypestTestCaseRRSRRR@R+R4RZtc_ushorttc_uinttc_ulongR0R6RGR'Rtmain(((sC/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_bitfields.pyt<module>s

�

Zerion Mini Shell 1.0