/usr/lib64/python3.9/unittest/__pycache__
Edit: /usr/lib64/python3.9/unittest/__pycache__/main.cpython-39.pyc (7530B)
a
´iø+ ã @ st d Z ddlZddlZddlZddlmZmZ ddlmZ dZ dZ
dZd d
„ Zdd„ Z
d
d„ ZG dd„ deƒZeZdS )zUnittest main programé Né )ÚloaderÚrunner)Ú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|| ¡ d¡r|t j | ¡rXt j | t ¡ ¡}t j |¡sP| t j ¡rT| S |} t j
| ¡d d… dd¡ dd¡S | S )Nz.pyéýÿÿÿú\Ú.ú/)ÚosÚpathÚisfileÚlowerÚendswithÚisabsÚrelpathÚgetcwdÚ
startswithÚpardirÚnormpathÚreplace)ÚnameZrel_path© r ú%/usr/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
jddddddfddœdd „Zdd
d„Zdd
„ Zdd„ Zddd„Zdd„ Zdd„ Zdd„ Zdd„ Zd dd„Zdd„ 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 |tƒr