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 �b� � @ s^ d Z ddlZddlmZ ddlmZ ddlmZ ddlm Z dZ dd � ZG d d� de j�Z dS )z* Tests for the output generated by trial. � N)�StringIO)�trial)�runner)�packageszNo module named 'frotz'c G sV ddl m} t�� }|�| � t� }tj|j||d d�}t� |�}|� |� |�� S )Nr )�reporterztemp-directory)�stream�workingDirectory)� twisted.trialr r �Options�parseOptionsr r �TrialRunner�VerboseTextReporter� _getSuite�run�getvalue)�argsr �config�output�myRunner�suite� r �@/usr/lib/python3/dist-packages/twisted/trial/test/test_output.py�runTrial s � r c s� e Zd ZdZdd� ZdZdd� Zdd� Z� fd d �Z� fdd�Z d d� Z dd� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� Z� ZS ))�ImportErrorsTestszbActually run trial as if on the command line and check that the output is what we expect. c C s d S �Nr ��selfr r r �debug( s zImportErrorsTests.debug�_testImportErrorsc G s t d| �� g|�R � S )Nz--temp-directory)r �mktemp)r r r r r r - s zImportErrorsTests.runTrialc C s t |� |S r )�print)r �stuffr r r �_print0 s zImportErrorsTests._printc � t � j||g|�R i |�� |S r )�super�assertIn�r � container� containeer �kwargs�� __class__r r r% 4 � zImportErrorsTests.assertInc r# r )r$ �assertNotInr&