mň %U˛Ic@sndkZdkZdkZdkZdklZlZlZ[[dklZl Z l Z d„Z d„Zd„Z d„Zd„Z d„Zd d efd eid d fgd fddefdeid dfdefdeid d fdefdeid dfgdfddefdeid dfdefdeid d fdefdeid dfgdfddeid d eid!fdefd"eid dfd#eid d$eid!fd#efd%eid d fd&eid d'eid!fd&efd(eid dfg d)fd*d*efd+eid d,fd-eid dfd.eid d/fgd0fd1d1efd2eid d3fd4eid dfd5eid dfd6eid dfgd7fd8d8eid d9eid:fd8efd;eid dfd<eid d$eid!fd<efd=eid d fd>eid d'eid!fd>efd?eid dfg d@fgZdAgdBdCdDfdEgdBdCdFfdGgdBdCdHfdIgdBdCdJfdKgdLdMdDfdNgdLdMdHfdOgdLdMdPfdQgdLdMdRfdSgdLdMdRfdTgdLdMdUfg ZgZedVjo:eidWZeoedXdYjodXZ edX=nnxQeD]I\ZZZeo eejodZGeGHqßnd[GeGHeeeƒqßWdkZdkZy dkZWnej on Xe d\‚dS(]N(smkdirsrmdirsextsep(sverifysverboses TestFailedcCsňtii|ƒpt|ƒnxĘ|D]Â\}}|iƒ}|}x#|D]}tii ||ƒ}qMW|djot|ƒq(to dG|GHnt|dƒ}|i|ƒ|o"|ddjo|idƒn|iƒq(WdS(Ntwritetwi˙˙˙˙s (tostpathtisdirtroottmkdirtdescrtnametcontentstsplittcompstfullnametctjointNonetverbosetopentfRtclose(RRR RRR R R ((t*/data/zmath/lib/python2.4/test/test_pkg.pytmkhier s$     cCs%to dG|GHnti|ƒdS(NR(RtxRR(R((RRs cCs…ti|ƒ}xe|D]]}tii||ƒ}tii|ƒo"tii |ƒ ot |ƒqti |ƒqWt |ƒdS(N( RtlistdirRtnamesRRRR Rtislinktcleanouttremovetrmdir(RRRR ((RR s'cCs%to dG|GHnti|ƒdS(NR(RRRR(R((RR*s cCs+y|idƒWntj onX|S(Nt __builtins__(tlstRt ValueError(R((Rtfixdir.s c Cstiƒ}t||ƒti}tidt ƒ\}}t i ||ƒt i|ƒzbtiid|ƒtodGtiGHnyt|tƒhƒWntidtiƒnXWd|ti(t i|ƒyt|ƒWnt itfj onXXdS(Nttextis sys.path =tfile(ttempfiletmkdtempRRthiertsysRtsavepathtmkstemptTruetfdtfnameRRtcodeRtinsertRtexecfiletglobalst tracebackt print_exctstdouttunlinkRterrortIOError(R%R,R'R+R*R((Rtruntest7s*      tt1s t1 __init__tpyts import t1tt2s t2 __init__s''doc for t2'; print __name__, 'loading'st2 subst2 sub __init__s t2 sub subsubst2 sub subsub __init__s#print __name__, 'loading'; spam = 1s˛ import t2 print t2.__doc__ import t2.sub import t2.sub.subsub print t2.__name__, t2.sub.__name__, t2.sub.subsub.__name__ import t2 from t2 import * print dir() from t2 import sub from t2.sub import subsub from t2.sub.subsub import spam print sub.__name__, subsub.__name__ print sub.subsub.__name__ print dir() import t2.sub import t2.sub.subsub print t2.__name__, t2.sub.__name__, t2.sub.subsub.__name__ from t2 import * print dir() tt3s t3 __init__sprint __name__, 'loading'st3 subst3 sub __init__s t3 sub subsubst3 sub subsub __init__s import t3.sub.subsub print t3.__name__, t3.sub.__name__, t3.sub.subsub.__name__ reload(t3) reload(t3.sub) reload(t3.sub.subsub) tt4s%print 'THIS SHOULD NOT BE PRINTED (t4spy)'s t4 __init__st4 subs&print 'THIS SHOULD NOT BE PRINTED (subst4 sub __init__s t4 sub subsubs)print 'THIS SHOULD NOT BE PRINTED (subsubst4 sub subsub __init__s@ from t4.sub.subsub import * print "t4.sub.subsub.spam =", spam tt5s t5 __init__s import t5.foos t5 stringst5 foos;print __name__, 'loading'; import string; print string.spams import t5 from t5 import * print dir() import t5 print fixdir(dir(t5)) print fixdir(dir(t5.foo)) print fixdir(dir(t5.string)) tt6s t6 __init__s!__all__ = ['spam', 'ham', 'eggs']st6 spamst6 hamst6 eggssT import t6 print fixdir(dir(t6)) from t6 import * print fixdir(dir(t6)) print dir() tt7sprint 'Importing t7spy's t7 __init__st7 subst7 sub __init__s t7 sub subsubst7 sub subsub __init__s t7, sub, subsub = None, None, None import t7 as tas print fixdir(dir(tas)) verify(not t7) from t7 import sub as subpar print fixdir(dir(subpar)) verify(not t7 and not sub) from t7.sub import subsub as subsubsub print fixdir(dir(subsubsub)) verify(not t7 and not sub and not subsub) from t7.sub.subsub import spam as ham print "t7.sub.subsub.spam =", ham verify(not t7 and not sub and not subsub) tx5simport as.aitx6iótx7iôtx8iLtx9simport tatx10tx11ićtx12içtx13tx14iĐt__main__iis-qs skipping tests running tests,No ImportError exception on 'import sys.imp'(R&RR#R0RRtextsepttest.test_supporttverifyRt TestFailedRRR R6Rtteststnonteststargst__name__targvRR%R,timptsys.impt ImportError(R,RR6R#RNRRURRORQRPRRR&RRLRR R0R%RR((Rt?sF$    ˙˙˙.~Î