| Server IP : 46.62.235.243 / Your IP : 216.73.216.163 Web Server : Apache/2.4.58 (Ubuntu) System : Linux Linkabili3Dicembre 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.33 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>'