o
    4@Hh-                     @  s   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dZd"ddZejd#ddZejd#ddZejddd$ddZd%dd ZdS )&    )annotationsN)NoReturn   )	MockClock	trio_testTFparserpytest.ParserreturnNonec                 C  s$   | j dddd | j 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    r   Y/home/air/sanwanet/gpt-api/venv/lib/python3.10/site-packages/trio/_tests/pytest_plugin.pypytest_addoption   s   
r   configpytest.Configc                 C  s    | j ddda| j dddad S )Nr   T)defaultr   F)	getoptionRUN_SLOWSKIP_OPTIONAL_IMPORTS)r   r   r   r   pytest_configure   s   r   r   c                   C  s   t  S Nr   r   r   r   r   
mock_clock   s   r   c                   C  s
   t ddS )Nr   )autojump_thresholdr   r   r   r   r   autojump_clock#   s   
r   )tryfirst
pyfuncitempytest.Functionc                 C  s    t | jrt| j| _d S d S r   )inspectiscoroutinefunctionobjr   )r!   r   r   r   pytest_pyfunc_call,   s   r&   errorImportErrorr   c                 C  s   t rtj| jdd d S | )NT)allow_module_level)r   pytestskipmsg)r'   r   r   r   skip_if_optional_else_raise2   s   r-   )r   r   r	   r
   )r   r   r	   r
   )r	   r   )r!   r"   r	   r
   )r'   r(   r	   r   )
__future__r   r#   typingr   r*   testingr   r   r   r   r   r   fixturer   r   hookimplr&   r-   r   r   r   r   <module>   s     

	
