File: //proc/self/root/opt/alt/python312/lib64/python3.12/test/__pycache__/test_trace.cpython-312.pyc
�
h�eTR � �l � d dl Z d dlmZ d dlZd dlmZmZ d dlmZm Z m
Z
d dlmZm
Z
d dlZd dlZd dlZd dlmZ d dlmZ d� Zd � Zd
� Zd� Zd� Zd
� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z! G d� de"� Z# G d� dejH � Z% G d� dejH � Z& G d� dejH � Z' G d� dejH � Z( G d � d!ejH � Z) G d"� d#ejH � Z* G d$� d%ejH � Z+ G d&� d'ejH � Z,e-d(k( r ej\ � yy))� N)�dump)�captured_stdout�requires_resource)�TESTFN�rmtree�unlink��assert_python_ok�assert_python_failure)�Trace)�testmodc �2 � | j d� r| dd } | S )z8Given a .pyc filename converts it to the appropriate .pyz.pycN���)�endswith)�filenames �6/opt/alt/python312/lib64/python3.12/test/test_trace.py�
fix_ext_pyr s � ����� ��C�R�=���O� c � � t j j t j j t � � d } t t � | fS )z4The .py file and module name of this file (__file__)r )�os�path�splitext�basename�__file__r )�modnames r �my_file_and_modnamer s: � ��g�g���r�w�w�/�/��9�:�1�=�G��h���(�(r c �. � | j j S �N)�__code__�co_firstlineno��funcs r �get_firstlinenor# ! s � ��=�=�'�'�'r c � � | }|}||z }|S r � )�x�y�a�b�cs r �traced_func_linearr+ + s � � �A� �A� �A��A��Hr c �4 � | }t d� D ] }||z
}� |S �N� ��range)r&