ok
Direktori : /opt/cloudlinux/venv/lib/python3.11/site-packages/tap/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/tap/__pycache__/runner.cpython-311.pyc |
� �܋fW � � � d dl Z d dlmZmZ d dlmZ d dlZd dlmZ d dl m Z G d� de� � Z e � � Z G d� d e� � Z dS ) � N)�TextTestResult�TextTestRunner)�_WritelnDecorator)� formatter)�Trackerc �~ � � e Zd ZdZ� fd�Z� fd�Z� fd�Z� fd�Z� fd�Z� fd�Z � fd�Z � fd �Z� fd �Zd� Z d� Z� xZS ) � TAPTestResultNc �\ �� t t | � � � |||� � d S �N)�superr �__init__)�self�stream�descriptions� verbosity� __class__s ��[/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/tap/runner.pyr zTAPTestResult.__init__ s+ �� � �m�T�"�"�+�+�F�L�)�L�L�L�L�L� c � �� t t | � � � |||� � |�Yt j |� � }| j � | � |� � | � |� � |�� � d S | j � | � |� � | � |� � � � d S �N��diagnostics) r r � addSubTestr �format_exception�tracker� add_not_ok� _cls_name�_description�add_ok)r �test�subtest�errr r s �r r zTAPTestResult.addSubTest s� �� � �m�T�"�"�-�-�d�G�S�A�A�A��?�#�4�S�9�9�K��L�#�#����t�$�$��!�!�'�*�*�'� $� � � � � � �L������t� 4� 4�d�6G�6G��6P�6P�Q�Q�Q�Q�Qr c � �� t t | � � � � � | j � � � dS )z>Once the test run is complete, generate each of the TAP files.N)r r �stopTestRunr �generate_tap_reports)r r s �r r$ zTAPTestResult.stopTestRun s9 �� � �m�T�"�"�.�.�0�0�0���)�)�+�+�+�+�+r c � �� t t | � � � ||� � t j |� � }| j � | � |� � | � |� � |�� � d S r ) r r �addErrorr r r r r r �r r r"