Current File : //snap/core22/current/usr/lib/python3.10/test/libregrtest/__pycache__/main.cpython-310.pyc |
o
E�h�d � @ s d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl
Z
d dlmZ d dl
mZmZmZmZmZmZmZmZmZmZmZmZmZmZmZ d dlmZ d dlm Z d dl!m"Z"m#Z#m$Z$m%Z% d dl&m'Z' d dl(m)Z) d Z*G d
d� d�Z+ddd
�Z,dS )� N)�_parse_args)� findtests�runtest�get_abs_module� is_failed�STDTESTS�NOTTESTS�PROGRESS_MIN_TIME�Passed�Failed�
EnvChanged�Skipped�ResourceDenied�Interrupted�
ChildError� DidNotRun)�setup_tests)�setup_pgo_tests)�removepy�count�format_duration� printlist)�support)� os_helperg ^@c @ s� e Zd ZdZdd� Zdd� Zd7dd�Zd8d
d�Zdd
� Zdd� Z dd� Z
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� Zdd� Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd(d)� Zd*d+� Zd,d-� Zd.d/� Zd9d1d2�Zd3d4� Zd5d6� Zd0S ):�Regrtestal Execute a test suite.
This also parses command-line options and modifies its behavior
accordingly.
tests -- a list of strings containing test names (optional)
testdir -- the directory in which to look for tests (optional)
Users other than the Python test suite will certainly want to
specify testdir; if it's omitted, the directory containing the
Python test suite is searched for.
If the tests argument is omitted, the tests listed on the
command-line will be used. If that's empty, too, then all *.py
files beginning with test_ will be used.
The other default arguments (verbose, quiet, exclude,
single, randomize, findleaks, use_resources, trace, coverdir,
print_slow, and random_seed) allow programmers calling main()
directly to set the values that would normally be set by flags
on the command line.
c C s� d | _ g | _g | _g | _g | _g | _g | _g | _g | _g | _ g | _
d | _d| _g | _
d | _t�� | _d| _d| _d | _d | _d | _d | _d | _d | _d S )NF� � )�ns�tests�selected�good�bad�skipped�resource_denieds�environment_changed�run_no_tests�
need_rerun�rerun�first_result�interrupted�
test_times�tracer�time� monotonic�
start_time�
test_count�test_count_width�next_single_test�next_single_filename�
testsuite_xml�win_load_tracker�tmp_dir�worker_test_name��self� r9 �,/usr/lib/python3.10/test/libregrtest/main.py�__init__6 s0
zRegrtest.__init__c C s<