B
    H/\                 @   sh   d dl Z d dlZd dlmZmZ d dlZd dlmZ ee	e ddG dd deZ
edkrde  dS )	    N)TestCasemain)TimeoutgettotalrefcountzNeeds debug buildc               @   s   e Zd Zdd ZdS )	TestQueuec             C   s"  d}y t d td tdW n  tk
r:    Y n   Y nX |dt  7 }y t d td tdW n  tk
r    Y n   Y nX |dt  7 }y t d td tdW n  tk
r    Y n   Y nX |dt  7 }| \}}}||kstd| d S )N g{Gz?   zmust raise Timeoutz%s z%sztotal refcount mismatch: %s)	r   	start_newgeventZsleepAssertionErrorKeyboardInterruptsysr   split)selfresult_bc r   9lib/python3.7/site-packages/gevent/tests/test__memleak.pytest   s<    





zTestQueue.testN)__name__
__module____qualname__r   r   r   r   r   r      s   r   __main__)r   ZunittestZgevent.testingr   r   r
   Zgevent.timeoutr   Z
skipUnlesshasattrr   r   r   r   r   r   <module>   s   +