Mini Shell
U
��eg� � @ sj d Z ddlZdadd� Zdd� Zdd � Zd
d� Zdd
� Zdd� Zdd� Z dd� Z
dd� ZG dd� d�ZdS )a�
Input for test_profile.py and test_cprofile.py.
IMPORTANT: This stuff is touchy. If you modify anything above the
test class you'll have to regenerate the stats by running the two
test files.
*ALL* NUMBERS in the expected output are relevant. If you change
the formatting of pstats, please don't just regenerate the expected
output without checking very carefully that not a single number has
changed.
� Ni� c C s t S )N��TICKS� r r �,/opt/cppython/lib/python3.8/test/profilee.py�timer s r c C s( t d7 a t� t� t d7 a td� d S )N�c � � )r �helper� factorialr r r r �testfunc s
r c C s2 | dkr"t | 7 a t| t| d ��S t d7 a dS d S )Nr � � )r �mulr )�nr r r r # s
r c C s t d7 a | | S �Nr
r )�a�br r r r 0 s r c C s` t d7 a t� t d7 a t� t d7 a t� t d7 a t� t d7 a t� t d7 a t� t d7 a d S )Nr
� � � � )r �helper1�helper2�helper2_indirectr r r r r
7 s r
c C s6 t d7 a tt� d� t d7 a g } | �d� t�� d S )N�
�foo� �* )r �hasattr�C�append�sys�exc_info)Zlstr r r r I s
r c C s t � td� d S )Nr )r r r r r r r T s r c C s. t d7 a tt� d� t d7 a t� t d7 a d S )Nr Zbar�
� )r r r � subhelperr r r r r X s
r c C sD t d7 a td�D ].} zt� j W q tk
r< t d7 a Y qX qd S )Nr r )r �ranger r �AttributeError)�ir r r r&