File "main.cpython-38.opt-2.pyc"
Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/lib64/python3.8/unittest/__pycache__/main.cpython-38.opt-2.pyc
File size: 7.19 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit
U
e5d+ @ sp d dl Z d dlZd dlZddlmZmZ ddlmZ dZdZ dZ
dd Zd
d Zdd
Z
G dd deZeZdS ) N )loaderrunner)installHandlerTa Examples:
%(prog)s test_module - run tests from test_module
%(prog)s module.TestClass - run tests from module.TestClass
%(prog)s module.Class.test_method - run specified test method
%(prog)s path/to/test_file.py - run tests from test_file.py
aF Examples:
%(prog)s - run default set of tests
%(prog)s MyTestSuite - run suite 'MyTestSuite'
%(prog)s MyTestCase.testSomething - run MyTestCase.testSomething
%(prog)s MyTestCase - run all 'test*' test methods
in MyTestCase
c C sx t j| rt| drtt j| rXt j| t }t j|sP|t j rT| S |} | d d
dd
ddS | S )Nz.py\./)ospathisfilelowerendswithisabsrelpathgetcwd
startswithpardirreplace)nameZrel_path r %/usr/lib64/python3.8/unittest/main.py
_convert_name s r c C s dd | D S )Nc S s g | ]}t |qS r )r ).0r r r r
<listcomp>. s z"_convert_names.<locals>.<listcomp>r )namesr r r _convert_names- s r c C s d| krd| } | S )N*z*%s*r )patternr r r _convert_select_pattern1 s r c @ s e Zd ZdZdZd Z Z Z Z Z Z
dZddddej
ddddddfddddZdd d
Zdd Zd
d ZdddZdd Zdd Zdd Zdd ZdddZdd ZdS ) TestProgramNr __main__TF) tb_localsc C s t |tr<t|| _|ddd D ]}
t| j|
| _q&n|| _|d krPtj}|| _|| _ | | _
|| _|
| _|| _
|d krtjsd| _n|| _|| _|| _|| _tj|d | _| | | d S )Nr r defaultr )
isinstancestr
__import__modulesplitgetattrsysargvexitfailfast
catchbreak verbositybufferr"