0x1949 Team - FAZEMRX - MANAGER
Edit File: util.cpython-310.pyc
o �b�0 � @ s� d Z ddlmZ ddlmZmZ ddlmZ ddlm Z ddl mZ g d�Ze � ZdZG d d � d e�ZG dd� d�Ze � Zefd d�Zdd� Zd"dd�Zdd� ZG dd� de�Zdd� ZG dd� de�Zdd� Zd#dd �Zd!S )$a A collection of utility functions and classes, used internally by Trial. This code is for Trial's internal use. Do NOT use this code if you are writing tests. It is subject to change at the Trial maintainer's whim. There is nothing here in this module for you to use unless you are maintaining Trial. Any non-Trial Twisted code that uses this module will be shot. Maintainer: Jonathan Lange @var DEFAULT_TIMEOUT_DURATION: The default timeout which will be applied to asynchronous (ie, Deferred-returning) test methods, in seconds. � )� randrange)� interfaces�utils)�Failure)�FilePath)�FilesystemLock)�DEFAULT_TIMEOUT_DURATION�excInfoOrFailureToExcInfo�suppress�acquireAttributeg ^@c @ s( e Zd ZdZddd�Zdefdd�ZdS ) �DirtyReactorAggregateErrora7 Passed to L{twisted.trial.itrial.IReporter.addError} when the reactor is left in an unclean state after a test. @ivar delayedCalls: The L{DelayedCall<twisted.internet.base.DelayedCall>} objects which weren't cleaned up. @ivar selectables: The selectables which weren't cleaned up. Nc C s || _ || _d S �N)�delayedCalls�selectables)�selfr r � r �4/usr/lib/python3/dist-packages/twisted/trial/util.py�__init__2 s z#DirtyReactorAggregateError.__init__�returnc C sP d}| j r|d7 }|d�tt| j ��7 }| jr&|d7 }|d�tt| j��7 }|S )zR Return a multi-line message describing all of the unclean state. zReactor was unclean.zM DelayedCalls: (set twisted.internet.base.DelayedCall.debug = True to debug) � z Selectables: )r �join�map�strr )r �msgr r r �__str__6 s �z"DirtyReactorAggregateError.__str__r )�__name__� __module__�__qualname__�__doc__r r r r r r r r ( s r c @ s` e Zd ZdZddd�Zdd� Zdd� Zd d � Zdd� Ze � ed edd�f�Zdd� Zdd� Z dS )�_Janitorz� The guy that cleans up after you. @ivar test: The L{TestCase} to report errors about. @ivar result: The L{IReporter} to report errors to. @ivar reactor: The reactor to use. If None, the global reactor will be used. Nc C s || _ || _|| _dS )z� @param test: See L{_Janitor.test}. @param result: See L{_Janitor.result}. @param reactor: See L{_Janitor.reactor}. N)�test�result�reactor)r r r! r"