
    9 f	                     H    d Z ddlZddlZddlmZ ddlmZ ed             ZdS )zTest embedding of IPython    N)
skip_win32)IPYTHON_TESTING_TIMEOUT_SCALEc                     ddl } ddl}|                    d          }d}t          j                                        }|                     t          j        g d|          }dt          z  |_
        |                    |           dt          z  |_
        |                    d	           |                    d
           |                    d           |                    |           |                    d           |                    d           |                    |           |                    d           |                    d           |                    d           dt          z  |_
        |                    d           |                    |           |                    d           |                    d           |                    |           |                    d           |                    d           |                    |           |                    d           |                    d           |                    |           |                    d           |                    d           |                    |           |                    d           |                    |           |                    d           |                                 dS )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:zK*** all frames above hidden, use `skip_hidden False` to get get into those.exit)pexpectrecompileosenvironcopyspawnsys
executabler   timeoutexpectsendlineexpect_exactclose)r   r   	in_promptipdb_promptr   childs         ]/var/www/equiseq/venv/lib/python3.11/site-packages/IPython/terminal/tests/test_debug_magic.py*test_debug_magic_passes_through_generatorsr       s   
 NNNIII

+,,IK
*//

CMM#.*b*b*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	U   
LL	NN6	LL	NN6	KKMMMMM    )__doc__r   r   IPython.testing.decoratorsr   IPython.testingr   r     r!   r   <module>r&      sh      
			 



 1 1 1 1 1 1 9 9 9 9 9 9 : : : : :r!   