File: //usr/local/lib/python3.10/test/__pycache__/test_trace.cpython-310.pyc
o
�i�Q � @ s� d dl Z d dlmZ d dlZd dlmZ d dlmZmZm Z d dl
mZmZ d dl
Z
d dlZd dlZd dlmZ d dlmZ dd � Zd
d� Zdd
� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd d!� Zd"d#� Z G d$d%� d%e!�Z"G d&d'� d'ej#�Z$G d(d)� d)ej#�Z%G d*d+� d+ej#�Z&G d,d-� d-ej#�Z'G d.d/� d/ej#�Z(G d0d1� d1ej#�Z)G d2d3� d3ej#�Z*G d4d5� d5ej#�Z+e,d6kr�e�-� dS dS )7� N)�dump)�captured_stdout)�TESTFN�rmtree�unlink��assert_python_ok�assert_python_failure)�Trace)�testmodc C s | � d�r| dd� } | S )z8Given a .pyc filename converts it to the appropriate .pyz.pycN���)�endswith)�filename� r �,/usr/local/lib/python3.10/test/test_trace.py�
fix_ext_py s
r c C s$ t j�t j�t��d } tt�| fS )z4The .py file and module name of this file (__file__)r )�os�path�splitext�basename�__file__r )�modnamer r r �my_file_and_modname s r c C s | j jS �N)�__code__�co_firstlineno��funcr r r �get_firstlineno � r c C s | }|}|| }|S r r )�x�y�a�b�cr r r �traced_func_linear&