Your IP : 216.73.216.213


Current Path : /opt/alt/python37/lib/python3.7/site-packages/tap/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/tap/__pycache__/main.cpython-37.pyc

B

.��V_�@s^ddlZddlZddlZddlmZddlmZejejfdd�Z	dd�Z
dd	�Zd
d�ZdS)�N)�_)�LoadercCs2t|�}t|�}tj|j|d�}|�|�}t|�S)z"Entry point for ``tappy`` command.)�	verbosity�stream)�
parse_args�build_suite�unittest�TextTestRunner�verbose�run�
get_status)�argvr�args�suite�runner�result�r�9/opt/alt/python37/lib/python3.7/site-packages/tap/main.py�mains

rcCs<t�}t|j�dks"|jddkr,|��}n|�|j�}|S)z8Build a test suite by loading TAP files or a TAP stream.r�-)r�len�filesZload_suite_from_stdin�load)r�loaderrrrrrs

rcCs�td�}td�}tj||d�}|jdddtd�d�|jd	d
ddd
td�d�|�|dd��}|js~tj��r~t�	|�
��|S)NzA TAP consumer for PythonziWhen no files are given or a dash (-) is used for the file name, tappy will read a TAP stream from STDIN.)�description�epilogrZFILE�*zgA file containing TAP output. Any directories listed will be scanned for files to include as TAP files.)�metavar�nargs�helpz-vz	--verbose�store_const��zuse verbose messages)�action�default�constr)r�argparse�ArgumentParser�add_argumentrr�sys�stdin�isatty�exit�
print_help)r
rr�parserrrrrrs

rcCs|��rdSdSdS)z$Get a return status from the result.rr!N)�
wasSuccessful)rrrrr9sr)
r&r)r�tap.i18nrZ
tap.loaderrr
�stderrrrrrrrrr�<module>s