config root man

Current Path : /compat/linux/proc/self/root/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 : //compat/linux/proc/self/root/usr/local/lib/python2.5/test/test_codeop.pyo

³ò
h”Rc@s¨dZddkZddklZlZddklZlZeo%ddkZddk	Z	d„Z
ndeifd„ƒYZd„Z
ed	joe
ƒndS(
s/
   Test cases for codeop.py
   Nick Mathewson
iÿÿÿÿN(trun_unittestt	is_jython(tcompile_commandtPyCF_DONT_IMPLY_DEDENTcCs<x5|iƒD]'\}}t|ƒot||<q
q
W|S(N(titemstcallable(tdtntv((s,/usr/local/lib/python2.5/test/test_codeop.pytunify_callabless


tCodeopTestscBsSeZdd„Zdd„Zddd„Zd„Zd„Zd„Zd„ZRS(	tsinglec	Bs.eoòe|d|ƒ}|i|ƒ|djoVhh}}ei}eiƒe_z ||Ue|ddƒ|UWd|e_XnQ|djoChdd<}he||ƒd<}he||ƒd<}n|i	e
|ƒe
|ƒƒn2e|d|eƒ}|i	e|d|ƒ|ƒdS(s(succeed iff str is a valid piece of codes<input>RNtevalitatvalue(RRtassert_tsyststdoutt	cStringIOtStringIOtcompileRtassertEqualsR	R(	tselftstrtsymboltcodeRtrtsaved_stdouttctxtexpected((s,/usr/local/lib/python2.5/test/test_codeop.pytassertValids$


	
 cCs |it|d|ƒdƒdS(s5succeed iff str is the start of a valid piece of codeRN(RRtNone(RRR((s,/usr/local/lib/python2.5/test/test_codeop.pytassertIncomplete-sicCshy!t|d|ƒ|idƒWn@tj
o|i|ƒn"tj
o|i|ƒnXdS(s8succeed iff str is the start of an invalid piece of codeRs$No exception thrown for invalid codeN(RtfailtSyntaxErrorRt
OverflowError(RRRt	is_syntax((s,/usr/local/lib/python2.5/test/test_codeop.pyt
assertInvalid1scCs™|i}tpN|itdƒtdddtƒƒ|itdƒtdddtƒƒn|dƒ|dƒ|dƒ|dƒ|dƒ|d	ƒ|d
ƒ|dƒ|dƒ|d
ƒ|dƒ|dƒ|dƒ|dƒ|dƒ|dƒ|dƒ|dƒ|dƒ|dƒ|dƒ|dƒ|ddƒ|ddƒ|ddƒ|ddƒ|ddƒ|d dƒ|d!dƒdS("Nttpasss<input>Rs
sa = 1s
a = 1sa = 1
sa = 1

s	

a = 1

sdef x():
  pass
sif 1:
 pass
s


if 1: pass
s

if 1: pass

sdef x():

 pass
sdef x():
  pass
  
sdef x():
  pass
 
spass
s3**3
sif 9==3:
   pass
else:
   pass
s(if 1:
 pass
 if 1:
  pass
 else:
  pass
s#a
#b
a = 3
s#a

   
a=3
sa=3

s
a = 9+ \
3s3**3Rs(lambda z: 
 z**3)s9+ \
3s9+ \
3
s

a**3s
 
a**3s
#a
#b
a**3(RRRRRR(Rtav((s,/usr/local/lib/python2.5/test/test_codeop.pyt
test_valid;sJ	




























cCsb|i}|dƒ|dƒ|dƒ|dƒ|dƒ|dƒ|dƒ|dƒ|dƒ|d	ƒ|d
ƒ|dƒ|dƒ|d
ƒ|dƒ|dƒ|dƒ|dƒ|dƒ|dƒ|dƒ|dƒ|dƒ|dƒ|dƒ|ddƒ|ddƒ|ddƒ|ddƒ|ddƒ|ddƒ|d dƒdS(!Ns(a **s(a,b,s(a,b,(sa = (sa = {sb + {sif 9==3:
   pass
else:sif 9==3:
   pass
else:
sif 9==3:
   pass
else:
   passsif 1:sif 1:
s if 1:
 pass
 if 1:
  pass
 else:s!if 1:
 pass
 if 1:
  pass
 else:
s'if 1:
 pass
 if 1:
  pass
 else:
  passsdef x():s	def x():
s
def x():

sdef x():
  passsdef x():
  pass
 sdef x():
  pass
  s

def x():
  passsa = 9+ \sa = 'a\s	a = '''xyR&Rs
t(s(


s(9+s9+ \slambda z: \(R (Rtai((s,/usr/local/lib/python2.5/test/test_codeop.pyttest_incompleteosB	






























cCsã|i}|dƒ|dƒ|dƒ|dƒ|dƒ|dƒ|dƒ|dƒ|d	ƒ|d
ƒ|dƒ|dd
ƒ|dd
ƒ|dd
ƒ|dd
ƒ|dd
ƒ|dd
ƒ|dd
ƒ|dd
ƒdS(Nsa bsa @sa b @sa ** @sa = sa = 9 +sdef x():

pass
s

 if 1: pass

passs	a = 9+ \
sa = 'a\ sa = 'a\
sa = 1Rsa = (t]s())s[}s9+s	lambda z:(R%(RR+((s,/usr/local/lib/python2.5/test/test_codeop.pyttest_invalid˜s(	

















cCsZ|itddƒitdddƒiƒ|itddƒitdddƒiƒdS(Nsa = 1
tabcRtdef(RRtco_filenameRtassertNotEquals(R((s,/usr/local/lib/python2.5/test/test_codeop.pyt
test_filename´s(	t__name__t
__module__RR R%R)R,R.R3(((s,/usr/local/lib/python2.5/test/test_codeop.pyR
s
	4	)	cCsttƒdS(N(RR
(((s,/usr/local/lib/python2.5/test/test_codeop.pyt	test_main»st__main__(t__doc__tunittestttest.test_supportRRtcodeopRRRRR	tTestCaseR
R6R4(((s,/usr/local/lib/python2.5/test/test_codeop.pys<module>s
§	


Man Man