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 : /lib/python3/dist-packages/twisted/internet/test/__pycache__/ |
Upload File : |
o �b� � @ s` d Z ddlmZ ddlmZ ddlmZ e�� sddlm Z G dd� de�Z e� �e � � � dS ) z& Tests for L{twisted.internet.stdio}. � )�Protocol)�ReactorBuilder)�platform)� StandardIOc @ s` e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z dd� Ze� � r.dZdS dS )�StdioFilesTestszI L{StandardIO} supports reading and writing to filesystem files. c C s4 | � � }t|d��� t|d�| _| �| jj� d S )N�wbzrb+)�mktemp�open�close� extraFile� addCleanup)�self�path� r �B/usr/lib/python3/dist-packages/twisted/internet/test/test_stdio.py�setUp s zStdioFilesTests.setUpc s� | � � � G � fdd�dt�}| �� }t|d�� }|�d� W d � n1 s'w Y t|d��}|� }t||�� | j�� � d� | �� � W d � n1 sQw Y | � |j d� dS )zc Adding a filesystem file reader to a reactor will make sure it is polled. c s e Zd ZdZ� fdd�ZdS )z4StdioFilesTests.test_addReader.<locals>.DataProtocol� c s( | j |7 _ | j dkr� �� d S d S )N� hello!)�data�stop)r r ��reactorr r �dataReceived&