| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/twisted/internet/test/__pycache__/ |
Upload File : |
�
oj! � � � d Z ddlmZ ddlmZ ddlmZ ej � rddlm Z ndZ ee du d� G d� d e� � Z
y)
z-
Tests for L{twisted.internet._pollingfile}.
� )�skipIf)�platform)�TestCase)�_pollingfileNzTest will run only on Windows.c � � e Zd ZdZdd�Zdd�Zy)�PollableWritePipeTestsz7
Tests for L{_pollingfile._PollableWritePipe}.
Nc �t � t j dd� � }| j t |j d� y)z�
L{_pollingfile._PollableWritePipe.write} raises a C{TypeError} if an
attempt is made to append unicode data to the output buffer.
� c � � y �N� r
� �H/usr/lib/python3/dist-packages/twisted/internet/test/test_pollingfile.py�<lambda>z:PollableWritePipeTests.test_writeUnicode.<locals>.<lambda> � � r �testN)r �_PollableWritePipe�assertRaises� TypeError�write��self�ps r �test_writeUnicodez(PollableWritePipeTests.test_writeUnicode s, � �
�+�+�A�|�<�����)�Q�W�W�f�5r c � � t j dd� � }| j t |j dg� | j t |j d� y)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 � � y r r
r
r r r zBPollableWritePipeTests.test_writeSequenceUnicode.<locals>.<lambda>'