a
XC?h�+ � @ sp d dl Z d dlZd dlZddlmZmZ ddlmZ dZdZ dZ
dd � Zd
d� Zdd
� Z
G dd� de�ZeZdS )� 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 �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 �