ÿØÿà JFIF      ÿÛ „ 	 ( %!1!%)+//.383,7(-.+



-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ               ÿÄ J  	     ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ              ÿÄ *        !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍÑ¶¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
..............................................................................................................................................................................
.............................................................................                                                  
                                                                                                                                                                                     ÿØÿà JFIF      ÿÛ „ 	 ( %!1!%)+//.383,7(-.+



-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ               ÿÄ J  	     ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ              ÿÄ *        !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍÑ¶¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
..............................................................................................................................................................................
.............................................................................                                                  
                                                                                                                                                                                     
fc           @   s:  d  d l  Z  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	 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   Commandt   ScanningLoaderc           B   s   e  Z d    Z d d  Z RS(   c         C   s   t  j |   t   |  _ d  S(   N(   R   t   __init__t   sett   _visited(   t   self(    (    s;   /usr/lib/python2.7/site-packages/setuptools/command/test.pyR      s    c         C   s7  | |  j  k r d S|  j  j |  g  } | j t j |  |   t | d  rg | j | j    n  t | d  rx t | j	 d  D]| } | j
 d  r | d k r | j	 d | d  } n- t | j	 | d  r | j	 d | } n q | j |  j |   q 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(   R   t   Nonet   addt   appendR   t   loadTestsFromModulet   hasattrR   R   t   __name__t   endswithR   t   loadTestsFromNamet   lent
   suiteClass(   R   t   modulet   patternt   testst   filet	   submodule(    (    s;   /usr/lib/python2.7/site-packages/setuptools/command/test.pyR      s$    N(   R   t
   __module__R   R   R   (    (    (    s;   /usr/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;   /usr/lib/python2.7/site-packages/setuptools/command/test.pyR   >   s    c         C   s   | d  k r |  S|  j |  S(   N(   R   R+   (   R   t   objt   objtype(    (    s;   /usr/lib/python2.7/site-packages/setuptools/command/test.pyt   __get__A   s    N(   R   R)   R   R   R.   (    (    (    s;   /usr/lib/python2.7/site-packages/setuptools/command/test.pyR*   =   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;   /usr/lib/python2.7/site-packages/setuptools/command/test.pyt   initialize_optionsS   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_suiteR5   s&   setuptools.command.test:ScanningLoaderR6   (   R3   R4   R   R   t   distributionR5   t   getattrR6   (   R   t   msg(    (    s;   /usr/lib/python2.7/site-packages/setuptools/command/test.pyt   finalize_optionsY   s    c         C   s   t  |  j    S(   N(   t   listt
   _test_args(   R   (    (    s;   /usr/lib/python2.7/site-packages/setuptools/command/test.pyt	   test_argsl   s    c         c   sJ   |  j  r! t j d k r! d Vn  |  j r2 d Vn  |  j  rF |  j  Vn  d  S(   Ni   i   t   discovers	   --verbose(   i   i   (   R3   t   syst   version_infot   verbose(   R   (    (    s;   /usr/lib/python2.7/site-packages/setuptools/command/test.pyR=   p   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;   /usr/lib/python2.7/site-packages/setuptools/command/test.pyt   with_project_on_sys_pathx   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;   /usr/lib/python2.7/site-packages/setuptools/command/test.pyt   <lambda>   R   s   %s==%s(   R   t   PY3R9   R8   t   Falset   reinitialize_commandt   run_commandt   get_finalized_commandR	   t	   build_libR@   t   patht   modulest   copyRJ   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;   /usr/lib/python2.7/site-packages/setuptools/command/test.pyRC      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;   /usr/lib/python2.7/site-packages/setuptools/command/test.pyR[      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;   /usr/lib/python2.7/site-packages/setuptools/command/test.pys	   <genexpr>   s    	(   t   fetch_build_eggst   install_requirest   tests_requiret   extras_requiret   itemst	   itertoolst   chain(   RM   t   ir_dt   tr_dt   er_d(    (    s;   /usr/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   R8   Rl   t   _argvt   dry_runt   announceR   t   operatort
   attrgetterR[   RC   t	   run_tests(   R   t   installed_distst   cmdRn   (    (    s;   /usr/lib/python2.7/site-packages/setuptools/command/test.pyt   run   s    	c      
   C   sE  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  d  |  j d |  j |  j  d |  j |  j  d t } | j j   sAd | j } |  j | t j  t |   n  d  S(   NRF   R   i    t
   testLoadert
   testRunnert   exits   Test failed: %s(   R   RO   R9   R8   RP   R3   t   splitR   R@   RV   R   Rv   R<   R   t   __delitem__t   unittestt   mainR   R   t   _resolve_as_epR5   R6   t   resultt   wasSuccessfulR   R   t   ERRORR    (   R   R$   t   del_modulest   nameR/   R:   (    (    s;   /usr/lib/python2.7/site-packages/setuptools/command/test.pyR      s(    
	c         C   s   d g |  j  S(   NR   (   R>   (   R   (    (    s;   /usr/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;   /usr/lib/python2.7/site-packages/setuptools/command/test.pyR     s    (   s   test-module=R0   s$   Run 'test_suite' in specified module(   s   test-suite=R1   s9   Run single test, case or suite (e.g. 'module.test_suite')(   s   test-runner=R2   s   Test runner to use(   R   R)   t   __doc__t   descriptiont   user_optionsR7   R;   R*   R>   R=   RE   t
   contextlibt   contextmanagerRC   t   staticmethodR[   R   R   R   t   propertyR   R   (    (    (    s;   /usr/lib/python2.7/site-packages/setuptools/command/test.pyR/   G   s(    					-		(!   Rh   R   R@   R   R   R   t   distutils.errorsR    R   t	   distutilsR   R   t   setuptools.externR   t   setuptools.extern.six.movesR   R   t   pkg_resourcesR   R   R	   R
   R   R   R   R   R   t
   setuptoolsR   R   Rg   R*   R/   (    (    (    s;   /usr/lib/python2.7/site-packages/setuptools/command/test.pyt   <module>   s   @)
