a
    'f                     @   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0 G dd dejZedkre  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 s40    Y  |j}| t}|  W d    n1 sl0    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   g/var/www/staging/api/virtual_environments/venv/lib/python3.9/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   