
     f-                        d dl mZ d dlZd dlmZ d dlZddlmZmZ da	da
ddZddZej        dd            Zej        dd            Z ej        d          dd            ZddZdS )     )annotationsN)NoReturn   )	MockClock	trio_testTFparserpytest.ParserreturnNonec                f    |                      ddd           |                      ddd           d S )N
--run-slow
store_truezrun slow tests)actionhelp--skip-optional-importsz=skip tests that rely on libraries not required by trio itself)	addoption)r   s    \/var/www/api.educacionweb.es/myenv/lib/python3.11/site-packages/trio/_tests/pytest_plugin.pypytest_addoptionr      sN    
\,=MNNN
!L          configpytest.Configc                b    |                      dd          a|                      dd          ad S )Nr   T)defaultr   F)	getoptionRUN_SLOWSKIP_OPTIONAL_IMPORTS)r   s    r   pytest_configurer      s;    d;;H",,-FPU,VVr   r   c                     t                      S Nr    r   r   
mock_clockr"      s    ;;r   c                 "    t          d          S )Nr   )autojump_thresholdr    r!   r   r   autojump_clockr%   #   s    ****r   )tryfirst
pyfuncitempytest.Functionc                n    t          j        | j                  rt          | j                  | _        d S d S r   )inspectiscoroutinefunctionobjr   )r'   s    r   pytest_pyfunc_callr-   ,   s6    ":>22 3":>22
3 3r   errorImportErrorr   c                N    t           rt          j        | j        d           d S | )NT)allow_module_level)r   pytestskipmsg)r.   s    r   skip_if_optional_else_raiser5   2   s,     EI$777777r   )r   r	   r
   r   )r   r   r
   r   )r
   r   )r'   r(   r
   r   )r.   r/   r
   r   )
__future__r   r*   typingr   r2   testingr   r   r   r   r   r   fixturer"   r%   hookimplr-   r5   r!   r   r   <module>r;      s   " " " " " "         * * * * * * * *    W W W W     + + + + $3 3 3  3
     r   