o
    e/                     @   s|   d dl Z d dlZd dlmZ d dlmZ d dlmZ d dlmZ dd Zdd	 Z	e	G d
d de j
Zedkr<e  dS dS )    N)modules)main)NON_APPLICABLE_SUFFIXES)sixc                    s(    fdd}d  dd }||_|S )Nc              	      s   t d}| }W d    n1 sw   Y  t / tdt zt| d W n tyC    t	j
v rBtd   w W d    d S 1 sOw   Y  d S )Nrbignore)__file____name__z#Unable to import optional module %s)openreadwarningscatch_warningssimplefilterDeprecationWarningr   exec_ImportErrorr   ZOPTIONAL_MODULESunittestZSkipTest)_fsrcmodulepath ND:\Projects\ConvertPro\env\Lib\site-packages\gevent/tests/test__execmodules.pytest   s   


"zmake_exec_test.<locals>.testZtest_.r   )replacer	   )r   r   r   namer   r   r   make_exec_test
   s   r   c                 C   s@   t jdddD ]\}}|trqt||}t| |j| q| S )NTF)	recursiveZcheck_optional)r   Zwalk_modulesendswithr   r   setattrr	   )clsr   r   r   r   r   r   make_all_tests   s   

r$   c                   @   s   e Zd ZdS )TestN)r	   
__module____qualname__r   r   r   r   r%   $   s    r%   __main__)r   r   Zgevent.testingr   r   Zgevent.testing.sysinfor   r   r   r$   ZTestCaser%   r	   r   r   r   r   <module>   s    	
