a
    ñ»j
  ã                   @   sj   d dl Z d dlZd dlZddlmZmZmZmZ dd„ Zdd„ Z	dd	„ Z
ejjejd
kdd�dd„ ƒZdS )é    Né   )Úcurrent_async_libraryÚAsyncLibraryNotFoundErrorÚcurrent_async_library_cvarÚthread_localc               	   C   s˜   t  t¡� tƒ  W d   ƒ n1 s&0    Y  t d¡} ztƒ dksJJ ‚W t | ¡ nt | ¡ 0 t  t¡� tƒ  W d   ƒ n1 sŠ0    Y  d S ©Nzgeneric-lib)ÚpytestÚraisesr   r   r   ÚsetÚreset)Útoken© r   úAE:\soccer\ml_env\Lib\site-packages\sniffio/_tests/test_sniffio.pyÚtest_basics_cvar   s    $
r   c                  C   s”   t  t¡� tƒ  W d   ƒ n1 s&0    Y  tjd } t_ztƒ dksNJ ‚W | t_n| t_0 t  t¡� tƒ  W d   ƒ n1 s†0    Y  d S r   )r   r	   r   r   r   Úname)Zold_namer   r   r   Útest_basics_tlocal   s    $r   c                     s–   dd l } t t¡� tƒ  W d   ƒ n1 s.0    Y  g ‰ ‡ fdd„}|  |ƒ ¡ ˆ dgksbJ ‚t t¡� tƒ  W d   ƒ n1 sˆ0    Y  d S )Nr   c                   “   s*   t ƒ dksJ ‚t ƒ dksJ ‚ˆ  d¡ d S )NÚasyncioT©r   Úappendr   ©Zranr   r   Úthis_is_asyncio0   s    z%test_asyncio.<locals>.this_is_asyncioT)r   r   r	   r   r   Úrun)r   r   r   r   r   Útest_asyncio(   s    $r   )é   é   zEcurio broken on 3.12 (https://github.com/python-trio/sniffio/pull/42))Úreasonc                     s”   dd l } t t¡� tƒ  W d   ƒ n1 s.0    Y  g ‰ ‡ fdd„}|  |¡ ˆ dgks`J ‚t t¡� tƒ  W d   ƒ n1 s†0    Y  d S )Nr   c                   “   s*   t ƒ dksJ ‚t ƒ dksJ ‚ˆ  d¡ d S )NÚcurioTr   r   r   r   r   Úthis_is_curioJ   s    z!test_curio.<locals>.this_is_curioT)r   r   r	   r   r   r   )r   r   r   r   r   Ú
test_curio=   s    $
r   )ÚosÚsysr   Ú r   r   r   r   r   r   r   ÚmarkZskipifÚversion_infor   r   r   r   r   Ú<module>   s   ý