Sindbad~EG File Manager
�
'Μg� � �� � d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ d� Z ej ej d� G d� dej � � Z
ed k( r ej � yy)
� N)�support)� os_helper)�assert_python_okc �j � g } t d� D ] }| j |� � d} d}t | |� y )Nr zthis isz
an example)�range�append�print)�x�i�ys �./usr/local/lib/python3.12/test/test_lltrace.py�exampler s3 � �
�A�
�1�X�� ����� ��A��A� �!�Q�K� zlltrace requires Py_DEBUGc �$ � e Zd Zd� Zd� Zd� Zd� Zy)�TestLLTracec �\ � t j |� j � }t t j
dd�� 5 }| j
t j t j
� |j |� d d d � t t j
� \ }}}| j |d� | j |d� |j d� }t j r6t d� t |� t d� t |� t � |S # 1 sw Y ��xY w)N�wzutf-8)�encodingr r z
--- code ---z
--- stdout ---)�textwrap�dedent�strip�openr �TESTFN�
addCleanup�unlink�writer �assertEqual�decoder �verboser )�self�code�fd�status�stdout�stderr�results r
�run_codezTestLLTrace.run_code s� � ����t�$�*�*�,��
�)�"�"�C�'�
:�b��O�O�I�,�,�i�.>�.>�?��H�H�T�N� ;� "2�)�2B�2B�!C����������%������#����w�'���?�?��$�%��$�K��$�%��&�M��G��
� ;�
:�s
� A D"�"D+c �j � | j d� }| j d|� | j d|� | j d|� | j d|� | j d|� | j d|� | j d|� | j d |� | j d
|� y )Na�
def dont_trace_1():
a = "a"
a = 10 * a
def trace_me():
for i in range(3):
+i
def dont_trace_2():
x = 42
y = -x
dont_trace_1()
__lltrace__ = 1
trace_me()
del __lltrace__
dont_trace_2()
�GET_ITER�FOR_ITER�CALL_INTRINSIC_1�POP_TOP� BINARY_OP�UNARY_NEGATIVEz'trace_me' in module '__main__'�dont_trace_1z'dont_trace_2' in module)r'