config root man

Current Path : /usr/local/lib/python2.5/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/test/test_imageop.pyc

łň
h”Rc@sdZddklZlZlZddkZddkZddkZddkZddk	Z	e	i
ddedƒdZddddddd!d#fZ
ed„ee
ƒDƒƒd$e
ZddZd%Zdeifd„ƒYZed„Zd„Zd„Zd„ZdS(&s„Test script for the imageop module.  This has the side
   effect of partially testing the imgfile module as well.
   Roger E. Masse
i˙˙˙˙(tverbosetunlinktrun_unittestNtignoresthe rgbimg module is deprecateds.*test_imageopiiiii
iiccsx|]}|VqWdS(N((t.0tx((s-/usr/local/lib/python2.5/test/test_imageop.pys	<genexpr>s	itAiitInputValidationTestscBs/eZdd„Zd„Zd„Zd„ZRS(c
GsÜtt|ƒ}xĆtD]ž}xľtD]­}t||ƒ}|o||9}n|tjod|}nt}|o||||f|}	n|||f|}	y||	ŒWq#ttifj
oq#Xq#WqWdS(NR(tgetattrtimageoptVALUEStabstMAX_LENtAAAAAt
ValueErrorterror(
tselftnametsizetextratfunctheighttwidthtstrlentdatat	arguments((s-/usr/local/lib/python2.5/test/test_imageop.pyt_checks$
cGs(x!tD]}|i|||ŒqWdS(N(tSIZESR(RRRR((s-/usr/local/lib/python2.5/test/test_imageop.pyt
check_size/scGs|i|d|ŒdS(N(RtNone(RRR((s-/usr/local/lib/python2.5/test/test_imageop.pytcheck3scCsč|idddddƒ|idddƒ|idddƒ|idƒ|iddƒ|id	ƒ|id
ƒ|idƒ|idƒ|id
ddƒ|idƒ|idƒ|idƒ|idƒ|idƒdS(Ntcropitscaleii˙˙˙˙ttovideot	grey2monoi€t
grey2grey4t
grey2grey2tdither2monotdither2grey2t	mono2greyt
grey22greytrgb2rgb8trgb82rgbtrgb2greytgrey2rgb(RR(R((s-/usr/local/lib/python2.5/test/test_imageop.pyttest_input_validation6s








N(t__name__t
__module__RRRRR-(((s-/usr/local/lib/python2.5/test/test_imageop.pyRs		c
Csttƒyddk}Wntj
odSnXtitdtidƒdtidƒ|o$t	dtidƒ\}}}n!t
dtidƒ\}}}to	dGHnti
|d||ddd	d	ƒ}to	d
GHnti|d||d	d	ƒ}to	dGHnti|d||ƒ}to	dGHnti|||ƒ}to	d
GHnti|||ƒ}to	dGHnti|||ƒ}to	dGHnti|||ƒ}to	dGHnti|||dƒ}	to	dGHnti|	||ddƒ}to	dGHnti|||ƒ}	to	dGHnti|||ƒ}
to	dGHnti|||ƒ}to	dGHnti|||ƒ}to	dGHnti|
||ƒ}to	dGHnti|||ƒ}tdtidƒdS(Ni˙˙˙˙ttestrgbtuuettesttrgbRiiiR R!R)R*R+R,R"R'i˙R%R#R$R&t
grey42greyR((RRtimgfiletImportErrortuutdecodetget_qualified_pathtostextseptgetrgbimagetgetimageRR	RR R!R)R*R+R,R"R'R%R#R$R&R4R(R(t
use_rgbimgR5timageRRtnewimaget
scaleimaget
videoimaget	greyimaget	monoimaget
grey4imaget
grey2image((s-/usr/local/lib/python2.5/test/test_imageop.pyt	test_mainHsn
	,$ 	$														cCs—ddk}y|i|ƒ}Wn1|ij
o"t|ƒ}|i|ƒ}nXtod|t|ƒfGHn|i|ƒ}||d|dfS(sfreturn a tuple consisting of image (in 'imgfile' format but
    using rgbimg instead) width and heighti˙˙˙˙Ns(rgbimg opening test image: %s, sizes: %sii(trgbimgtsizeofimageRR9Rtstrt
longimagedata(RRHtsizesR?((s-/usr/local/lib/python2.5/test/test_imageop.pyR<šscCs—ddk}y|i|ƒ}Wn1|ij
o"t|ƒ}|i|ƒ}nXtod|t|ƒfGHn|i|ƒ}||d|dfS(sUreturn a tuple consisting of
       image (in 'imgfile' format) width and height
    i˙˙˙˙Ns)imgfile opening test image: %s, sizes: %sii(R5tgetsizesRR9RRJtread(RR5RLR?((s-/usr/local/lib/python2.5/test/test_imageop.pyR=Ęsc	Cs™ddk}ddk}|i}y|iitƒg|}Wntj
onXx>|D]6}|ii||ƒ}|ii|ƒo|Sq[q[W|S(s% return a more qualified path to namei˙˙˙˙N(tsysR:tpathtdirnamet__file__t	NameErrortjointexists(RROR:RPtdirtfullname((s-/usr/local/lib/python2.5/test/test_imageop.pyR9Üs	(iiiiii€i˙i€i€i€I€iţ˙˙I€i˙˙˙(ii(t__doc__ttest.test_supportRRRR	R7R:tunittesttwarningstfilterwarningstDeprecationWarningRt_VALUESttupletreversedR
R
RtTestCaseRtTrueRGR<R=R9(((s-/usr/local/lib/python2.5/test/test_imageop.pys<module>s"0	$
/q		

Man Man