-í
é¶<c       sn  d  k  Z  d  k Z d  k Z d  k Z d k l Z l Z l Z [ [ d k l Z l	 Z	 l
 Z
 d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d	 d	 e f d
 e i d d f g d f d d e f d e i d d f d e f d e i d d f d e f d e i d d f g d f d d e f d e i d d f d e f d e i d d f d e f d e i d d f g d f d d e i d d  e i d! f d e f d" e i d d f d# e i d d$ e i d! f d# e f d% e i d d f d& e i d d' e i d! f d& e f d( e i d d f g	 d) f d* d* e f d+ e i d d, f d- e i d d f d. e i d d/ f g d0 f d1 d1 e f d2 e i d d3 f d4 e i d d f d5 e i d d f d6 e i d d f g d7 f d8 d8 e i d d9 e i d: f d8 e f d; e i d d f d< e i d d$ e i d! f d< e f d= e i d d f d> e i d d' e i d! f d> e f d? e i d d f g	 d@ f g Z dA g  dB dC dD f dE g  dB dC dF f dG g  dB dC dH f dI g  dB dC dJ f dK g  dL dM dD f dN g  dL dM dH f dO g  dL dM dP f dQ g  dL dM dR f dS g  dL dM dR f dT g  dL dM dU f g
 Z g  Z e dV j o: e  i dW Z e o e dX dY j o dX Z	 e dX =n n xQ e D]I \ Z Z Z e o
 e e j o dZ Ge GHqßn d[ Ge GHe e e ƒ qßWd  k  Z  d  k Z y d  k Z  Wn e j
 o n Xe
 d\ ‚ d  S(]   N(   s   mkdirs   rmdirs   extsep(   s   verifys   verboses
   TestFailedc    sÛ   t  |  ƒ xÊ | D]Â \ } } | i ƒ  } |  } x# | D] } t	 i
 i | | ƒ } q6 W| t j o t  | ƒ nd t o d G| GHn t | d ƒ } | i | ƒ | o | d d j o | i d ƒ n | i ƒ  q Wd  S(   Ns   writes   wiÿÿÿÿs   
(   s   mkdirs   roots   descrs   names   contentss   splits   compss   fullnames   cs   oss   paths   joins   Nones   verboses   opens   fs   writes   close(   s   roots   descrs   cs   names   fs   compss   fullnames   contents(    (    s#   /usr/lib/python2.2/test/test_pkg.pys   mkhier
 s"    
   c    s%   t  o d G|  GHn t i |  ƒ d  S(   Ns   mkdir(   s   verboses   xs   oss   mkdir(   s   x(    (    s#   /usr/lib/python2.2/test/test_pkg.pys   mkdir s     c    s…   t  i |  ƒ } xe | D]] } t  i i |  | ƒ } t  i i | ƒ o t  i i	 | ƒ o t
 | ƒ n t  i | ƒ q Wt |  ƒ d  S(   N(   s   oss   listdirs   roots   namess   names   paths   joins   fullnames   isdirs   islinks   cleanouts   removes   rmdir(   s   roots   namess   fullnames   name(    (    s#   /usr/lib/python2.2/test/test_pkg.pys   cleanout s     'c    s%   t  o d G|  GHn t i |  ƒ d  S(   Ns   rmdir(   s   verboses   xs   oss   rmdir(   s   x(    (    s#   /usr/lib/python2.2/test/test_pkg.pys   rmdir) s     c    s/   y |  i d ƒ Wn t j
 o n X|  Sd  S(   Ns   __builtins__(   s   lsts   removes
   ValueError(   s   lst(    (    s#   /usr/lib/python2.2/test/test_pkg.pys   fixdir- s
    c  	  s  t  i ƒ  } t | |  ƒ t i } t  i ƒ  } t	 | d ƒ } | i | ƒ | i ƒ  zb t i i d | ƒ t o d Gt i GHn y t | t ƒ  h  ƒ Wn t i d t i ƒ n XWd  | t i (y t | ƒ Wn t i t f j
 o n Xt i | ƒ Xd  S(   Ns   wi    s
   sys.path =s   file(   s   tempfiles   mktemps   roots   mkhiers   hiers   syss   paths   savepaths   codefiles   opens   fs   writes   codes   closes   inserts   verboses   execfiles   globalss	   tracebacks	   print_excs   stdouts   cleanouts   oss   errors   IOErrors   remove(   s   hiers   codes   fs   roots   savepaths   codefile(    (    s#   /usr/lib/python2.2/test/test_pkg.pys   runtest6 s,    

  
s   t1s   t1 __init__s   pys    s	   import t1s   t2s   t2 __init__s'   'doc for t2'; print __name__, 'loading's   t2 subs   t2 sub __init__s   t2 sub subsubs   t2 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()
s   t3s   t3 __init__s   print __name__, 'loading's   t3 subs   t3 sub __init__s   t3 sub subsubs   t3 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)
s   t4s%   print 'THIS SHOULD NOT BE PRINTED (t4s   py)'s   t4 __init__s   t4 subs&   print 'THIS SHOULD NOT BE PRINTED (subs   t4 sub __init__s   t4 sub subsubs)   print 'THIS SHOULD NOT BE PRINTED (subsubs   t4 sub subsub __init__s@   
from t4.sub.subsub import *
print "t4.sub.subsub.spam =", spam
s   t5s   t5 __init__s   import t5.foos	   t5 strings   t5 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))
s   t6s   t6 __init__s!   __all__ = ['spam', 'ham', 'eggs']s   t6 spams   t6 hams   t6 eggssT   
import t6
print fixdir(dir(t6))
from t6 import *
print fixdir(dir(t6))
print dir()
s   t7s   print 'Importing t7s   py's   t7 __init__s   t7 subs   t7 sub __init__s   t7 sub subsubs   t7 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)
s   x5s   import as   .ai  s   x6ió  s   x7iô  s   x8iL  s   x9s   import s   as   x10s   x11iæ  s   x12iç  s   x13s   x14iÐ  s   __main__i   i    s   -qs   skipping tests   running tests,   No ImportError exception on 'import sys.imp'(   s   syss   oss   tempfiles	   tracebacks   mkdirs   rmdirs   extseps   test_supports   verifys   verboses
   TestFaileds   mkhiers   cleanouts   fixdirs   runtests   Nones   testss   nontestss   argss   __name__s   argvs   names   hiers   codes   imps   sys.imps   ImportError(   s   testss   codes   verboses   argss   runtests   mkhiers   oss   extseps   syss
   TestFaileds   names   imps   tempfiles   verifys	   tracebacks   mkdirs   fixdirs   hiers   rmdirs   cleanouts   nontests(    (    s#   /usr/lib/python2.2/test/test_pkg.pys   ? sF   $			
				ÿ ÿ ÿ .~Î  				