%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/twisted/trial/_dist/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/twisted/trial/_dist/__pycache__/workerreporter.cpython-312.pyc |
� Ϫ�fJ- � �t � d Z ddlmZ ddlmZmZmZmZmZm Z ddl mZ ddl mZmZ ddlmZ ddlmZmZ ddlmZmZ dd lmZ dd lmZ ddlmZ ddlmZ d dlm Z ddl!m"Z"m!Z! e d� Z#dede$de$de$dee$ ddfd�Z%dede$de$de$dee$ ddfd�Z&dede$de$de$ddf d�Z'e G d� d � � Z( G d!� d"e� Z)y)#zZ Test reporter forwarding test results over trial distributed AMP commands. @since: 12.3 � )� TracebackType)�Callable�List�Optional�Sequence�Type�TypeVar)�TestCase)�Factory�define)�Literal)�Deferred� maybeDeferred)�AMP�MAX_VALUE_LENGTH)�Failure)�qual)�managercommands)� TestResult� )�TrialFailure� )�chunk�stream�T�amp�testName� errorClass�error�frames�returnNc � � K � t | t |j d� t � � � d{ ��� }t | d� |D � � � d{ ��� }| j t j ||||�� � d{ ��� y7 �L7 �37 � �w)a/ Send an error to the worker manager over an AMP connection. First the pieces which can be large are streamed over the connection. Then, L{managercommands.AddError} is called with the rest of the information and the stream IDs. :param amp: The connection to use. :param testName: The name (or ID) of the test the error relates to. :param errorClass: The fully qualified name of the error type. :param error: The string representation of the error. :param frames: The lines of the traceback associated with the error. �utf-8Nc 3 �>