o
    oi                     @   s   d dl mZ d dl mZ d dl mZ d dlZd dlmZ zd dlmZ W n e	y/   dZY nw zd dl
mZ W n e	yC   dZY nw eedu dG d	d
 d
ejZeedu dG dd dejZedkrpe  dS dS )    )absolute_import)division)print_functionN)events)verify)eventzNeeds zope.interfacec                   @   s$   e Zd Zdd Zdd Zdd ZdS )TestImplementsc                 C   s   t tjtj d S N)r   verifyClassr   IEventLoopBlockedEventLoopBlockedself r   X/var/www/html/pca-backend/venv/lib/python3.10/site-packages/gevent/tests/test__events.pytest_event_loop_blocked   s   z&TestImplements.test_event_loop_blockedc                 C   s,   t tjtj t tjtddd d S Nr   )r   r
   r   IMemoryUsageThresholdExceededMemoryUsageThresholdExceededverifyObjectr   r   r   r   test_mem_threshold   s   z!TestImplements.test_mem_thresholdc              	   C   s.   t tjtj t tjtdddd d S r   )r   r
   r   IMemoryUsageUnderThresholdMemoryUsageUnderThresholdr   r   r   r   r   test_mem_decreased#   s   z!TestImplements.test_mem_decreasedN)__name__
__module____qualname__r   r   r   r   r   r   r   r      s    r   zNeeds zope.eventc                   @   s   e Zd Zdd ZdS )
TestEventsc                 C   s$   |  tjtj |  tjtj d S r	   )assertIsr   subscribersr   notifyr   r   r   r   test_is_zope-   s   zTestEvents.test_is_zopeN)r   r   r   r!   r   r   r   r   r   *   s    r   __main__)
__future__r   r   r   unittestgeventr   zope.interfacer   ImportErrorzoper   skipIfTestCaser   r   r   mainr   r   r   r   <module>   s,   