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.uriÚdocszdocs/%s)r   r   ÚendswithÚappendÚosÚpathÚabspathr   )ÚsuffixÚ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   )Úmodule_relativeÚoptionflagsÚglobs)	ÚatexitÚregisterr   ÚaddTestÚdoctestÚDocFileSuiter   ÚDOCTEST_FLAGSr   )ÚloaderÚtestsÚpatternr   r   r   r   9   s   

ý)Ú__doc__Ú
__future__r   ÚtypeÚ__metaclass__Ú__all__r   r   r   Úpkg_resourcesr   r   r   r   ÚELLIPSISÚNORMALIZE_WHITESPACEÚREPORT_NDIFFr   r   r   r   r   r   r   Ú<module>   s"   ÿ	ÿþÿ