a XC?h�+�@stdZddlZddlZddlZddlmZmZddlmZdZ dZ dZ d d �Z d d �Z d d�ZGdd�de�ZeZdS)zUnittest main program�N�)�loader�runner)�installHandlerTaExamples: %(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 aFExamples: %(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 cCs�tj�|�r||���d�r|tj�|�rXtj�|t���}tj�|�sP|�tj �rT|S|}tj� |�dd�� 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_names $rcCsdd�|D�S)NcSsg|] }t|��qSr)r)�.0rrrr� .�z"_convert_names..r)�namesrrr�_convert_names-srcCsd|vrd|}|S)N�*z*%s*r)�patternrrr�_convert_select_pattern1sr!c @s�eZdZdZdZdZdZZZZ Z Z dZ dddde jddddddf dd�dd �Zdd d �Zd d �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 Cs�t|t�rrErCr:rUrBr]r^r_rOr;rrrrr"7s,�� &   #  r")rur,rfr �rrZsignalsrZ __unittestrHrJrrr!�objectr"�mainrrrr�s  ]