ó
 ,ľ[c           @   sN   d  d l  Z  d  d l m Z m Z d e e d  Z e d k rJ e   n  d S(   i˙˙˙˙N(   t   patht   getcwdi   c         C   sö   y d d l  } Wn t k
 r/ t d   n Xt j j d  t j t j t  t j	  } t
   t j t j | t j	   k r t d   n  d d |  d | d	 g } | rÉ | j d
 d g  n  | sâ | j d g  n  | j d |  d S(   s5  Run NetworkX tests.

    Parameters
    ----------
    verbosity: integer, optional
      Level of detail in test reports.  Higher numbers provide more detail.

    doctest: bool, optional
      True to run doctests in code modules

    numpy: bool, optional
      True to test modules dependent on numpy
    i˙˙˙˙Ns5   The nose package is needed to run the NetworkX tests.s   Running NetworkX tests:sM   Can't run tests from source directory.
Run 'nosetests' from the command line.t    s   --verbosity=%ds   -ws   -exes   --with-doctests   --doctest-extension=txts   -A not numpyt   argv(   t   noset   ImportErrort   syst   stderrt   writeR    t   joint   dirnamet   __file__t   pardirR   t   abspatht   RuntimeErrort   extendt   run(   t	   verbosityt   doctestt   numpyR   t   nx_install_dirR   (    (    s2   lib/python2.7/site-packages/networkx/tests/test.pyR      s"    '
	t   __main__(   R   t   osR    R   t   Falset   TrueR   t   __name__(    (    (    s2   lib/python2.7/site-packages/networkx/tests/test.pyt   <module>   s   &