
    ^h	                     @    S r SSKrSSKrSSKJr  SSKJr  \S 5       rg)zTest embedding of IPython    N)
skip_win32)IPYTHON_TESTING_TIMEOUT_SCALEc                     SSK n SSKnUR                  S5      nSn[        R                  R                  5       nU R                  [        R                  / SQUS9nS[        -  Ul
        UR                  U5        S[        -  Ul
        UR                  S	5        UR                  S
5        UR                  S5        UR                  U5        UR                  S5        UR                  S5        UR                  U5        UR                  S5        UR                  S5        UR                  S5        S[        -  Ul
        UR                  S5        UR                  U5        UR                  S5        UR                  S5        UR                  U5        UR                  S5        UR                  S5        UR                  U5        UR                  S5        UR                  S5        UR                  U5        UR                  S5        UR                  S5        UR                  U5        UR                  S5        UR                  U5        UR                  S5        UR                  5         g)zQ
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         a/home/james-whalen/.local/lib/python3.13/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	U 
LL	NN6	LL	NN6	KKM    )__doc__r   r   IPython.testing.decoratorsr   IPython.testingr   r     r!   r   <module>r&      s*     
 
 1 9 : :r!   