
    fG	                     @    d Z ddlZddlZddlmZ ddlmZ ed        Zy)zTest embedding of IPython    N)
skip_win32)IPYTHON_TESTING_TIMEOUT_SCALEc                     ddl } ddl}|j                  d      }d}t        j                  j                         }| j                  t        j                  g d|      }dt        z  |_
        |j                  |       dt        z  |_
        |j                  d	       |j                  d
       |j                  d       |j                  |       |j                  d       |j                  d       |j                  |       |j                  d       |j                  d       |j                  d       dt        z  |_
        |j                  d       |j                  |       |j                  d       |j                  d       |j                  |       |j                  d       |j                  d       |j                  |       |j                  d       |j                  d       |j                  |       |j                  d       |j                  d       |j                  |       |j                  d       |j                  |       |j                  d       |j                          y)zY
    This test that we can correctly pass through frames of a generator post-mortem.
    r   Ns   In ?\[\d+\]:zipdb>)z-mIPythonz--colors=nocolorz--simple-prompt)env      z	def f(x):z    raise Exception zgen = (f(x) for x in [0])zfor x in gen:z    pass
   z
Exception:z%debugz----> 2     raise Exceptionuz!----> 1 gen = (f(x) for x in [0])z----> 1 for x in gen:z*** Oldest frameexit)pexpectrecompileosenvironcopyspawnsys
executabler   timeoutexpectsendlineexpect_exactclose)r   r   	in_promptipdb_promptr   childs         b/var/www/cvtools/html/venv/lib/python3.12/site-packages/IPython/terminal/tests/test_debug_magic.py*test_debug_magic_passes_through_generatorsr       s   
 

+,IK
**//
CMM#..*b!  #E66EM	LL55EM	NN;	NN()	NN2	LL	NN./	NN2	LL	NN?#	NN:	NN266EM	LL	LL	NN9	LL./	LL	NN3	;<	LL	NN3	./	LL	NN3	)*	LL	NN6	LL	NN6	KKM    )__doc__r   r   IPython.testing.decoratorsr   IPython.testingr   r     r!   r   <module>r&      s*     
 
 1 9 8 8r!   