/snap/core24/1643/usr/lib/python3.12/unittest/__pycache__
Edit: /snap/core24/1643/usr/lib/python3.12/unittest/__pycache__/main.cpython-312.pyc (13565B)
Цi. d Z ddlZddlZddlZddlZddlmZmZ ddlm Z dZ
dZdZd Z
d
Zd Zd Z G d
de ZeZy)zUnittest main program N )loaderrunner)installHandlerT a 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 , t j j | r| j j d rt j j | rtt j j
| t j }t j j | s|j t j r| S |} t j j | d d j dd j dd S | S )Nz.py\./)ospathisfilelowerendswithisabsrelpathgetcwd
startswithpardirnormpathreplace)namerel_paths $/usr/lib/python3.12/unittest/main.py
_convert_namer s
ww~~d
5 5e <
77==wwtRYY[9Hww}}X&(*=*=bii*HD ww%cr*224=EEc3OOK c > | D cg c]
}t | c}S c c}w N)r )namesr s r _convert_namesr! / s ,12DM$222s c d| vrd| z } | S )N*z*%s* )patterns r _convert_select_patternr&