/opt/alt/python39/lib64/python3.9/unittest/__pycache__
Edit: /opt/alt/python39/lib64/python3.9/unittest/__pycache__/main.cpython-39.pyc (7543B)
a
XC?h+ @ st d Z ddlZddlZddlZddlmZmZ ddlmZ dZ dZ
dZd d
Zdd Z
d
d ZG dd deZeZdS )zUnittest main program 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 s t j| r|| dr|t j| rXt j| t }t j|sP|t j rT| S |} t j
| d d ddddS | S )Nz.py\./)ospathisfilelowerendswithisabsrelpathgetcwd
startswithpardirnormpathreplace)nameZrel_path r 2/opt/alt/python39/lib64/python3.9/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
. z"_convert_names..r )namesr r r _convert_names- s r c C s d| vrd| } | S )N*z*%s*r )patternr r r _convert_select_pattern1 s r! c @ s e Zd ZdZdZdZd Z Z Z Z Z
ZdZdddde
jddddddfdddd Zdd
dZdd
Zdd ZdddZdd Zdd Zdd Zdd Zd ddZdd ZdS )!TestProgramzA command-line program that runs a set of tests; this is primarily
for making test modules conveniently executable.
Nr __main__TF) tb_localsc C s t |tr