o
    tPf                     @   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	exceptionassertIsInstancetype)selfstd_lockg_lockexcstd_excg_exc r   Z/var/www/html/humari/django-venv/lib/python3.10/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   gevent.threadr   gevent.testingtesting	greentest_threadr   ImportErrorthreadTestCaser   r   mainr   r   r   r   <module>   s    