| Server IP : 138.197.176.125 / Your IP : 216.73.217.54 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/internet/test/__pycache__/ |
Upload File : |
U
W[� � @ sX d Z ddlmZ ddlmZ e�� r2ddlmZ ndZG dd� de�ZedkrTde_ dS ) z-
Tests for L{twisted.internet._pollingfile}.
� )�platform)�TestCase)�_pollingfileNc @ s e Zd ZdZdd� Zdd� ZdS )�PollableWritePipeTestsz7
Tests for L{_pollingfile._PollableWritePipe}.
c C s$ t �ddd� �}| �t|jd� dS )z�
L{_pollingfile._PollableWritePipe.write} raises a C{TypeError} if an
attempt is made to append unicode data to the output buffer.
� c S s d S �N� r r r �H/usr/lib/python3/dist-packages/twisted/internet/test/test_pollingfile.py�<lambda> � z:PollableWritePipeTests.test_writeUnicode.<locals>.<lambda>�testN)r �_PollableWritePipe�assertRaises� TypeError�write��self�pr r r �test_writeUnicode s z(PollableWritePipeTests.test_writeUnicodec C s6 t �ddd� �}| �t|jdg� | �t|jd� dS )z�
L{_pollingfile._PollableWritePipe.writeSequence} raises a C{TypeError}
if unicode data is part of the data sequence to be appended to the
output buffer.
r c S s d S r r r r r r r
&