Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/twisted/trial/test/__pycache__/ |
Upload File : |
o �bh � @ s� d Z ddlZddlmZmZ ddlmZmZ ddlm Z m Z mZ dd� ZG dd � d �Z G d d� dej�ZG dd � d �ZG dd� deej�ZG dd� deej�ZdS )zG Test the interaction between trial and errors logged during test run. � N)�reactor�task)�failure�log)� _synctest�reporter�unittestc C s, zdd W | S t y t�� } Y | S w )z* Return a new, realistic failure. � r )�ZeroDivisionErrorr �Failure)�f� r �=/usr/lib/python3/dist-packages/twisted/trial/test/test_log.py�makeFailure s � �r c @ sF e Zd ZdZG dd� d�ZG dd� deej�ZG dd� deej�Z dS ) �Maskz? Hide C{MockTest}s from Trial's automatic test finder. c @ s, e Zd Zdd� Zdd� Zdd� Zdd� Zd S ) zMask.FailureLoggingMixinc C s dS )z/ Don't log any errors. Nr ��selfr r r �test_silent s z$Mask.FailureLoggingMixin.test_silentc C s t �t� � dS )z- Log a single error. N�r �errr r r r r �test_single% s z$Mask.FailureLoggingMixin.test_singlec C s t �t� � t �t� � dS )z) Log two errors. Nr r r r r �test_double+ s z$Mask.FailureLoggingMixin.test_doublec C s t �t� � dd dS )z8 Log a single error, then fail. r Nr r r r r �test_singleThenFail2 s z,Mask.FailureLoggingMixin.test_singleThenFailN)�__name__� __module__�__qualname__r r r r r r r r �FailureLoggingMixin s r c @ s e Zd ZdS )zMask.SynchronousFailureLoggingN)r r r r r r r �SynchronousFailureLogging9 s r c @ s e Zd Zdd� ZdS )zMask.AsynchronousFailureLoggingc C s t �tddd� �S )zC Log an error in an asynchronous callback. r c S s t �t� �S �Nr r r r r �<lambda>A s zAMask.AsynchronousFailureLogging.test_inCallback.<locals>.<lambda>)r � deferLaterr r r r r �test_inCallback= s z/Mask.AsynchronousFailureLogging.test_inCallbackN)r r r r! r r r r �AsynchronousFailureLogging<