uʡ d Z ddlZddlZddlZddlZddlmZmZ ddlm Z dZ dZdZd Z d Zd Z G d d e ZeZdS )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 V t j | r| d rt j | rst j | t j }t j | s| t j r| S |} t j | d d dd dd S | S )Nz.py\./)ospathisfilelowerendswithisabsrelpathgetcwd startswithpardirnormpathreplace)namerel_paths 4/opt/alt/python311/lib64/python3.11/unittest/main.py _convert_namer s w~~d P 5 5e < <