o
    e                     @   s   d dl mZ d dl mZ d dlmZ d dlmZ zd dlmZ	 W n e
y/   d dlmZ	 Y nw G dd dejZedkrCe  dS dS )    )print_function)absolute_import)allocate_lockNc                   @   s   e Zd Zdd ZdS )TestLockc                 C   s   t  }t }| t}|  W d    n1 sw   Y  |j}| t}|  W d    n1 s6w   Y  |j}| |t| d S )N)std_allocate_lockr   assertRaises	Exceptionrelease	exceptionZassertIsInstancetype)selfZstd_lockZg_lockexcZstd_excZg_exc r   ID:\Projects\ConvertPro\env\Lib\site-packages\gevent/tests/test__thread.pytest_release_unheld_lock   s   

z!TestLock.test_release_unheld_lockN)__name__
__module____qualname__r   r   r   r   r   r      s    r   __main__)
__future__r   r   Zgevent.threadr   Zgevent.testingtestingZ	greentest_threadr   ImportErrorthreadZTestCaser   r   mainr   r   r   r   <module>   s    