
.8Zc        #   @   s>  d  Z  d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k	 Z	 d d k
 Z d d k Z e	 i d d e d  e i d j o e	 i d d e d  n xO d d	 d
 d d d d d d d f
 D]) Z e	 i d d e f d d d e  q We i d j ow y d 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 d k l Z d d d d d d d  d! d" f	 Z d# d$  Z  e! e! d% e" e" e" e" e! e" e! e" d& e" e" e" e" d'  Z# d( d) d* d+ d, d- d. d/ d0 d1 g
 Z$ d2 d3 d4 g Z% e! e$ e% d5  Z& e! e" d6  Z' e! e" d7  Z( d8   Z) d9   Z* d:   Z+ d;   Z, d<   Z- d=   Z. d> d? d@  Z/ h dA dB 6dC dD 6dE dF 6dG dH 6dG dI 6dJ dK 6dL dM 6dN d 6dO dP 6dQ dR 6dS dT 6dU dV 6dW dX 6dY dZ 6d[ d\ 6d] d^ 6d_ d` 6Z0 e0 dZ e0 da <e0 dZ e0 db <e0 dZ e0 dc <e0 dZ e0 dd <de f  df     YZ1 e2 dg j o e i3 i4 e i3 i5 e i3 i6 e i7 d%    Z8 e9 e i3  Z: xV e: d% j oH e: dh 8Z: e i3 i4 e i3 i5 e i3 e:   e8 j o e i3 e: =n qWe#   n d S(i   sQ  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
-x: exclude    -- arguments are tests to *exclude*
-s: single     -- run only a single test (see below)
-S: slow       -- print the slowest 10 tests
-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)
-M: memlimit   -- run very large memory-consuming tests

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.

-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 ::'.

-M runs tests that require an exorbitant amount of memory. These tests
typically try to ascertain containers keep working when containing more than
2 billion objects, which only works on 64-bit systems. There are also some
tests that try to exhaust the address space of the process, which only makes
sense on 32-bit systems with at least 2Gb of memory. The passed-in memlimit,
which is a string in the form of '2.5Gb', determines howmuch memory the
tests will limit themselves to (but they may go slightly over.) The number
shouldn't be more memory than the machine has (including swap memory). You
should also keep in mind that swap memory is generally much, much slower
than RAM, and setting memlimit to all available RAM or higher will heavily
tax the machine. On the other hand, it is no use running these tests with a
limit of less than 2.5Gb, and many require more than 20Gb. Tests that expect
to use more than memlimit memory will be skipped. The big-memory tests
generally run very, very long.

-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.

    lib2to3 -   Run the tests for 2to3 (They take a while.)

    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.  Enabling this resource also allows
                test_tokenize to verify round-trip lexing on every
                file in the test library.

    subprocess  Run all tests for the subprocess module.

    urlfetch -  It is okay to download files required on testing.

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'.
iNt   ignores   hex/oct constantss   .*test.test_grammar$is   <string>t   ctypest   gzipt   zipfilet   tarfiles   encodings.zlib_codecs   test.test_zipimports   test.test_zlibs   test.test_zipfiles   test.test_codecss   test.string_testst   modules   .*%s$t   actiont   categoryt   darwini   i   (   t   test_supportt   audiot   cursest	   largefilet   networkt   bsddbt   decimalt   compilert
   subprocesst   urlfetcht    c         C   s&   t  GH| o	 | GHn t i |   d  S(   N(   t   __doc__t   syst   exit(   t   codet   msg(    (    s#   /usr/lib/python2.6/test/regrtest.pyt   usage   s     	i    t   coveragec   5   &   C   s  t  i t i  y\ t i t i d d d d d d d d d	 d
 d d d d d d d d d d g  \ } } Wn% t i j
 o } t d |  n X|	 d0 j o
 g  }	 n x| D]\ } } | dn j o t d  q | do j o | d 7} q | dp j o
 t	 } q | dq j o t	 } d } q | dr j o
 t	 } q | ds j o
 t	 } q | dt j o
 t	 } q | du j o
 t	 } q | dv j o
 | } q | dw j o
 t	 } q | dx j o
 t	 } q | dy j o# d/ d0 k
 } | i t |   q | dz j o
 t	 }
 q | d{ j o t i i t i   |  } q | d| j o
 d0 } q | d} j o | i d9  } t |  d: j o | G| GHt d d;  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 <qyq | d~ j o t  i |  q | d j o g  } | i dC  D] } | | i   qv~ } x | D] } | dD j o t |	 (qn t } | d dE j o t	 } | d } n | t j o t d dF |  n | o" | |	 j o |	 i |  qNq| |	 j o |	 i |  qqWq t i dG i |  IJt i d  q W| o | o t d dH  n g  } g  } g  } g  } | o; y d/ d0 k
 } Wn t j
 o dI GHt } qXg  } n | oz d/ dJ k l }  t i i |    dK  }! y8 t |! dL  }" |" i    i!   }# |# g }  |" i"   Wqwt# j
 o qwXn | oj g  }  t |  }" xG |" D]? }$ |$ i   }% |% o& |% d i$ dM  o |  i% |%  qqW|" i"   n | o t& t' |  } n |  o t& t' |   }  n t( }& t) }' | oC x, | D]$ }( |( |& j o |& i |(  q8q8W| |' d *g  } n |  p | p t* | |& |'  }  | o |  d  }  n | o t+ i, |   n |
 o: d/ d0 k- }
 |
 i. dN t i/ t i0 g d t dO t	  }) n g  }* | t  _1 |	 t  _2 t i3 i4   }+ x|  D]}, | p |, GHt i i5   n |
 o# |) i6 dP dQ t7   dR t8   n y t9 |, | | |* | |  }- Wn t: j
 o	 HPn   n X|- d j o | i |,  nJ |- d j o | i |,  n, | i |,  |- dS j o | i |,  n | oI | i;   | i< o1 dT Gt | i<  GdU GH| i% | i<  | i< 2qtn xE t i3 i4   D]4 }. |. |+ j o! |. i$ dV  o t  i= |.  qqWq0W| oO | oG | o# | o t |  d j o dW Gn t> t |  dX  GdY GHn | oC |* i? dZ t	  d[ GHx+ |* d\  D] \ }/ }, d] |, |/ f GHq=	Wn | o& t> t |  dX  Gd^ GHt@ |  n | o | o t> t |  dX  Gd_ GHt@ |  tA   }0 t iB }1 |0 iC   of tD |  |0 iE   tD |  }2 |2 o. t> t |2  d`  Gda G|1 d9 GHt@ |2  qU
db G|1 dc GHqY
dd GHde G|1 dc GHn | o | oy df GHxq | D]e }, dg |, GHt i i5   y( t	 t  _1 t9 |, t	 | |* | |  }- Wqs
t: j
 o	 HPqs
  qs
Xqs
Wn | o t* | |& |'  }3 x tF t |3   D]z }4 |  d |3 |4 j o_ |4 t |3  d j o t iG |!  n3 t |! dh  }" |" iH |3 |4 d di  |" i"   PqqWt iG |!  n |
 o, |) iI   } | iJ dj t	 dk t	 dl |  n | o t iK dm t iL    n t i t |  d j  d0 S(   s[  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, exclude,
    single, randomize, findleaks, use_resources, trace, coverdir, and
    print_slow) allow programmers calling main() directly to set the
    values that would normally be set by flags on the command line.
    i   s   hvqxsSrf:lu:t:TD:NLR:wM:t   helpt   verboset   quiett   excludet   singlet   slowt   randomt   fromfilet	   findleakss   use=s
   threshold=t   traces	   coverdir=t
   nocoverdirt   runleakss   huntrleaks=t   verbose2s	   memlimit=i   s   -hs   --helpi    s   -vs	   --verboses   -ws
   --verbose2s   -qs   --quiets   -xs	   --excludes   -ss   --singles   -Ss   --slows   -rs   --randomizes   -fs
   --fromfiles   -ls   --findleakss   -Ls
   --runleakss   -ts   --thresholdiNs   -Ts
   --coverages   -Ds
   --coverdirs   -Ns   --nocoverdirs   -Rs   --huntrleakst   :i   s(   -R takes three colon-separated argumentsi   i   s
   reflog.txts   -Ms
   --memlimits   -us   --uset   ,t   allt   -s   Invalid -u/--use option: sR   No handler for option {0}.  Please report this as a bug at http://bugs.python.org.s   -s and -f don't go together!s%   No GC available, disabling findleaks.(   t
   gettempdirt
   pynexttestt   rt   #t
   ignoredirst   counts9   runtest(test, verbose, quiet,        test_times, testdir)t   globalst   localsis   Warning: test createds   uncollectable object(s).s   test.t   Allt   tests   OK.t   reverses   10 slowest tests:i
   s	   %s: %.1fss   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   -xs	   --exclude(   s   -ss   --single(   s   -Ss   --slow(   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   -Ms
   --memlimit(   s   -us   --use(M   R	   t   record_original_stdoutR   t   stdoutt   getoptt   argvt   errorR   t   Nonet   Truet   gct   set_thresholdt   intt   ost   patht   joint   getcwdt   splitt   lent   set_memlimitt   lowert   RESOURCE_NAMESt   Falset   removet   appendt   stderrt   formatR   t   ImportErrort   tempfileR,   t   opent   readt   stript   closet   IOErrort
   startswitht   extendt   mapt   removepyt   STDTESTSt   NOTTESTSt	   findtestsR!   t   shuffleR$   t   Tracet   prefixt   exec_prefixR   t   use_resourcest   modulest   keyst   flusht   runctxR2   t   varst   runtestt   KeyboardInterruptt   collectt   garbaget   unloadR1   t   sortt	   printlistt   _ExpectedSkipst   platformt   isvalidt   sett   getexpectedt   ranget   unlinkt   writet   resultst   write_resultst   systemt   getpid(5   t   testst   testdirR   R   R   R   t	   randomizeR"   R#   Rg   R$   R<   R&   t
   huntrleaksR'   t
   print_slowt   optst   argsR   t   ot   aRD   t   _[1]t   xt   uR.   RQ   t   goodt   badt   skippedt   resource_deniedst   found_garbageR,   t   filenamet   fpt   nextt   linet   gutst   stdtestst   nottestst   argt   tracert
   test_timest   save_modulesR5   t   okR   t   timet   et   platt   surpriset   alltestst   i(    (    s#   /usr/lib/python2.6/test/regrtest.pyt   main   s   	
 










	0 	
		  

 		 

 # 
		  		 
	 t   test_grammart   test_opcodest	   test_dictt   test_builtint   test_exceptionst
   test_typest   test_unittestt   test_doctestt   test_doctest2t   test_py3kwarnR	   t   test_future1t   test_future2c         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   py(   t   findtestdirRG   t   listdirt   extsepRR   Rr   (   R   R   R   t   namesR   t   namet   modname(    (    s#   /usr/lib/python2.6/test/regrtest.pyRb     s      )

c      
   C   s2   z t  |  | | | | |  SWd t |  |  Xd S(   s.  Run a single test.

    test -- the name of the test
    verbose -- if true, print more messages
    quiet -- if true, don't print 'skipped' messages (probably redundant)
    test_times -- a list of (time, test_name) pairs
    testdir -- test directory
    huntrleaks -- run multiple times to test for leaks; requires a debug
                  build; a triple corresponding to -R's three arguments
    Return:
        -2  test skipped because resource denied
        -1  test skipped for some other reason
         0  test failed
         1  test passed
    N(   t   runtest_innert   cleanup_test_droppings(   R5   R   R   R   R   R   (    (    s#   /usr/lib/python2.6/test/regrtest.pyRm     s    c         C   s  t  i |   | p t   } n | o
 d  } n t i   } y t i } z | o | t _ n |  i d  o
 |  } n d |  } t	 i	   }	 t
 | t   t   g   }
 t |
 |   } t | d d   } | d  j	 o |   n | o t | |  | |  n t	 i	   |	 } | i | |  f  Wd  | t _ XWn@t  i j
 o/ } | p |  Gd G| GHt i i   n d St t  i f j
 o/ } | p |  Gd G| GHt i i   n d St j
 o
   nt  i j
 o( } d G|  Gd G| GHt i i   d St i   d	  \ } } d G|  Gd
 Gt |  d G| GHt i i   | o$ t i d t i  t i i   n d SX| p | o d S| i   } | p d Sd G|  Gd GHd d GH| GHd d GHt i i   d Sd  S(   Ns   test.t	   test_mains
   skipped --iiR5   s	   failed --i    i   s
   crashed --R(   t   filei   s   produced unexpected output:t   *iF   (   R	   Rq   R   RB   t	   cStringIOt   StringIOR   R>   R\   R   t
   __import__R2   R3   t   getattrt   dash_RRR   t   ResourceDeniedRj   RU   t   TestSkippedRn   t
   TestFailedt   exc_infot   strt	   tracebackt	   print_exct   getvalue(   R5   R   R   R   R   R   t   capture_stdoutt   save_stdoutt   abstestt
   start_timet   the_packaget
   the_modulet   indirect_testt	   test_timeR   t   typet   valuet   output(    (    s#   /usr/lib/python2.6/test/regrtest.pyR     sx    
	

		c      	   C   s  d d  k  } x t i d f D] } t i i |  p q n t i i |  o d | i } } n8 t i i |  o d t i	 } } n t
 d |   | o d |  | | f GHn y | |  Wq t j
 o& } t i d |  | | | f IJq Xq Wd  S(   Nit   db_homet	   directoryR   s8   os.path says %r exists but is neither directory nor files   %r left behind %s %rs3   %r left behind %s %r and it couldn't be removed: %s(   t   shutilR	   t   TESTFNRG   RH   t   existst   isdirt   rmtreet   isfileRz   t   SystemErrort	   ExceptionR   RS   (   t   testnameR   R   R   t   kindt   nukerR   (    (    s#   /usr/lib/python2.6/test/regrtest.pyR   c  s&    	 

c            sz  d d  k  } d d  k } d d  k } t t d  p t d   n t i } | i i	   } t i
 i	   }	 h  }
 | | f } x g  } | D]& } | i D] } | t | |  q q ~ D]N } t | d  p q n x. | i   | g D] } | i i	   |
 | <q Wq W o  f d   } n   f d   } g  } | \ } } } | | } t i d I| Id IJt i d	 | d
 d |  IJt | | |	 |
  xv t |  D]h } t i   } |   t i i d  t | | |	 |
  | | j o | i t i   | d  qqWt i Jt |  oM d | | t |  f } t i | IJt | d  } | | IJ| i   n d  S(   Nit   gettotalrefcounts9   Tracking reference leaks requires a debug build of Pythont   _abc_registryc              s       d  S(   N(    (    (   R   (    s#   /usr/lib/python2.6/test/regrtest.pyt   run_the_test  s    c              s   t  i    d  S(   N(   t   impt   reload(    (   R   (    s#   /usr/lib/python2.6/test/regrtest.pyR     s    t	   beginningt   repetitionst
   1234567890i
   i   R8   i   s   %s leaked %s references, sum=%sR   (   t   copy_regt   _abcollt   iot   hasattrR   R   t   warningst   filterst   dispatch_tablet   copyt   path_importer_cachet   __all__R   t   __subclasses__R   RS   t   dash_R_cleanupRy   R   R{   RR   t   anyt   sumRW   RZ   (   R   R5   R   R   R   R   R   t   fst   pst   pict   abcsRh   R   t   modR   t   abct   objR   t   deltast   nwarmupt   ntrackedt   fnamet   repcountR   t   rcR   t   refrep(    (   R   R   s#   /usr/lib/python2.6/test/regrtest.pyR     sN    $
;  
 #
c         C   s  d d  k  } d d  k } d d  k } d d  k } t i d d t } d d  k }	 d d  k }
 d d  k	 } d d  k
 } d d  k } d d  k } d d  k } d d k l } x1 t i i   D]  } t | d  o
 | ` q q W|  t i (| i i   | i i |  t i i   t i i |  t i   xC | i   D]5 \ } } | i   | _ | i i   | i  i   q8W| i   t! i"   | i# i   |	 i$   |
 i%   | i& d   | i(   | i)   | i*   | i+ i   | i,   d  | _- | i.   d  S(   Nit   dircachet
   deprecated(   t   _path_createdt   __warningregistry__(/   RD   R   t	   _strptimet	   linecacheR	   t   import_moduleRC   t   urlparset   urllibt   urllib2t	   mimetypest   doctestt   structt   filecmpt   distutils.dir_utilR  R   Rh   t   valuesR   R	  R   R   R   t   cleart   updateR   t   _clear_type_cachet   itemsR   R   t
   _abc_cachet   _abc_negative_cachet   ret   purget   _regex_cachet   clear_cachet
   urlcleanupt   install_openerRB   t   resett
   clearcachet   _default_mime_typest   _cachet   _clearcachet   masterRo   (   R   R   R   R   RD   R   R
  R  R  R  R  R  R  R  R  R  R  R   R   t   registry(    (    s#   /usr/lib/python2.6/test/regrtest.pyR     sD    < 

 







	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   R@   t   __file__RG   RH   t   dirnamet   curdir(   R   R   (    (    s#   /usr/lib/python2.6/test/regrtest.pyR     s
    c         C   s)   |  i  t i d  o |  d  }  n |  S(   NR   i(   t   endswithRG   R   (   R   (    (    s#   /usr/lib/python2.6/test/regrtest.pyR_     s    c         C   s.   |  d j o d |  | f Sd |  | f Sd  S(   Ni   s   %d %ss   %d %ss(    (   t   nt   word(    (    s#   /usr/lib/python2.6/test/regrtest.pyR1     s    iF   i   c         C   sQ   d d k  l } d | } | d i d   t |   D  | 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.
    i(   t   fillt    c         s   s   x |  ] } t  |  Vq Wd  S(   N(   R   (   t   .0t   elt(    (    s#   /usr/lib/python2.6/test/regrtest.pys	   <genexpr>  s   	 t   initial_indentt   subsequent_indentN(   t   textwrapR1  RI   t   sorted(   R   t   widtht   indentR1  t   blanks(    (    s#   /usr/lib/python2.6/test/regrtest.pyRs     s    
%sZ  
        test__locale
        test_bsddb185
        test_bsddb3
        test_commands
        test_crypt
        test_curses
        test_dbm
        test_dl
        test_fcntl
        test_fork1
        test_epoll
        test_gdbm
        test_grp
        test_ioctl
        test_largefile
        test_kqueue
        test_mhlib
        test_openpty
        test_ossaudiodev
        test_pipes
        test_poll
        test_posix
        test_pty
        test_pwd
        test_resource
        test_signal
        test_threadsignals
        test_timing
        test_wait3
        test_wait4
        t   win32s   
        test_bsddb185
        test_curses
        test_dl
        test_largefile
        test_kqueue
        test_ossaudiodev
        t   linux2sz  
        test_atexit
        test_bsddb
        test_bsddb185
        test_bsddb3
        test_bz2
        test_commands
        test_crypt
        test_curses
        test_dbm
        test_dl
        test_fcntl
        test_fork1
        test_epoll
        test_grp
        test_ioctl
        test_largefile
        test_locale
        test_kqueue
        test_mmap
        test_openpty
        test_ossaudiodev
        test_poll
        test_popen
        test_popen2
        test_posix
        test_pty
        test_pwd
        test_resource
        test_signal
        test_sundry
        test_tarfile
        test_timing
        t   macs   
        test_bsddb
        test_bsddb185
        test_dl
        test_epoll
        test_largefile
        test_kqueue
        test_minidom
        test_openpty
        test_pyexpat
        test_sax
        test_sundry
        t	   unixware7t	   openunix8s  
        test_asynchat
        test_bsddb
        test_bsddb185
        test_dl
        test_fork1
        test_epoll
        test_gettext
        test_largefile
        test_locale
        test_kqueue
        test_minidom
        test_openpty
        test_pyexpat
        test_queue
        test_sax
        test_sundry
        test_thread
        test_threaded_import
        test_threadedtempfile
        test_threading
        t   sco_sv3se  
        test_asynchat
        test_atexit
        test_bsddb
        test_bsddb185
        test_bsddb3
        test_commands
        test_crypt
        test_dbm
        test_dl
        test_fcntl
        test_fork1
        test_epoll
        test_gdbm
        test_grp
        test_largefile
        test_locale
        test_kqueue
        test_mmap
        test_openpty
        test_poll
        test_popen2
        test_pty
        test_pwd
        test_strop
        test_sundry
        test_thread
        test_threaded_import
        test_threadedtempfile
        test_threading
        test_timing
        t   riscoss   
        test__locale
        test_bsddb
        test_bsddb3
        test_curses
        test_epoll
        test_gdbm
        test_largefile
        test_locale
        test_kqueue
        test_minidom
        test_ossaudiodev
        test_poll
        s   
        test_bsddb
        test_bsddb185
        test_curses
        test_dbm
        test_epoll
        test_kqueue
        test_gdbm
        test_gzip
        test_openpty
        test_zipfile
        test_zlib
        t   sunos5sC  
        test_bsddb
        test_bsddb185
        test_curses
        test_dl
        test_epoll
        test_gdbm
        test_gzip
        test_largefile
        test_locale
        test_kqueue
        test_minidom
        test_openpty
        test_pyexpat
        test_sax
        test_zipfile
        test_zlib
        s   hp-ux11s  
        test_bsddb185
        test_curses
        test_dl
        test_gdbm
        test_epoll
        test_largefile
        test_locale
        test_kqueue
        test_mhlib
        test_mmap
        test_poll
        test_popen2
        test_resource
        t   atheoss   
        test_bsddb185
        test_bsddb3
        test_curses
        test_dbm
        test_epoll
        test_ioctl
        test_kqueue
        test_largefile
        test_locale
        test_ossaudiodev
        test_socketserver
        t   cygwinsN  
        test_audioop
        test_bsddb185
        test_bsddb3
        test_commands
        test_curses
        test_dl
        test_epoll
        test_kqueue
        test_largefile
        test_mhlib
        test_mmap
        test_openpty
        test_ossaudiodev
        test_pty
        test_resource
        test_signal
        t   os2emxs3  
        test_bsddb
        test_bsddb3
        test_epoll
        test_gdbm
        test_locale
        test_ossaudiodev
        test_pep277
        test_pty
        test_socket_ssl
        test_socketserver
        test_tcl
        test_timeout
        test_urllibnet
        test_multiprocessing
        t   freebsd4s  
        test_bsddb
        test_bsddb185
        test_bsddb3
        test_bz2
        test_dl
        test_epoll
        test_gdbm
        test_gzip
        test_kqueue
        test_ossaudiodev
        test_tcl
        test_zipimport
        test_zlib
        t   aix5s  
        test_bsddb
        test_bsddb3
        test_ctypes
        test_dl
        test_epoll
        test_gdbm
        test_locale
        test_normalization
        test_ossaudiodev
        test_pep277
        test_tcl
        test_multiprocessing
        t   openbsd3s  
        test_bsddb
        test_bsddb185
        test_bsddb3
        test_ctypes
        test_curses
        test_dl
        test_epoll
        test_gdbm
        test_locale
        test_ossaudiodev
        test_pep277
        test_tcl
        test_multiprocessing
        t   netbsd3t   freebsd5t   freebsd6t   freebsd7t   freebsd8Rt   c           B   s#   e  Z d    Z d   Z d   Z RS(   c   	      C   s  d d  k  } d d k l } t |  _ t i t j oPt t i } t | i	    |  _
 |  i
 i d  | i i p |  i
 i d  n y d d k l } Wn t j
 o n  X| i o |  i
 i d  n | i o |  i
 i d  n t i d j o |  i
 i d	  n t i d% j o= d d d d d d g } xR | D] } |  i
 i |  qAWn1 t d i d   d j o |  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 o= d	 d d d d d  g } x" | D] } |  i
 i |  qWn t i d! j o$ |  i
 i d"  |  i
 i d#  n t i p |  i
 i d$  n t |  _ n d  S(&   Ni(   t   test_timeoutt   test_linuxaudiodevt   test_pep277(   t   test_socket_sslRR  RO  l    t   test_imageopR>  R   t
   test_macost   test_macostoolst   test_aepackt   test_plistlibt   test_scriptpackagest   test_applesingleu    s   unicode-internali   R<  t   test_unicode_filet   test_winregt   test_winsoundt   test_startfilet   test_sqlitet   irixt   test_alt   test_cdt   test_clt   test_glt   test_imgfileRC  t   test_sunaudiodevt   test_nisR   (   s   macs   darwin(   t   os.pathR5   RO  RP   t   validR   Ru   t   _expectationsRw   RK   t   expectedt   addRH   t   supports_unicode_filenamesRR  RU   t   skip_expectedt   maxintRL   t   encodet   py3kwarningRC   (	   t   selfRG   RO  t   sRR  t   MAC_ONLYR7   t   WIN_ONLYt	   IRIX_ONLY(    (    s#   /usr/lib/python2.6/test/regrtest.pyt   __init__]  s^    	

		 	  
c         C   s   |  i  S(   s@   Return true iff _ExpectedSkips knows about the current platform.(   Rh  (   Rq  (    (    s#   /usr/lib/python2.6/test/regrtest.pyRv     s    c         C   s   |  i    p t  |  i S(   sn   Return set of test names we expect to skip on current platform.

        self.isvalid() must be true.
        (   Rv   t   AssertionErrorRj  (   Rq  (    (    s#   /usr/lib/python2.6/test/regrtest.pyRx     s    (   R*  t
   __module__Rv  Rv   Rx   (    (    (    s#   /usr/lib/python2.6/test/regrtest.pyRt   \  s   	?	R)  i   (;   R   R   R?   RG   R!   R  R   R   R   R   t   encodings.asciit	   encodingsR   t   filterwarningst   FutureWarningRn  R   t   ImportWarningRu   t   resourceRU   t	   getrlimitt   RLIMIT_STACKt   softt   hardt   mint   maxt   newsoftt	   setrlimitR5   R	   RO   R   RB   RP   R   R`   Ra   Rb   Rm   R   R   R   R   R   R_   R1   Rs   Ri  Rt   R*  RH   t   abspatht   normpathR,  R@   t   mydirRL   R   (    (    (    s#   /usr/lib/python2.6/test/regrtest.pyt   <module>z   s   	
  #		H		1	.			!	#!
M1 
,