
    i                     z    d dl Z d dlmZ d dlmZ  G d dej                  Zedk    r ej	                     dS dS )    N)	Semaphorec                        e Zd Zd Zd Zd ZdS )	Testiwaitc                     t                      }t                      }t          j        |j                   t	          t          j        ||f                    }|                     ||           d S )N)r   geventspawnreleasenextiwaitassertEqual)selfsem1sem2readys       C/usr/local/lib/python3.11/dist-packages/gevent/tests/test__iwait.pytest_noiterzTestiwait.test_noiter   s_     {{{{T\"""V\4,//00u%%%%%    c                     t                      }t          j        |j                  }t          j        |fd          5 }|                     |t          |                     d d d            n# 1 swxY w Y   |                                 d S )Ng{Gz?)timeout)r   r   r   r	   r   r   r
   get)r   semletiterators       r   test_iwait_partialzTestiwait.test_iwait_partial   s     kkl3;''\3&$/// 	28S$x..111	2 	2 	2 	2 	2 	2 	2 	2 	2 	2 	2 	2 	2 	2 	2					s   $A//A36A3c                    t                      }t                      }t          j        |j                  }t          j        ||f          5 }|                     |t          |                     |                     |                                d           d d d            n# 1 swxY w Y   |                     |                                d           |                                 d S )N   r   )	r   r   r   r	   r   r   r
   	linkcountr   )r   r   r   r   r   s        r   test_iwait_nogarbagezTestiwait.test_iwait_nogarbage   s    {{{{l4<((\4,'' 	28T4>>222T^^--q111	2 	2 	2 	2 	2 	2 	2 	2 	2 	2 	2 	2 	2 	2 	2 	))1---					s   AB$$B(+B(N)__name__
__module____qualname__r   r   r    r   r   r   r      sA        	& 	& 	&  	 	 	 	 	r   r   __main__)
r   gevent.testingtesting	greentestgevent.lockr   TestCaser   r   mainr"   r   r   <module>r*      s     " " " " " " ! ! ! ! ! !         	"      F zIN r   