%PDF- %PDF-
Direktori : /lib/python3/dist-packages/twisted/internet/test/__pycache__/ |
Current File : //lib/python3/dist-packages/twisted/internet/test/__pycache__/test_pollingfile.cpython-312.pyc |
� Ϫ�f! � � � 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>'