o
    OZhC                     @   sJ   d dl Z d dlZd dlZd dlZG dd dejZedkr#e  dS dS )    Nc                   @   sH   e Zd Zdd Zedejvddd Zedejvddd Z	d	S )
DocsIncludedTestc                 C   s   ddl m}m} d S )Nr   )has_local_docs	open_docs)pygame.docs.__main__r   r   )selfr   r    r   E/var/www/auris/lib/python3.10/site-packages/pygame/tests/docs_test.pytest_doc_import_works   s   z&DocsIncludedTest.test_doc_import_worksCIz"Docs not required for local buildsc                 C   s   ddl m} | |  d S )Nr   )r   )r   r   
assertTrue)r   r   r   r   r   test_docs_included   s   z#DocsIncludedTest.test_docs_includedc                 C   s>   zt jtjddgddt jt jd W d S  t jy   Y d S w )Nz-mzpygame.docs   T)timeoutcheckstdoutstderr)
subprocessrunsys
executablePIPETimeoutExpired)r   r   r   r   test_docs_command   s   
	z"DocsIncludedTest.test_docs_commandN)
__name__
__module____qualname__r	   unittestZskipIfosenvironr   r   r   r   r   r   r      s    
r   __main__)r   r   r   r   ZTestCaser   r   mainr   r   r   r   <module>   s    