§
    Y¦·f!  ã                   ó¢   — d Z ddlmZ ddlmZ ddlmZ  ej        ¦   «         rddlm	Z	 ndZ	 ee	du d¦  «         G d„ d	e¦  «        ¦   «         Z
dS )
z-
Tests for L{twisted.internet._pollingfile}.
é    )ÚskipIf)Úplatform)ÚTestCase)Ú_pollingfileNzTest will run only on Windows.c                   ó"   — e Zd ZdZdd„Zdd„ZdS )ÚPollableWritePipeTestsz7
    Tests for L{_pollingfile._PollableWritePipe}.
    ÚreturnNc                 ót   — t          j        dd„ ¦  «        }|                      t          |j        d¦  «         dS )z›
        L{_pollingfile._PollableWritePipe.write} raises a C{TypeError} if an
        attempt is made to append unicode data to the output buffer.
        é   c                  ó   — d S ©N© r   ó    úX/var/www/html/env/lib/python3.11/site-packages/twisted/internet/test/test_pollingfile.pyú<lambda>z:PollableWritePipeTests.test_writeUnicode.<locals>.<lambda>   ó   € °t€ r   ÚtestN)r   Ú_PollableWritePipeÚassertRaisesÚ	TypeErrorÚwrite©ÚselfÚps     r   Útest_writeUnicodez(PollableWritePipeTests.test_writeUnicode   s8   € õ
 Ô+¨A¨|¨|Ñ<Ô<ˆØ×Ò) Q¤W¨fÑ5Ô5Ð5Ð5Ð5r   c                 ó¸   — t          j        dd„ ¦  «        }|                      t          |j        dg¦  «         |                      t          |j        d¦  «         dS )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                  ó   — d S r   r   r   r   r   r   zBPollableWritePipeTests.test_writeSequenceUnicode.<locals>.<lambda>'   r   r   r   )r   N)r   r   r   r   ÚwriteSequencer   s     r   Útest_writeSequenceUnicodez0PollableWritePipeTests.test_writeSequenceUnicode!   sT   € õ Ô+¨A¨|¨|Ñ<Ô<ˆØ×Ò) Q¤_°v°hÑ?Ô?Ð?Ø×Ò) Q¤_°iÑ@Ô@Ð@Ð@Ð@r   )r	   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r      sL   € € € € € ðð ð6ð 6ð 6ð 6ðAð Að Að Að Að Ar   r   )r#   Úunittestr   Útwisted.python.runtimer   Útwisted.trial.unittestr   Ú	isWindowsÚtwisted.internetr   r   r   r   r   ú<module>r)      sÒ   ððð ð Ð Ð Ð Ð Ð à +Ð +Ð +Ð +Ð +Ð +Ø +Ð +Ð +Ð +Ð +Ð +à€8ÔÑÔð Ø-Ð-Ð-Ð-Ð-Ð-Ð-à€Lð €ˆ˜ÐÐ>Ñ?Ô?ðAð Að Að Að A˜Xñ Aô Añ @Ô?ðAð Að Ar   