
tN9c       ss     d  k  Z  d  k Z d  k Z d  k Z d  k Z  d k l Z l Z  [ [  d k l Z l	 Z	 
 d   Z
  d   Z  d   Z ) d   Z - d   Z 6 d   Z O d	 d	 e f d
 d f g d f d d e f d d f d e f d d f d e f d d f g d f d d e f d d f d e f d d f d e f d d f g d f d d d  f d e f d! d f d" d# f d$ e f d% d f d& d' f d( e f d) d f g	 d* f d+ d+ e f d, d- f d. d f d/ d0 f g d1 f d2 d2 e f d3 d4 f d5 d f d6 d f d7 d f g d8 f d9 d: d; f d9 e f d< d f d= d# f d> e f d? d f d@ d' f dA e f dB d f g	 dC f g Z  dD g  dE dF dG f dH g  dE dF dI f dJ g  dE dF dK f dL g  dE dF dM f dN g  dO dP dG f dQ g  dO dP dK f dR g  dO dP dS f dT g  dO dP dU f dV g  dO dP dU f dW g  dO dP dX f g
 Z   g  Z  e dY j oF  e  i dZ Z  e o e d[ d\ j o  d[ Z  e d[ =n n  xe e d[  rX \ Z Z Z  e o
 e e j o  d] Ge GH qn  d^ Ge GH e e e  qW d  k  Z   d  k Z  y  d  k Z  Wn  e j
 o
 n Xe	 d_  d  S(`   N(   s   mkdirs   rmdir(   s   verboses
   TestFailedc    s  
  t  |    x | d  r \ } }  t i |  }  |  }  x+ | d  r }  t
 i i | |  } qR W | t j o  t  |  nz  t o  d G| GHn  t | d  }  | i |   | o | d d j o  | i d  n  | i   q Wd  S(   Ni    s   writes   wi   s   
(   s   mkdirs   roots   descrs   names   contentss   strings   splits   compss   fullnames   cs   oss   paths   joins   Nones   verboses   opens   fs   writes   close(   s   roots   descrs   names   contentss   compss   fullnames   cs   fs*   /mit/python/lib/python2.0/test/test_pkg.pys   mkhier
 s"    	 	
 c    s1     t  o  d G|  GHn  t i |   d  S(   Ns   mkdir(   s   verboses   xs   oss   mkdir(   s   xs*   /mit/python/lib/python2.0/test/test_pkg.pys   mkdir s   
 c    s      t  i |   } ! xv | d ! ri } " t  i i |  |  } # t  i i |  o t  i i	 |  o $ t
 |  n & t  i |  q! W' t |   d  S(   Ni    (   s   oss   listdirs   roots   namess   names   paths   joins   fullnames   isdirs   islinks   cleanouts   removes   rmdir(   s   roots   namess   names   fullnames*   /mit/python/lib/python2.0/test/test_pkg.pys   cleanout s    	*c    s1   ) * t  o * d G|  GHn + t i |   d  S(   Ns   rmdir(   s   verboses   xs   oss   rmdir(   s   xs*   /mit/python/lib/python2.0/test/test_pkg.pys   rmdir) s   
 c    sA   - . y / |  i d  Wn 0 t j
 o
 1 n X2 |  Sd  S(   Ns   __builtins__(   s   lsts   removes
   ValueError(   s   lsts*   /mit/python/lib/python2.0/test/test_pkg.pys   fixdir- s
   c  	  sH  6 7 t  i   } 8 t | |   9 t i } : t  i   } ; t	 | d  } < | i |  = | i   > zw ? t i i d |  @ t o @ d Gt i GHn A y B t | t   h   Wn  C D t i d t i  n XWd  E F | t i (G y H t |  Wn" I t i t f j
 o
 J n XK t 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   roots   savepaths   codefiles   fs*   /mit/python/lib/python2.0/test/test_pkg.pys   runtest6 s,   
 s   t1s   t1 __init__.pys    s	   import t1s   t2s   t2 __init__.pys'   'doc for t2'; print __name__, 'loading's   t2 subs   t2 sub __init__.pys   t2 sub subsubs   t2 sub subsub __init__.pys#   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__.pys   print __name__, 'loading's   t3 subs   t3 sub __init__.pys   t3 sub subsubs   t3 sub subsub __init__.pys   
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   t4.pys*   print 'THIS SHOULD NOT BE PRINTED (t4.py)'s   t4 __init__.pys	   t4 sub.pys+   print 'THIS SHOULD NOT BE PRINTED (sub.py)'s   t4 subs   t4 sub __init__.pys   t4 sub subsub.pys.   print 'THIS SHOULD NOT BE PRINTED (subsub.py)'s   t4 sub subsubs   t4 sub subsub __init__.pys@   
from t4.sub.subsub import *
print "t4.sub.subsub.spam =", spam
s   t5s   t5 __init__.pys   import t5.foos   t5 string.pys	   t5 foo.pys;   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__.pys!   __all__ = ['spam', 'ham', 'eggs']s
   t6 spam.pys	   t6 ham.pys
   t6 eggs.pysT   
import t6
print fixdir(dir(t6))
from t6 import *
print fixdir(dir(t6))
print dir()
s   t7s   t7.pys   print 'Importing t7.py's   t7 __init__.pys	   t7 sub.pys   t7 subs   t7 sub __init__.pys   t7 sub subsub.pys   t7 sub subsubs   t7 sub subsub __init__.pysq  
t7, sub, subsub = None, None, None
import t7 as tas
print dir(tas)
assert not t7
from t7 import sub as subpar
print dir(subpar)
assert not t7 and not sub
from t7.sub import subsub as subsubsub
print dir(subsubsub)
assert not t7 and not sub and not subsub
from t7.sub.subsub import spam as ham
print "t7.sub.subsub.spam =", ham
assert 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   strings   tempfiles	   tracebacks   mkdirs   rmdirs   test_supports   verboses
   TestFaileds   mkhiers   cleanouts   fixdirs   runtests   Nones   testss   nontestss   argss   __name__s   argvs   names   hiers   codes   imps   sys.imps   ImportError(    s*   /mit/python/lib/python2.0/test/test_pkg.pys   ? sB   3	
	~ 		 
