HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/twisted/internet/test/__pycache__/test_pollingfile.cpython-38.pyc
U


W[��@sXdZddlmZddlmZe��r2ddlmZndZGdd�de�ZedkrTde_	dS)	z-
Tests for L{twisted.internet._pollingfile}.
�)�platform)�TestCase)�_pollingfileNc@s eZdZdZdd�Zdd�ZdS)�PollableWritePipeTestsz7
    Tests for L{_pollingfile._PollableWritePipe}.
    cCs$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.
        �cSsdS�N�rrr�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�prrr	�test_writeUnicodesz(PollableWritePipeTests.test_writeUnicodecCs6t�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.
        rcSsdSrrrrrr	r
&rzBPollableWritePipeTests.test_writeSequenceUnicode.<locals>.<lambda>r)rN)rr
rrZ
writeSequencerrrr	�test_writeSequenceUnicode sz0PollableWritePipeTests.test_writeSequenceUnicodeN)�__name__�
__module__�__qualname__�__doc__rrrrrr	rs	rzTest will run only on Windows.)
rZtwisted.python.runtimerZtwisted.trial.unittestrZ	isWindowsZtwisted.internetrr�skiprrrr	�<module>s