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�D � @ s� d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl m Z mZ ddlm Z G dd � d �ZG d d� de �ZG dd � d e�ZG dd� de �ZdS )z? Tests for Trial's interaction with the Python warning system. � N)�StringIO)� TestResult)�FilePath)�_collectWarnings�_setWarningRegistryToNone)�SynchronousTestCasec @ s e Zd ZdZG dd� de�ZdS )�MaskzQ Hide a test case definition from trial's automatic discovery mechanism. c @ s( e Zd ZdZdZeZdd� Zdd� ZdS )zMask.MockTestsz� A test case which is used by L{FlushWarningsTests} to verify behavior which cannot be verified by code inside a single test method. �some warning textc C s t �| j| j� dS )z@ Generate a warning and don't flush it. N)�warnings�warn�message�category��self� r �A/usr/lib/python3/dist-packages/twisted/trial/test/test_warning.py�test_unflushed! s zMask.MockTests.test_unflushedc C s( t �| j| j� | �t| �� �d� dS )z: Generate a warning and flush it. � N)r r r r �assertEqual�len� flushWarningsr r r r �test_flushed'