| Server IP : 217.160.0.135 / Your IP : 216.73.217.25 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/IPython/terminal/tests/__pycache__/ |
Upload File : |
�
�@�cG � �H � d Z ddlZddlZddlmZ ddlmZ ed� � � ZdS )zTest embedding of IPython� N)�
skip_win32)�IPYTHON_TESTING_TIMEOUT_SCALEc �� � ddl } ddl}|� d� � }d}t j � � � }| � t j g d�|�� � }dt z |_
|� |� � dt z |_
|� d � � |� d
� � |� d� � |� |� � |� d� � |� d� � |� |� � |� d
� � |� d� � |� d� � dt z |_
|� d� � |� |� � |� d� � |� d� � |� |� � |� d� � |�
d� � |� |� � |� d� � |�
d� � |� |� � |� d� � |�
d� � |� |� � |� d� � |� |� � |� d� � |� � � dS )zY
This test that we can correctly pass through frames of a generator post-mortem.
r Ns In ?\[\d+\]:zipdb>)z-m�IPythonz--colors=nocolorz--simple-prompt)�env� � z def f(x):z raise Exception� zgen = (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 �I/usr/lib/python3/dist-packages/IPython/terminal/tests/test_debug_magic.py�*test_debug_magic_passes_through_generatorsr s� � �
�N�N�N�
�I�I�I��
�
�+�,�,�I��K�
�*�/�/�
�
�C��M�M�#�.�*b�*b�*b�!�
�
#�
#�E��6�6�E�M� �L�L������5�5�E�M� �N�N�;���� �N�N�(�)�)�)� �N�N�2���� �L�L����� �N�N�.�/�/�/� �N�N�2���� �L�L����� �N�N�?�#�#�#� �N�N�:���� �N�N�2�����6�6�E�M� �L�L����� �L�L����� �N�N�9���� �L�L�.�/�/�/� �L�L����� �N�N�3���� ���;�<�<�<� �L�L����� �N�N�3���� ���.�/�/�/� �L�L����� �N�N�3���� ���)�*�*�*� �L�L����� �N�N�6���� �L�L����� �N�N�6���� �K�K�M�M�M�M�M� )�__doc__r r �IPython.testing.decoratorsr �IPython.testingr r � r! r �<module>r&