
    a^>                         d Z ddlmZ eZdgZddlZddlZddlZddl	m
Z
mZmZmZ ej                  ej                  z  ej                   z  Zd Zd Zy)zTest harness for doctests.    )print_function
load_testsN)cleanup_resourcesresource_existsresource_filenameresource_listdirc           
          g }t        dd      r^t        dd      D ]O  }|j                  |       s|j                  t        j
                  j                  t        dd|z                     Q |S )z(Find doctests matching a certain suffix.zlazr.uridocszdocs/%s)r   r   endswithappendospathabspathr   )suffixdoctest_filesnames      :/usr/lib/python3/dist-packages/lazr/uri/tests/test_docs.pyfind_doctestsr   ,   sl    Mz6*$Z8 	JD}}V$$$GGOO)*i$6FGIJ	J
     c           	          t        j                  t               |j                  t	        j
                  t        d      dt        dt        id       |S )zLoad all the doctests.z.rstFr   )module_relativeoptionflagsglobs)	atexitregisterr   addTestdoctestDocFileSuiter   DOCTEST_FLAGSr   )loadertestspatterns      r   r   r   9   sD    
OO%&	MM'&&	v	=02 3 Lr   )__doc__
__future__r   type__metaclass____all__r   r   r   pkg_resourcesr   r   r   r   ELLIPSISNORMALIZE_WHITESPACEREPORT_NDIFFr   r   r    r   r   <module>r-      sg   " ! %   	    ! 
r   