config root man

Current Path : /usr/local/lib/python2.5/ctypes/test/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/ctypes/test/test_functions.pyc

łň
h”Rc
@sîdZddkTddkZddkZyeWnej
o
eZnXddkZeei	ƒZ
eidjoeei	ƒZ
ndefd„ƒYZdefd„ƒYZd	eifd
„ƒYZedjoeiƒndS(sh
Here is probably the place to write the docs, since the test-cases
show how the type behave.

Later...
i˙˙˙˙(t*Ntwin32tPOINTcBs eZdefdefgZRS(txty(t__name__t
__module__tc_intt_fields_(((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyRstRECTcBs2eZdefdefdefdefgZRS(tleftttoptrighttbottom(RRRR(((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyR	stFunctionTestCasecBsöeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„Zd„Zd„Zd„Zd„Zeidjo
d„Znd„Zeidjo
d„Znd„ZRS(cCsđydttfd„ƒY}Wntj
onXddkl}ydt|fd„ƒY}Wntj
onXddkl}ydt|fd„ƒY}Wntj
onXydttfd„ƒY}Wntj
onXdS(	NtXcBseZdZdZRS(iti(RRt_length_t_type_(((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyR&si˙˙˙˙(t_PointercBseZRS((RR(((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyR/s(t_SimpleCDatacBseZdZRS(R(RRR(((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyR6scBseZgZRS((RRR(((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyR<s(tobjecttArrayt	TypeErrort_ctypesRRt	Structure(tselfRRR((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyttest_mros$c
Cs‹ytWntj
odSnXti}ttttttg|_	|ddddddƒ}|i
|dƒ|i
t|ƒtƒdS(Niuxiig@g@i‹(
tc_wchart	NameErrortdllt_testfunc_i_bhilfdtc_byteRtc_longtc_floattc_doubletargtypestfailUnlessEqualttypetint(Rtftresult((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyttest_wchar_parmBs		c
Cs~ytWntj
odSnXti}tttttt	g|_
t|_|ddddddƒ}|i|dƒdS(Niu(
RRRRR tc_shortRR!R"R#R$trestypeR%(RR(R)((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyttest_wchar_resultMs			cCslti}d|_ttttƒg|_tƒ}|id|ddt|ƒƒƒ|i|i	dƒdS(Niii(
Rt_testfunc_vtNoneR,RtPOINTERR$R%tbyreftvalue(RR(R)((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyttest_voidresultXs			"cCsWti}ttttttg|_t|_	|ddddddƒ}|i
|dƒ|i
t|ƒtƒ|dd	d
ddd
ƒ}|i
|dƒ|i
t|ƒtƒt|_	|ddddddƒ}|i
|dƒ|i
t|ƒtƒ|ddddddƒ}|i
|dƒ|i
t|ƒtƒ|i
tt|ddƒdS(Niiiig@g@ii˙˙˙˙iţ˙˙˙iý˙˙˙iü˙˙˙gŔgŔië˙˙˙iR,R(RRR R+RR!R"R#R$R,R%R&R'tassertRaisesRtsetattr(RR(R)((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyttest_intresult`s"			cCsłti}ttttttg|_t|_	|ddddddƒ}|i
|dƒ|i
t|ƒtƒ|dd	d
ddd
ƒ}|i
|dƒ|i
t|ƒtƒdS(Niiiig@g@ii˙˙˙˙iţ˙˙˙iý˙˙˙iü˙˙˙gŔgŔië˙˙˙(
Rt_testfunc_f_bhilfdR R+RR!R"R#R$R,R%R&tfloat(RR(R)((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyttest_floatresultzs		cCsłti}ttttttg|_t|_	|ddddddƒ}|i
|dƒ|i
t|ƒtƒ|dd	d
ddd
ƒ}|i
|dƒ|i
t|ƒtƒdS(Niiiig@g@ii˙˙˙˙iţ˙˙˙iý˙˙˙iü˙˙˙gŔgŔië˙˙˙(
Rt_testfunc_d_bhilfdR R+RR!R"R#R$R,R%R&R8(RR(R)((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyttest_doubleresult†s		cCsÜytWntj
odSnXti}t|_ttttt	t
g|_|ddddddƒ}|i|dƒti
}t|_ttttt	t
tg|_|dddddddƒ}|i|dƒdS(	Niiiig@g@ii*(t
c_longlongRRt_testfunc_q_bhilfdR,R R+RR!R"R#R$R%t_testfunc_q_bhilfdq(RR(R)((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyttest_longlongresult’s					cCsWti}d|_t|_|dƒ}|i|dƒ|dƒ}|i|dƒdS(Nt123(Rt
_testfunc_p_pR/R$tc_char_pR,R%(RR(R)((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyttest_stringresultŁs			cCsqti}ttƒ|_ttƒg|_tdƒ}|it|ƒii	dƒ|t|ƒƒ}|it
|ƒttƒƒ|i|ii	dƒ|t|ƒƒ}|i|ii	|i	ƒttdƒƒ}||ƒ}|i|ii	dƒt|ƒ}||ƒ}|i|i|i	ƒ|i
t|ttdƒƒƒ|ttdƒƒƒ}|i|idƒdS(Ni*ici(RRAR0RR,R$R%tpointertcontentsR2R&R1tfailIfEqualR4t
ArgumentErrorR+(RR(tvR)tptarg((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyt
test_pointers­s&	cCsBti}t|_dtfd„ƒY}|it||ƒƒdS(NRcBseZdefgZRS(R(RRRR(((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyRÔs(RRARR,RR4R(RR(R((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyttest_errorsĐs		cs™ti}g‰ddddddddd	d
ddd
ddddddg}‡fd†}tttƒ}||ƒ}|d|ƒ|iˆ|ƒdS(Niiii€i@i iiiiii€i@i iiiiicsˆi|ƒ|S(N(tappend(RH(targs(s6/usr/local/lib/python2.5/ctypes/test/test_functions.pytcallbackás
ii(Rt_testfunc_callback_i_ift	CFUNCTYPERR%(RR(texpectedROtCallBacktcb((RNs6/usr/local/lib/python2.5/ctypes/test/test_functions.pyttest_shortsÚs	'
cCsÍti}t|_tttƒ}d„}||ƒ}|d|ƒ}|i|dƒt|g|_||ƒ}|d|ƒ}|i|dƒttttttƒ}||ƒ}|it	|d|ƒdS(NcSs|S(N((R2((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyROôsiö˙˙˙iî˙˙˙(
RRPRR,RQR%R$tWINFUNCTYPER4RG(RR(t
MyCallbackRORTR)tAnotherCallback((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyttest_callbacksîs			csnti}t|_tttƒ}t|g|_‡fd†}||ƒ}|d|ƒ}ˆi|dƒdS(Ncsˆit|ƒtƒ|S(N(R%R&R'(R2(R(s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyROsiö˙˙˙iî˙˙˙(RRPRR,RQR$R%(RR(RWRORTR)((Rs6/usr/local/lib/python2.5/ctypes/test/test_functions.pyttest_callbacks_2
s		cshti}t|_tttƒ}t|g|_‡fd†}||ƒ}ˆid|d|ƒƒdS(Ncs$ˆit|ttfƒƒ|d@S(Ni˙˙˙(t
failUnlesst
isinstanceR'tlong(R2(R(s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyRO'sIóJ)IĽÔč(Rt_testfunc_callback_q_qfR<R,RQR$R%(RR(RWRORT((Rs6/usr/local/lib/python2.5/ctypes/test/test_functions.pyttest_longlong_callbackss		cCs3|itttdƒ|ittitdƒdS(Nt_xxx_yyy(R4tAttributeErrortgetattrRt
ValueErrorRtin_dll(R((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyRL/scCsŢtddƒ}tƒ}ti|t|ƒƒ}||i|if}d}|i||ƒtddƒ}tƒ}tttƒfti_t	ti_
ti|t|ƒƒ}||i|if}d}|i||ƒdS(	NiiiieifiË(iii(iËieif(RRt_testfunc_byvalR1RRR%R0R$RR,(RtptintptoutR)tgotRR((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyt
test_byval3s		cCsudtfd„ƒY}|ti_|gti_|ddƒ}ti|ƒ}|i|i|ifddfƒdS(	NtS2HcBs eZdefdefgZRS(RR(RRR+R(((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyRjIs	iciXiiiĆi(RRtret_2h_funcR,R$R%RR(RRjtinpts2h((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyttest_struct_return_2HHsRcCsodtfd„ƒY}|ti_|gti_ti|ddƒƒ}|i|i|ifddfƒdS(	NRjcBs eZdefdefgZRS(RR(RRR+R(((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyRjTs	iciXiiiĆi(Rtwindllt
s_ret_2h_funcR,R$R%RR(RRjRm((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyttest_struct_return_2H_stdcallSs
cCs˝dtfd„ƒY}|ti_|gti_|ddddddd	d
ƒ}ti|ƒ}|i|i|i|i|i	|i
|i|i|i
fddd
dddddfƒdS(NtS8Ic	BsVeZdefdefdefdefdefdefdefdefgZRS(tatbtctdteR(tgth(RRRR(((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyRr^s							i	iiiiiiiiiiiiiii(RRtret_8i_funcR,R$R%RsRtRuRvRwR(RxRy(RRrRlts8i((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyttest_struct_return_8H]s	!9cCs˝dtfd„ƒY}|ti_|gti_|ddddddd	d
ƒ}ti|ƒ}|i|i|i|i|i	|i
|i|i|i
fddd
dddddfƒdS(NRrc	BsVeZdefdefdefdefdefdefdefdefgZRS(RsRtRuRvRwR(RxRy(RRRR(((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyRrps							i	iiiiiiiiiiiiiii(RRot
s_ret_8i_funcR,R$R%RsRtRuRvRwR(RxRy(RRrRlR{((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyttest_struct_return_8H_stdcallos	!9csDttttƒ}d„‰|ˆƒ‰|it‡fd†ƒdS(NcWsdS(Ni((RN((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyRO„scsˆdtƒƒS(iiii(iiii(R((RO(s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyt<lambda>ˆs(RQRR	RtfailUnlessRaisesRG(Rtproto((ROs6/usr/local/lib/python2.5/ctypes/test/test_functions.pyttest_sf1651235€s	(RRRR*R-R3R6R9R;R?RCRKRLRURYRZR_RiRntsystplatformRqR|R~R‚(((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pyRs0	%								
	#	
							

	
t__main__(t__doc__tctypesRƒtunittestRVRRQt_ctypes_testtCDLLt__file__RR„tWinDLLRoRRR	tTestCaseRRtmain(((s6/usr/local/lib/python2.5/ctypes/test/test_functions.pys<module>s 
˙p


Man Man