£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyÊ¦•êŽ…È®FÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~èŠ©ÊÇí`ÔÑ©úë™µ'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶ê×Ó¼ãžªéUWŸÈË%DÒÕ¬ï‘]/Åcx  ‰ï2ß]ä6G[]S£ÔÏ¯rs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ                  ¯¹ægƒÛowÐø^d™ý½ßB7áyMä9ÜÖUã
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<html>

Rec           @   s>  d  d l  Z  d  d l Z d  d l Z d  d l Z d  d l Z d  d l m Z m Z d  d l m	 Z	 d  d l
 m Z d  d l m Z d  d l m Z m Z d  d l m Z m Z m Z m Z m Z m Z m Z m Z m Z d  d l m Z d  d	 l m Z d
 e f d     YZ d e  f d     YZ! d e f d     YZ" d S(   iN(   t   DistutilsErrort   DistutilsOptionError(   t   log(   t
   TestLoader(   t   six(   t   mapt   filter(	   t   resource_listdirt   resource_existst   normalize_patht   working_sett   _namespace_packagest   evaluate_markert   add_activation_listenert   requiret
   EntryPoint(   t   Command(   t   unittest_maint   ScanningLoaderc           B   s   e  Z d d   Z RS(   c         C   s  g  } | j  t j |  |   t | d  rD | j  | j    n  t | d  r x t | j d  D]| } | j d  r | d k r | j d | d  } n- t | j | d  rf | j d | } n qf | j  |  j	 |   qf Wn  t
 |  d	 k r|  j |  S| d
 Sd S(   s  Return a suite of all tests cases contained in the given module

        If the module is a package, load tests from all the modules in it.
        If the module has an ``additional_tests`` function, call it and add
        the return value to the tests.
        t   additional_testst   __path__t    s   .pys   __init__.pyt   .is   /__init__.pyi   i    N(   t   appendR   t   loadTestsFromModulet   hasattrR   R   t   __name__t   endswithR   t   loadTestsFromNamet   lent
   suiteClass(   t   selft   modulet   patternt   testst   filet	   submodule(    (    s   /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyR      s    N(   R   t
   __module__t   NoneR   (    (    (    s   /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyR      s   t   NonDataPropertyc           B   s   e  Z d    Z d d  Z RS(   c         C   s   | |  _  d  S(   N(   t   fget(   R   R(   (    (    s   /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyt   __init__5   s    c         C   s   | d  k r |  S|  j |  S(   N(   R&   R(   (   R   t   objt   objtype(    (    s   /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyt   __get__8   s    N(   R   R%   R)   R&   R,   (    (    (    s   /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyR'   4   s   	t   testc           B   s   e  Z d  Z d Z d d d g Z d   Z d   Z e d    Z d   Z	 d   Z
 e j g  d   Z e e j d     Z e d    Z d   Z d   Z e d    Z e d    Z RS(   s.   Command to run unit tests after in-place builds#   run unit tests after in-place builds   test-module=t   ms$   Run 'test_suite' in specified modules   test-suite=t   ss9   Run single test, case or suite (e.g. 'module.test_suite')s   test-runner=t   rs   Test runner to usec         C   s(   d  |  _ d  |  _ d  |  _ d  |  _ d  S(   N(   R&   t
   test_suitet   test_modulet   test_loadert   test_runner(   R   (    (    s   /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyt   initialize_optionsJ   s    			c         C   s   |  j  r' |  j r' d } t |   n  |  j  d  k rj |  j d  k rW |  j j  |  _  qj |  j d |  _  n  |  j d  k r t |  j d d   |  _ n  |  j d  k r d |  _ n  |  j d  k r t |  j d d   |  _ n  d  S(   Ns1   You may specify a module or a suite, but not boths   .test_suiteR3   s&   setuptools.command.test:ScanningLoaderR4   (   R1   R2   R   R&   t   distributionR3   t   getattrR4   (   R   t   msg(    (    s   /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyt   finalize_optionsP   s    c         C   s   t  |  j    S(   N(   t   listt
   _test_args(   R   (    (    s   /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyt	   test_argsc   s    c         c   s)   |  j  r d Vn  |  j r% |  j Vn  d  S(   Ns	   --verbose(   t   verboseR1   (   R   (    (    s   /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyR;   g   s    		c         C   s   |  j     |   Wd QXd S(   sI   
        Backward compatibility for project_on_sys_path context.
        N(   t   project_on_sys_path(   R   t   func(    (    s   /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyt   with_project_on_sys_pathm   s    c   	      c   s  t  j o t |  j d t  } | r |  j d d d |  j d  |  j d  } t | j	  } |  j d d | |  j d  |  j d d d |  j d  n- |  j d  |  j d d d |  j d  |  j d  } t
 j } t
 j j   } zu t | j  } t
 j j d |  t j   t d	    t d
 | j | j f  |  j | g  
 d  VWd  QXWd  | t
 j (t
 j j   t
 j j |  t j   Xd  S(   Nt   use_2to3t   build_pyt   inplacei    t   egg_infot   egg_baset	   build_exti   c         S   s
   |  j    S(   N(   t   activate(   t   dist(    (    s   /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyt   <lambda>   R   s   %s==%s(   R   t   PY3R7   R6   t   Falset   reinitialize_commandt   run_commandt   get_finalized_commandR	   t	   build_libt   syst   patht   modulest   copyRE   t   insertR
   R)   R   R   t   egg_namet   egg_versiont   paths_on_pythonpatht   cleart   update(	   R   t   include_distst	   with_2to3t   bpy_cmdt
   build_patht   ei_cmdt   old_patht   old_modulest   project_path(    (    s   /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyR>   t   s8    


c         c   s   t    } t j j d |  } t j j d d  } zX t j j |   } t d | | g  } t j j |  } | r | t j d <n  d VWd | | k r t j j d d  n | t j d <Xd S(   s   
        Add the indicated paths to the head of the PYTHONPATH environment
        variable so that subprocesses will also see the packages at
        these paths.

        Do this in a context that restores the value on exit.
        t
   PYTHONPATHR   N(	   t   objectt   ost   environt   gett   pathsept   joinR   R&   t   pop(   t   pathst   nothingt   orig_pythonpatht   current_pythonpatht   prefixt   to_joint   new_path(    (    s   /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyRW      s    
		c         C   s_   |  j  |  j  } |  j  |  j p$ g   } |  j  d   |  j j   D  } t j | | |  S(   s   
        Install the requirements indicated by self.distribution and
        return an iterable of the dists that were built.
        c         s   s:   |  ]0 \ } } | j  d   r t | d  r | Vq d S(   t   :i   N(   t
   startswithR   (   t   .0t   kt   v(    (    s   /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pys	   <genexpr>   s    	(   t   fetch_build_eggst   install_requirest   tests_requiret   extras_requiret   itemst	   itertoolst   chain(   RH   t   ir_dt   tr_dt   er_d(    (    s   /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyt   install_dists   s
    c      	   C   s   |  j  |  j  } d j |  j  } |  j rB |  j d |  d  S|  j d |  t t j d  |  } |  j	 |  " |  j
    |  j   Wd  QXWd  QXd  S(   Nt    s   skipping "%s" (dry run)s   running "%s"t   location(   R   R6   Rh   t   _argvt   dry_runt   announceR   t   operatort
   attrgetterRW   R>   t	   run_tests(   R   t   installed_distst   cmdRj   (    (    s   /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyt   run   s    	c      	   C   sa  t  j r t |  j d t  r |  j j d  d } | t k r g  } | t j	 k re | j
 |  n  | d 7} x0 t j	 D]% } | j |  ry | j
 |  qy qy Wt t t j	 j |   q n  t j d
 k  r i  n
 i t d 6} t d  d  |  j d |  j |  j  d |  j |  j  | } | j j   s]d	 | j } |  j | t j  t |   n  d  S(   NRA   R   i    i   i   t   exitt
   testLoadert
   testRunners   Test failed: %s(   i   i   (   R   RJ   R7   R6   RK   R1   t   splitR   RP   RR   R   Rr   R:   R   t   __delitem__t   version_infoR   R&   R   t   _resolve_as_epR3   R4   t   resultt   wasSuccessfulR   R   t   ERRORR    (   R   R    t   del_modulest   namet
   exit_kwargR-   R8   (    (    s   /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyR      s*    
"	c         C   s   d g |  j  S(   Nt   unittest(   R<   (   R   (    (    s   /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyR      s    c         C   s0   |  d k r d St j d |   } | j     S(   su   
        Load the indicated attribute value, called, as a as if it were
        specified as an entry point.
        Ns   x=(   R&   R   t   parset   resolve(   t   valt   parsed(    (    s   /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyR      s    (   s   test-module=R.   s$   Run 'test_suite' in specified module(   s   test-suite=R/   s9   Run single test, case or suite (e.g. 'module.test_suite')(   s   test-runner=R0   s   Test runner to use(   R   R%   t   __doc__t   descriptiont   user_optionsR5   R9   R'   R<   R;   R@   t
   contextlibt   contextmanagerR>   t   staticmethodRW   R   R   R   t   propertyR   R   (    (    (    s   /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyR-   >   s(    					-		(#   Rd   R   RP   R   R{   t   distutils.errorsR    R   t	   distutilsR   R   R   t   setuptools.externR   t   setuptools.extern.six.movesR   R   t   pkg_resourcesR   R   R	   R
   R   R   R   R   R   t
   setuptoolsR   t   setuptools.py31compatR   R   Rc   R'   R-   (    (    (    s   /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyt   <module>   s   @ 
