o
    ƒaã^>  ã                   @   sp   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B ejB Zdd„ Zdd„ ZdS )	zTest harness for doctests.é    )Úprint_functionÚ
load_testsN)Úcleanup_resourcesÚresource_existsÚresource_filenameÚresource_listdirc              	   C   sH   g }t ddƒr"tddƒD ]}| | ¡r!| tj tdd| ƒ¡¡ q|S )z(Find doctests matching a certain suffix.zlazr.uriZdocszdocs/%s)r   r   ÚendswithÚappendÚosÚpathÚabspathr   )ÚsuffixZdoctest_filesÚname© r   ú:/usr/lib/python3/dist-packages/lazr/uri/tests/test_docs.pyÚfind_doctests,   s   

ÿÿ€r   c                 C   s0   t  t¡ | tjtdƒdtdtidœŽ¡ |S )zLoad all the doctests.z.rstFr   )Zmodule_relativeZoptionflagsZglobs)	ÚatexitÚregisterr   ZaddTestÚdoctestZDocFileSuiter   ÚDOCTEST_FLAGSr   )ÚloaderZtestsÚpatternr   r   r   r   9   s   

ý)Ú__doc__Z
__future__r   ÚtypeZ__metaclass__Ú__all__r   r   r
   Zpkg_resourcesr   r   r   r   ÚELLIPSISZNORMALIZE_WHITESPACEZREPORT_NDIFFr   r   r   r   r   r   r   Ú<module>   s"   ÿ	ÿþÿ