o
    -فi1                     @   sj   d Z ddlZdZdZdadd Zdd Zdd	 Zee eeZeeZe	  e
d
 e	  dS )z
Uses a trace function to switch greenlets at unexpected times.

In the trace function, we switch from the current greenlet to another
greenlet, which switches
    NFc                  G   s4   t dg| R   trdat  t dg| R   d S )NTRACEFz	LEAVE TRACE)printswitch_to_g2g2switch)args r   i/home/test-dt/pcm-url-check/venv/lib/python3.10/site-packages/greenlet/tests/fail_switch_two_greenlets.py	tracefunc   s
   r
   c                   C   s.   t d dat j  t d t d d S )Nz	In g1_runTzReturn to g1_runzFalling off end of g1_run)r   r   greenlet
getcurrentparentr   r   r   r   r	   g1_run   s
   r   c                   C   s   t   td d S )NzFalling off end of g2)g1r   r   r   r   r   r	   g2_run   s   r   zFalling off end of main)__doc__r   r   r   r   r
   r   r   settracer   r   r   r   r   r	   <module>   s    


