m
fIc           @   s  d  Z  d k Z d k Z d k Z d k Z d k Z d k Z d k Z d k Z e i	 d d e
 d  e i d j o e i	 d d e
 d  n e i d j ot y d k Z Wn e j
 o nO Xe i e i  \ Z Z e e e e d d	   Z e i e i e e f  n d
 k l Z d d d d d d d d f Z d d  Z e e d e e e e e e e e e d e e e d  Z d d d d d d g Z d d d  d! g Z e e e d"  Z  e e d#  Z! d$   Z" d%   Z# d&   Z$ d'   Z% d( d) d*  Z& h  d+ d, <d- d. <d/ d0 <d1 d2 <d3 d2 <d4 d5 <d6 d7 <d d8 <d9 d: <d; d< <d= d> <d? d@ <dA dB <dC dD <dE dF <Z' e' dC e' dG <e' dC e' dH <dI f  dJ     YZ( e) dK j o e i* i+ e i* i, e i* i- e i. d    Z/ e0 e i*  Z1 Z2 xV e1 d j oH e1 dL 8Z1 e i* i+ e i* i, e i* e1   e/ j o e i* e1 =n qWe0 e i*  e2 j o dM e/ GHn e   n d S(N   s  Regression test.

This will find all modules whose name is "test_*" in the test
directory, and run them.  Various command line options provide
additional facilities.

Command line options:

-v: verbose    -- run tests in verbose mode with output to stdout
-w: verbose2   -- re-run failed tests in verbose mode
-q: quiet      -- don't print anything except if a test fails
-g: generate   -- write the output file for a test instead of comparing it
-x: exclude    -- arguments are tests to *exclude*
-s: single     -- run only a single test (see below)
-r: random     -- randomize test execution order
-f: fromfile   -- read names of tests to run from a file (see below)
-l: findleaks  -- if GC is available detect tests that leak memory
-u: use        -- specify which special resource intensive tests to run
-h: help       -- print this text and exit
-t: threshold  -- call gc.set_threshold(N)
-T: coverage   -- turn on code coverage using the trace module
-D: coverdir   -- Directory where coverage files are put
-N: nocoverdir -- Put coverage files alongside modules
-L: runleaks   -- run the leaks(1) command just before exit
-R: huntrleaks -- search for reference leaks (needs debug build, v. slow)

If non-option arguments are present, they are names for tests to run,
unless -x is given, in which case they are names for tests not to run.
If no test names are given, all tests are run.

-v is incompatible with -g and does not compare test output files.

-T turns on code coverage tracing with the trace module.

-D specifies the directory where coverage files are put.

-N Put coverage files alongside modules.

-s means to run only a single test and exit.  This is useful when
doing memory analysis on the Python interpreter (which tend to consume
too many resources to run the full regression test non-stop).  The
file /tmp/pynexttest is read to find the next test to run.  If this
file is missing, the first test_*.py file in testdir or on the command
line is used.  (actually tempfile.gettempdir() is used instead of
/tmp).

-f reads the names of tests from the file given as f's argument, one
or more test names per line.  Whitespace is ignored.  Blank lines and
lines beginning with '#' are ignored.  This is especially useful for
whittling down failures involving interactions among tests.

-L causes the leaks(1) command to be run just before exit if it exists.
leaks(1) is available on Mac OS X and presumably on some other
FreeBSD-derived systems.

-R runs each test several times and examines sys.gettotalrefcount() to
see if the test appears to be leaking references.  The argument should
be of the form stab:run:fname where 'stab' is the number of times the
test is run to let gettotalrefcount settle down, 'run' is the number
of times further it is run and 'fname' is the name of the file the
reports are written to.  These parameters all have defaults (5, 4 and
"reflog.txt" respectively), so the minimal invocation is '-R ::'.

-u is used to specify which special resource intensive tests to run,
such as those requiring large file support or network connectivity.
The argument is a comma-separated list of words indicating the
resources to test.  Currently only the following are defined:

    all -       Enable all special resources.

    audio -     Tests that use the audio device.  (There are known
                cases of broken audio drivers that can crash Python or
                even the Linux kernel.)

    curses -    Tests that use curses and will modify the terminal's
                state and output modes.

    largefile - It is okay to run some test that may create huge
                files.  These tests can take a long time and may
                consume >2GB of disk space temporarily.

    network -   It is okay to run tests that use external network
                resource, e.g. testing SSL support for sockets.

    bsddb -     It is okay to run the bsddb testsuite, which takes
                a long time to complete.

    decimal -   Test the decimal module against a large suite that
                verifies compliance with standards.

    compiler -  Test the compiler package by compiling all the source
                in the standard library and test suite.  This takes
                a long time.

    subprocess  Run all tests for the subprocess module.

To enable all resources except one, use '-uall,-<resource>'.  For
example, to run all the tests except for the bsddb tests, give the
option '-uall,-bsddb'.
Nt   ignores   hex/oct constantss   .*test.test_grammar$is   <string>t   darwini   i   (   s   test_supportt   audiot   cursest	   largefilet   networkt   bsddbt   decimalt   compilert
   subprocesst    c         C   s&   t  GH| o	 | GHn t i |   d  S(   N(   t   __doc__t   msgt   syst   exitt   code(   R   R   (    (    t*   /mit/python/lib/python2.4/test/regrtest.pyt   usage   s     	i    t   coveragec   3      C   s  t  i t i  yY t i t i d d d d d d d d d	 d
 d d d d d d d d d g  \ }2 }# Wn% t i j
 o } t
 d |  n X|
 d. j o
 g  }
 n x|2 D]\ }+ }) |+ dh j o t
 d  q |+ di j o | d 7} q |+ dj j o
 t } q |+ dk j o t } d } q |+ dl j o
 t } q |+ dm j o
 t } q |+ dn j o
 t } q |+ do j o
 t } q |+ dp j o
 |) } q |+ dq j o
 t }	 q |+ dr j o
 t } q |+ ds j o  d. k } | i t |)   q |+ dt j o
 t } q |+ du j o t i i  t i!   |)  } q |+ dv j o
 d. } q |+ dw j o |) i# d7  } t% |  d8 j o |) G| GHt
 d d9  n t% | d  d j o d: | d <n t | d  | d <t% | d  d j o d; | d <n t | d  | d <t% | d  d j o d< | d <q2q |+ dx j o g  }- |) i# d?  D] }1 |- |1 i(   qR~- }0 x |0 D] }/ |/ d@ j o t+ |
 (qun t, } |/ d dA j o t } |/ d }/ n |/ t+ j o t
 d dB |)  n | o" |/ |
 j o |
 i- |/  q*qu|/ |
 j o |
 i. |/  ququWq q W| o | o t
 d dC  n | o | o t
 d dD  n g  }! g  } g  } g  }' |	 o8 y d. k } Wn t3 j
 o dE GHt, }	 qXg  } n | ow dF k5 l6 }* t i i  |*   dG  } y8 t8 | dH  }  |  i:   i;   } | g }  |  i>   WqIt? j
 o qIXn | oj g  }  t8 |  }  xG |  D]? }( |( i#   } | o& | d iB dI  o |  iC |  qiqiW|  i>   n |# o tD tE |#  }# n |  o tD tE |   }  n tF } tH } | oC x, |# D]$ } | | j o | i- |  q
q
W|# | d *g  }# n |  p |# p tK | | |  }  | o |  d  }  n | o tM iN |   n | o7 d. k } | iO dJ t iP t iQ g d t, dK t  }, n | t  _ |
 t  _ t iS iT   } xo|  D]g}% | p |% GHt i iW   n | o# |, iX dL dM tY   dN tZ   n t[ |% | | | | |  } | d j o |! i. |%  nJ | d j o | i. |%  n, | i. |%  | dO j o |' i. |%  n |	 oI | i]   | i^ o1 dP Gt% | i^  GdQ GH| iC | i^  | i^ 2qn xE t iS iT   D]4 } | | j o! | iB dR  o t  i` |  q(q(WqW|! ia   | ia   | ia   |! od | o\ | o# | o t% |!  d j o dS Gn tb t% |!  dT  GdU GH| o dV GHdW GHqn | o& tb t% |  dT  GdX GHtc |  n | o | o tb t% |  dT  GdY GHtc |  td   } t if }$ | ih   of ti |  | ij   ti |'  }" |" o. tb t% |"  dZ  Gd[ G|$ d7 GHtc |"  q	d\ G|$ d] GHq	d^ GHd_ G|$ d] GHn | o | oy d` GHxq | D]e }% da |% GHt i iW   y( d t  _ t[ |% | d | | |  } Wq 
tl j
 o	 HPq 
  q 
Xq 
Wn | o tK | | |  }& x tn t% |&   D]z }. |  d |& |. j o_ |. t% |&  d j o t ip |  n3 t8 | db  }  |  iq |& |. d dc  |  i>   Pq
q
Wt ip |  n | o, |, ir   }/ |/ is dd t de t df |  n | o t it dg t iu    n t iv t% |  d j  d. S(y   sX  Execute a test suite.

    This also parses command-line options and modifies its behavior
    accordingly.

    tests -- a list of strings containing test names (optional)
    testdir -- the directory in which to look for tests (optional)

    Users other than the Python test suite will certainly want to
    specify testdir; if it's omitted, the directory containing the
    Python test suite is searched for.

    If the tests argument is omitted, the tests listed on the
    command-line will be used.  If that's empty, too, then all *.py
    files beginning with test_ will be used.

    The other default arguments (verbose, quiet, generate, exclude, single,
    randomize, findleaks, use_resources, trace and coverdir) allow programmers
    calling main() directly to set the values that would normally be set by
    flags on the command line.
    i   s   hvgqxsrf:lu:t:TD:NLR:wt   helpt   verboset   quiett   generatet   excludet   singlet   randomt   fromfilet	   findleakss   use=s
   threshold=t   traces	   coverdir=t
   nocoverdirt   runleakss   huntrleaks=t   verbose2i   s   -hs   --helpi    s   -vs	   --verboses   -ws
   --verbose2s   -qs   --quiets   -gs
   --generates   -xs	   --excludes   -ss   --singles   -rs   --randomizes   -fs
   --fromfiles   -ls   --findleakss   -Ls
   --runleakss   -ts   --thresholdNs   -Ts
   --coverages   -Ds
   --coverdirs   -Ns   --nocoverdirs   -Rs   --huntrleakst   :i   s(   -R takes three colon-separated argumentsi   i   s
   reflog.txts   -us   --uset   ,t   allt   -s   Invalid -u/--use option: s   -g and -v don't go together!s   -s and -f don't go together!s%   No GC available, disabling findleaks.(   s
   gettempdirt
   pynexttestt   rt   #t
   ignoredirst   counts0   runtest(test, generate, verbose, quiet, testdir)t   globalst   localsis   Warning: test createds   uncollectable object(s).s   test.t   Allt   tests   OK.s0   CAUTION:  stdout isn't compared in verbose mode:s7   a test that passes in verbose mode may fail without it.s   failed:s   skipped:t   skips   unexpected ons   Those skips are all expected ont   .s6   Ask someone to teach regrtest.py about which tests ares   expected to get skipped ons'   Re-running failed tests in verbose modes"   Re-running test %r in verbose modet   ws   
t   show_missingt   summaryt   coverdirs   leaks %d(   s   -hs   --help(   s   -vs	   --verbose(   s   -ws
   --verbose2(   s   -qs   --quiet(   s   -gs
   --generate(   s   -xs	   --exclude(   s   -ss   --single(   s   -rs   --randomize(   s   -fs
   --fromfile(   s   -ls   --findleaks(   s   -Ls
   --runleaks(   s   -ts   --threshold(   s   -Ts
   --coverage(   s   -Ds
   --coverdir(   s   -Ns   --nocoverdir(   s   -Rs   --huntrleaks(   s   -us   --use(w   t   test_supportt   record_original_stdoutR   t   stdoutt   getoptt   argvt   optst   argst   errorR   R   t   use_resourcest   Nonet   ot   aR   t   TrueR   R   R   R   R   t	   randomizeR   R   R   t   gct   set_thresholdt   intR   t   ost   patht   joint   getcwdR2   t   splitt
   huntrleakst   lent   _[1]t   xt   lowert   uR%   t   RESOURCE_NAMESt   Falset   removet   appendt   goodt   badt   skippedt   resource_deniedst   ImportErrort   found_garbaget   tempfilet
   gettempdirt   filenamet   opent   fpt   readt   stript   nextt   testst   closet   IOErrort   linet   gutst
   startswitht   extendt   mapt   removepyt   STDTESTSt   stdtestst   NOTTESTSt   nottestst   argt	   findtestst   testdirR   t   shufflet   Tracet   prefixt   exec_prefixt   tracert   modulest   keyst   save_modulesR,   t   flusht   runctxR)   t   varst   runtestt   okt   collectt   garbaget   modulet   unloadt   sortR(   t	   printlistt   _ExpectedSkipst   et   platformt   platt   isvalidt   sett   getexpectedt   surpriset   KeyboardInterruptt   alltestst   ranget   it   unlinkt   writet   resultst   write_resultst   systemt   getpidR   (3   Ra   Rp   R   R   R   R   R   R@   R   R   R;   R   R2   R   RI   R   R   RU   RA   RQ   Rn   R`   Rx   R   Rm   Rk   Re   RT   R[   R}   R   RX   R]   RS   R   R9   R   R,   R   RV   Rd   R>   RZ   R=   Ru   RK   R   R%   RN   RL   R8   (    (    R   t   main   s    F
 








	

	0 
		  

 			 	

 


#
		   		 
	 t   test_grammart   test_opcodest   test_operationst   test_builtint   test_exceptionst
   test_typesR3   t   test_future1t   test_future2t   test_future3c         C   s   |  p t   }  n t i |   } g  } xp | D]h } | d  d j oQ | d t i d j o9 | d  } | | j o | | j o | i |  q q0 q0 W| i   | | S(   s-   Return a list of all applicable test modules.i   t   test_it   pyN(   Rp   t   findtestdirRD   t   listdirt   namesRa   t   namet   extsept   modnameRk   Rm   RR   R   (   Rp   Rk   Rm   R   Ra   R   R   (    (    R   Ro     s       )

c             sV  t  i |   | p t   } n t i i | d  } t i i | |   } | o
 d } n t i   } | o t | d d  } n yVt i } z<| o | t _ |  GHn |  i d  o
 |  } n d |  } t | t   t   g   } t | |    t  d d    d j	 o    n | od k   t i     i" i#    t i% i#    d k'        d   }  o  d   } n  d	   } g  } | d
 | d } t i, d I| Id IJt i, d | d d |  IJxY t- |  D]K } t i/   } |   t i, i1 d  |   | i2 t i/   | d  qWt i, Jt3 t4 t5 | | d   d
 j oQ t i, |  Id I| | d Id IJ| |  Id I| | d Id IJqn Wd | t _ XWnLt  i6 j
 o2 } | p |  Gd G| GHt i i9   n d Sn4t: t  i; f j
 o2 } | p |  Gd G| GHt i i9   n d Snt< j
 o
   nt  i= j
 o+ } d G|  Gd G| GHt i i9   d
 Snt i>   d  \ } } d G|  Gd GtA |  d G| GHt i i9   | o$ tB iC d t i  t i i9   n d
 Sn(X| p d Sn | iD   } | ok | |  d j o, t i iG |  o d G| Gd GHqd Sn t | d  } | i1 |  | iI   d Sn t i iG |  o) t | d  } | iJ   } | iI   n |  d } | | j p | o d Sn d G|  Gd  GHt i i9   tL | |  t i i9   d
 Sd S(!   sK  Run a single test.
    test -- the name of the test
    generate -- if true, generate output, instead of running the test
    and comparing it to a previously created output file
    verbose -- if true, print more messages
    quiet -- if true, don't print 'skipped' messages (probably redundant)
    testdir -- test directory
    t   outputi   R>   s   test.t	   test_mainNc             s   d  k  } d  k } d  k }  d  k } d k l } | i    |  i ( i
   t i   | i i   | i    i i    i i    t i i   t i i   | i   d  S(   N(   s   _path_created(   t	   _strptimet   urlparset   warningst   dircachet   distutils.dir_utilt   _path_createdt   cleart   fst   filtersRA   R~   t   sret   purget   _regex_cachet   clear_cachet   copy_regt   dispatch_tablet   updatet   psR   t   path_importer_cachet   pict   reset(   R   R   R   R   R   (   R   R   R   R   RA   (    R   t   cleanup  s    $




c              s       d  S(   N(   t   indirect_test(    (   R   (    R   t   run_the_test  s    c              s   t     d  S(   N(   t   reloadt
   the_module(    (   R   (    R   R     s    i    i   t	   beginningt   repetitionst
   1234567890i
   R.   t   leakedt
   referencess
   skipped --iiR,   s	   failed --s
   crashed --R    t   files   
s   output files)   is no longer needed; consider removing itR/   R%   s   produced unexpected output:(M   R3   R   R,   Rp   R   RD   RE   RF   t	   outputdirt
   outputfileR   R<   t   cfpt	   cStringIOt   StringIORI   R\   t   refrepR   R5   t   save_stdoutRf   t   abstestt
   __import__R)   R*   t   the_packaget   getattrR   R   R   R   R   R   R   t   copyR   R   R   RA   R   R   t   deltast   repcountt   stderrR   R   t   gettotalrefcountt   rcR   RR   t   maxRh   t   abst   ResourceDeniedR   R   Ry   RW   t   TestSkippedR   t
   TestFailedt   exc_infot   typet   valuet   strt	   tracebackt	   print_exct   getvalueR   R   t   existsR]   Rb   R^   t   expectedt
   reportdiff(    R,   R   R   R   Rp   RI   R   R   R   R   RA   R   R   R   R   R   R   R   R   R   R   R   R]   R   R   R   R   R   R   R   R   R   (    (   R   R   RA   R   R   R   R   R   R|     s     
			

	
	 %(1 

c         C   s  d  k  } d d GH|  i d  } | i d  } | i d | d |  } | i   } d   } xQ| D]I\ } } } }	 }
 | d j o qd | d j o: d	 G| | |  Gd
 GHx | | | !D] } d G| Gq Wqd | d j o^ d G| | |  Gd Gd G| |	 |
  Gd GHx | i | | | !| |	 |
 ! D]
 } | Gq*Wqd | d j oL d	 G| |	 |
  Gd Gd Gt |  d GHx9 | |	 |
 !D] } d G| GqWqd d G| | | |	 |
 f GHqd Wd d GHd  S(   Nt   *iF   i   R>   t   bc         C   s;   |  d 7}  |  | j o d t |   Sn d |  | f Sd  S(   Ni   s   line s   lines %d-%d(   t   x0t   x1R   (   R   R   (    (    R   t   pairf  s    
t   equalt   deletes   ***s   of expected output missing:R#   t   replaces   *** mismatch betweens   of expecteds
   output ands   of actual output:t   inserts   of actual output doesn't appears   in expected output after lineR    t   +s$   get_opcodes() returned bad tuple?!?!(   t   difflibR   t
   splitlinesR>   R   R   t   SequenceMatchert   smt   get_opcodest   tuplesR   t   opt   a0t   a1t   b0t   b1Rd   t   ndiffR   (   R   R   R>   R   R   R   R   R   R   R   R   R   Rd   R   (    (    R   R   ^  s8    			  +! ( c          C   sD   t  d j o t i d }  n t }  t i i |   p t i } | S(   Nt   __main__i    (
   t   __name__R   R7   R   t   __file__RD   RE   t   dirnamet   curdirRp   (   R   Rp   (    (    R   R     s
    c         C   s)   |  i t i d  o |  d  }  n |  S(   NR   i(   R   t   endswithRD   R   (   R   (    (    R   Ri     s    c         C   s1   |  d j o d |  | f Sn d |  | f Sd  S(   Ni   s   %d %ss   %d %ss(   t   nt   word(   R  R  (    (    R   R(     s    iF   i   c         C   sG   d k  l } d | } | d i t t |    | d | d | GHd S(   s   Print the elements of iterable x to stdout.

    Optional arg width (default 70) is the maximum line length.
    Optional arg indent (default 4) is the number of blanks with which to
    begin each line.
    (   s   fillt    t   initial_indentt   subsequent_indentN(	   t   textwrapt   fillt   indentt   blanksRF   Rh   R   RL   t   width(   RL   R  R  R  R  (    (    R   R     s
     
t   win32s  
        test__locale
        test_applesingle
        test_al
        test_bsddb185
        test_bsddb3
        test_cd
        test_cl
        test_commands
        test_crypt
        test_curses
        test_dbm
        test_dl
        test_fcntl
        test_fork1
        test_gdbm
        test_gl
        test_grp
        test_imgfile
        test_ioctl
        test_largefile
        test_linuxaudiodev
        test_mhlib
        test_nis
        test_openpty
        test_ossaudiodev
        test_poll
        test_posix
        test_pty
        test_pwd
        test_resource
        test_signal
        test_sunaudiodev
        test_threadsignals
        test_timing
        t   linux2s:  
        test_al
        test_applesingle
        test_bsddb185
        test_cd
        test_cl
        test_curses
        test_dl
        test_gl
        test_imgfile
        test_largefile
        test_linuxaudiodev
        test_nis
        test_ntpath
        test_ossaudiodev
        test_sunaudiodev
        t   macs  
        test_al
        test_atexit
        test_bsddb
        test_bsddb185
        test_bsddb3
        test_bz2
        test_cd
        test_cl
        test_commands
        test_crypt
        test_curses
        test_dbm
        test_dl
        test_fcntl
        test_fork1
        test_gl
        test_grp
        test_ioctl
        test_imgfile
        test_largefile
        test_linuxaudiodev
        test_locale
        test_mmap
        test_nis
        test_ntpath
        test_openpty
        test_ossaudiodev
        test_poll
        test_popen
        test_popen2
        test_posix
        test_pty
        test_pwd
        test_resource
        test_signal
        test_sunaudiodev
        test_sundry
        test_tarfile
        test_timing
        t	   unixware7s  
        test_al
        test_applesingle
        test_bsddb
        test_bsddb185
        test_cd
        test_cl
        test_dl
        test_gl
        test_imgfile
        test_largefile
        test_linuxaudiodev
        test_minidom
        test_nis
        test_ntpath
        test_openpty
        test_pyexpat
        test_sax
        test_sunaudiodev
        test_sundry
        t	   openunix8t   sco_sv3sO  
        test_al
        test_applesingle
        test_asynchat
        test_bsddb
        test_bsddb185
        test_cd
        test_cl
        test_dl
        test_fork1
        test_gettext
        test_gl
        test_imgfile
        test_largefile
        test_linuxaudiodev
        test_locale
        test_minidom
        test_nis
        test_ntpath
        test_openpty
        test_pyexpat
        test_queue
        test_sax
        test_sunaudiodev
        test_sundry
        test_thread
        test_threaded_import
        test_threadedtempfile
        test_threading
        t   riscoss  
        test_al
        test_applesingle
        test_asynchat
        test_atexit
        test_bsddb
        test_bsddb185
        test_bsddb3
        test_cd
        test_cl
        test_commands
        test_crypt
        test_dbm
        test_dl
        test_fcntl
        test_fork1
        test_gdbm
        test_gl
        test_grp
        test_imgfile
        test_largefile
        test_linuxaudiodev
        test_locale
        test_mmap
        test_nis
        test_ntpath
        test_openpty
        test_poll
        test_popen2
        test_pty
        test_pwd
        test_strop
        test_sunaudiodev
        test_sundry
        test_thread
        test_threaded_import
        test_threadedtempfile
        test_threading
        test_timing
        s  
        test__locale
        test_al
        test_bsddb
        test_bsddb3
        test_cd
        test_cl
        test_curses
        test_dl
        test_gdbm
        test_gl
        test_imgfile
        test_largefile
        test_linuxaudiodev
        test_locale
        test_minidom
        test_nis
        test_ntpath
        test_ossaudiodev
        test_poll
        test_sunaudiodev
        t   sunos5s@  
        test_al
        test_applesingle
        test_bsddb
        test_bsddb185
        test_cd
        test_cl
        test_curses
        test_dbm
        test_gdbm
        test_gl
        test_gzip
        test_imgfile
        test_linuxaudiodev
        test_openpty
        test_zipfile
        test_zlib
        s   hp-ux11s  
        test_al
        test_applesingle
        test_bsddb
        test_bsddb185
        test_cd
        test_cl
        test_curses
        test_dl
        test_gdbm
        test_gl
        test_gzip
        test_imgfile
        test_largefile
        test_linuxaudiodev
        test_locale
        test_minidom
        test_nis
        test_ntpath
        test_openpty
        test_pyexpat
        test_sax
        test_sunaudiodev
        test_zipfile
        test_zlib
        t   atheoss  
        test_al
        test_applesingle
        test_bsddb185
        test_cd
        test_cl
        test_curses
        test_dl
        test_gdbm
        test_gl
        test_imgfile
        test_largefile
        test_linuxaudiodev
        test_locale
        test_mhlib
        test_mmap
        test_nis
        test_poll
        test_popen2
        test_resource
        test_sunaudiodev
        t   cygwins|  
        test_al
        test_applesingle
        test_bsddb185
        test_bsddb3
        test_cd
        test_cl
        test_curses
        test_dbm
        test_gl
        test_imgfile
        test_ioctl
        test_largefile
        test_linuxaudiodev
        test_locale
        test_nis
        test_ossaudiodev
        test_socketserver
        test_sunaudiodev
        t   os2emxs  
        test_al
        test_applesingle
        test_audioop
        test_bsddb185
        test_bsddb3
        test_cd
        test_cl
        test_commands
        test_curses
        test_dl
        test_gl
        test_imgfile
        test_largefile
        test_linuxaudiodev
        test_mhlib
        test_mmap
        test_nis
        test_openpty
        test_ossaudiodev
        test_pty
        test_resource
        test_signal
        test_sunaudiodev
        t   freebsd4s  
        test_aepack
        test_al
        test_applesingle
        test_bsddb
        test_bsddb3
        test_cd
        test_cl
        test_gdbm
        test_gl
        test_imgfile
        test_linuxaudiodev
        test_locale
        test_macfs
        test_macostools
        test_nis
        test_normalization
        test_ossaudiodev
        test_pep277
        test_plistlib
        test_pty
        test_scriptpackages
        test_socket_ssl
        test_socketserver
        test_sunaudiodev
        test_tcl
        test_timeout
        test_unicode_file
        test_urllibnet
        test_winreg
        test_winsound
        t   aix5s  
        test_aepack
        test_al
        test_applesingle
        test_bsddb
        test_bsddb185
        test_bsddb3
        test_bz2
        test_cd
        test_cl
        test_dl
        test_gdbm
        test_gl
        test_gzip
        test_imgfile
        test_linuxaudiodev
        test_macfs
        test_macostools
        test_nis
        test_ossaudiodev
        test_sunaudiodev
        test_tcl
        test_winreg
        test_winsound
        test_zipimport
        test_zlib
        t   freebsd5t   freebsd6R   c           B   s#   t  Z d   Z d   Z d   Z RS(   Nc         C   s)  d  k  } d k l } d k l } d k l } d k l } l } d k l } l	 } d k l
 } t |  _ t i t j ot t i }	 t |	 i    |  _ | i i p |  i i d  n | i o |  i i d  n | i o |  i i d	  n | i o |  i i d
  n x: d D]2 }
 t d |
  i o |  i i d |
  q q Wt i d j o$ |  i i d  |  i i d  n t i d  j o: d d d d d g } x" | D] } |  i i |  qWn t i d j o4 d d d g } x" | D] } |  i i |  qWn t |  _ n d  S(!   N(   s   test_normalization(   s   test_socket_ssl(   s   test_timeout(   s   test_codecmaps_cns   test_codecmaps_jp(   s   test_codecmaps_krs   test_codecmaps_tw(   s   test_codecmaps_hkt   test_pep277t   test_normalizationt   test_socket_sslt   test_timeoutt   cnt   jpt   krt   twt   hkt   test_codecmaps_l    t   test_rgbimgt   test_imageopR  R   t   test_macostoolst
   test_macfst   test_aepackt   test_plistlibt   test_scriptpackagesR  t   test_unicode_filet   test_winregt   test_winsound(   R"  R#  R$  R%  R&  (   s   macs   darwin(    t   os.pathRD   R,   R  R   R!  t   test_codecmaps_cnt   test_codecmaps_jpt   test_codecmaps_krt   test_codecmaps_twt   test_codecmaps_hkRP   t   selft   validR   R   t   _expectationst   sR   RH   R   RE   t   supports_unicode_filenamest   addt   skip_expectedt   cct   evalt   maxintt   MAC_ONLYR-   t   WIN_ONLYR?   (   R8  R6  R   R-   R3  RB  RC  R  R!  R;  R?  R7  RD   R4  R5  (    (    R   t   __init__a  sJ    		


   c         C   s   |  i S(   s@   Return true iff _ExpectedSkips knows about the current platform.N(   R8  R9  (   R8  (    (    R   R     s     c         C   s   |  i S(   sn   Return set of test names we expect to skip on current platform.

        self.isvalid() must be true.
        N(   R8  R   (   R8  (    (    R   R     s      (   R   t
   __module__RD  R   R   (    (    (    R   R   `  s   	0	R   i   s*   Could not find %r in sys.path to remove it(3   R   RD   R   R6   R   R   R   R   R   t   filterwarningst   FutureWarningRA  R   t   resourceRW   t	   getrlimitt   RLIMIT_STACKt   softt   hardt   minR   t   newsoftt	   setrlimitR,   R3   RO   R   R<   RP   R   Rj   Rl   Ro   R|   R   R   Ri   R(   R   R:  R   R   RE   t   abspatht   normpathR  R7   t   mydirRJ   R   t   pathlen(   R3   R   R:  R   R|   RN  Rl   Ri   Rj   RR  R   R   R6   R   R   RL  R   R   RS  R(   RH  R   R   RD   R   R   R   Ro   RO   RK  (    (    R   t   ?f   sf   								9 		*			# >1 
,