403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.51
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/test/test_io/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/test_io/__pycache__/test_bufferedio.cpython-315.pyc
R
>lqji�c���]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PH s]QH$G
s
Gs]QH0G
s
Gs]QH<Gs]QHDGsGsGs]QHTGsGsGs]PHds]PHhsQQ2sQQ	2sQ
Q\2sQQ
\\\2sQQ\\2s QQ\2s!QQ\!\\2s"QQ\!\2s#QQ2s$QQ\$\2s%QQ\$\2s&QQ\\!2s'QQ\'\\2s(Q Q!\'\2s)\*\+]Q"22,Q*N*s,Q#Q$2s-Q%Q&\-\O\2s/Q'Q(\-\O\2s0\1Q)6Xc\Od2P!P!)+�)�deque�UserList)�cycle�count)�support)�check_sanitizer�	os_helper�threading_helper)�	byteslike�	CTestCase�
PyTestCasec�|`�\sQs]snQsQsQsQsQsQs	Qs
QsQ	sQ
s
QsQsQ
sQsQsQsUsP!)�CommonBufferedTestsc���UO2oUOU2oUOUO2U2UO	[
UO2[
U2P!�N)�	MockRawIO�tp�assertIs�detach�assertRaises�
ValueError�repr��self�raw�bufs&  �1C:\Python315\\Lib\test\test_io\test_bufferedio.py�test_detach�CommonBufferedTests.test_detachsJ���n�n����g�g�c�l���
�
�c�j�j�l�C�(����*�c�j�j�1��S�	�c��UO2oUOU2oUO]*UO22P!)�*)rr�assertEqual�fileno�r�rawio�bufios&  r�test_fileno�CommonBufferedTests.test_fileno s1����� ������������U�\�\�^�,rc���UO2oUOU2oUO[UO]P2UO[UO]]	2P!�r)rrrr�seekr$s&  r�test_invalid_args�%CommonBufferedTests.test_invalid_args&sK����� �����������*�e�j�j�!�R�8����*�e�j�j�!�Q�7rc��`�UOo,nU1QkQU2oUO2oUU2o=[O2UO	R,QN2P!)c�T:``�\sQs]0snUU1QksUU1QksUU1QksQsUsU9s	!)�BCommonBufferedTests.test_override_destructor.<locals>.MyBufferedIOc�t:�RO]2[RU_oU2P![cP!h9h��)�append�super�__del__�AttributeError)r�f�	__class__�records& ��rr6�JCommonBufferedTests.test_override_destructor.<locals>.MyBufferedIO.__del__1s8����
�
�a� �����A��C��&����s�
(�	7�7�7c�H:�RO]2[RU_	2P!)�)r4r5�close�rr9r:s&��rr>�HCommonBufferedTests.test_override_destructor.<locals>.MyBufferedIO.close9�����
�
�a� ���
�rc�H:�RO]2[RU_	2P!)�)r4r5�flushr?s&��rrD�HCommonBufferedTests.test_override_destructor.<locals>.MyBufferedIO.flush<rAr�)
�__name__�
__module__�__qualname__�__firstlineno__r6r>rD�__static_attributes__�__classdictcell__�
__classcell__)r9�
__classdict__r:s@@�r�MyBufferedIOr00s����
�
 �
 �
 rrO�r3r=rC)rrr�
gc_collectr")rrrOr%r&r:s&    @r�test_override_destructor�,CommonBufferedTests.test_override_destructor-sT���
�W�W����	 �2�	 ���� ���U�#������������+rc�`�UO2oUOU2nU1QkoU2UO[U2P!)c�Z:�R9^tt^2PPP2P!)%fhP!9hrrF�r&s�r�_with�7CommonBufferedTests.test_context_manager.<locals>._withIs����������s��*	�*	)rrrr)rr%rWr&s&  @r�test_context_manager�(CommonBufferedTests.test_context_managerEs:������ ��������	�	��	
���*�e�,rc	��UO2o[O29^tt^2oUO[29^tt^2UOU2OPPP2UOUOO[2PPP2P!)%fhKD9h)%fhP!9hr)�CloseFailureIOr�catch_unraisable_exceptionrr7r�xyzzyr"�
unraisable�exc_type�OSError)rr%�cms&  r�test_error_through_destructor�1CommonBufferedTests.test_error_through_destructorQs����#�#�%��
�
/�
/�
1�
1�R��"�"�>�2�2������$�$�3�
���R�]�]�3�3�W�=�	2�
1�2�2��2�
1�
1�s/�B8�
B%	�)2B8�%B5
�.B5
�0B8�8C		�C		c��UO2oUOU2oQUOO8QUOO80oUO	[U2QU*2QUmUO	[U2QU*2QUmUO	[U2QU*2P!)�(z\.)?z<%s>�dummyz<%s name='dummy'>sdummyz<%s name=b'dummy'>)rrrHrI�assertRegexr�name)rr�b�clsnames&   r�	test_repr�CommonBufferedTests.test_repr[s����n�n����G�G�C�L��"&�'�'�"4�"4�d�g�g�6J�6J�K������a��&�7�"2�3��������a��"5��"?�@��������a��"6��"@�Arc��UO2oUOU2o[OUQU29^tt^2[O]29^tt^2UO[29^tt^2[U2PPP2PPP2PPP2P!)%fhK"9h)%fhK-9h)%fhP!9h)ri)rrr�	swap_attr�infinite_recursionr�RuntimeErrorr�rrrjs&  r�test_recursive_repr�'CommonBufferedTests.test_recursive_repres����n�n����G�G�C�L��
�
�
�s�F�A�
.�
.��0J�0J�2�0N�0N��"�"�<�0�0��Q��1�1O�
.�
.�0�0��1O�0N��
.�
.�
.�sN�C�"B9	�B&
�B9	�C�&B6�/B6�1B9	�9C	
�C	
�C�C	�C	c�```�UO2n,nUUU1QkoURmUOR2nUO[RO
2UO
RO2UO
RO2UO
R2UOR]*2UOR]*2QRmP!)c�P:�RORO,RQ$[2g)�NNN)�closedra)rjrxrs���r�	bad_flush�@CommonBufferedTests.test_flush_error_on_close.<locals>.bad_flushrs ������3�:�:�.�F�1�I��)�Orc��P!rrFrFrr�<lambda>�?CommonBufferedTests.test_flush_error_on_close.<locals>.<lambda>}���Dr)	rrDrrrar>�
assertTruerx�assertFalse)rryrjrxrs& @@@r�test_flush_error_on_close�-CommonBufferedTests.test_flush_error_on_closems�����n�n�����	���	��G�G�C�L�����'�1�7�7�+�������!�����
�
�#������������#�������#� ��	rc�V�UO2oQoQoV1mUOU2oV$mUO	[
29^tt^2oUO2PPP2UO
WOOQ2UOUOO[
2UO
UOOOQ2UOUO2QUmQUmP!)%fhK�9h)c��[Q2g�rD�rarFrrry�@CommonBufferedTests.test_close_error_on_close.<locals>.bad_flush��
���'�"�"rc��[Q2g�r>r�rFrr�	bad_close�@CommonBufferedTests.test_close_error_on_close.<locals>.bad_close�r�rc��P!rrFrFrrr|�?CommonBufferedTests.test_close_error_on_close.<locals>.<lambda>�r~rc��P!rrFrFrrr|r�����$rr�r�)
rr>rrDrrar"�	exception�args�assertIsInstance�__context__r�rx�rrryr�rj�errs&     r�test_close_error_on_close�-CommonBufferedTests.test_close_error_on_closes����n�n���	#�	#��	��G�G�C�L����
�
�
�w�
'�
'�3�
�G�G�I�(�������+�+�Z�8����c�m�m�7�7��A�������2�2�7�7��D�������"�!��	����(�
'�s�D�D(	�!D(	c�R�UO2oQoQoV1mUOU2oV$mUO	[
29^tt^2oUO2PPP2UO
Q[WO22UOUOO[
2UO
Q[UOO22UOUO2QUmQUmP!)%fhK�9h)c��[gr)�non_existing_flushrFrrry�NCommonBufferedTests.test_nonnormalized_close_error_on_close.<locals>.bad_flush����$�$rc��[gr)�non_existing_closerFrrr��NCommonBufferedTests.test_nonnormalized_close_error_on_close.<locals>.bad_close�r�rr�r�c��P!rrFrFrrr|�MCommonBufferedTests.test_nonnormalized_close_error_on_close.<locals>.<lambda>�r�rc��P!rrFrFrrr|r��r~r)
rr>rrDr�	NameError�assertIn�strr�r�r�r�rxr�s&     r�'test_nonnormalized_close_error_on_close�;CommonBufferedTests.test_nonnormalized_close_error_on_close�s����n�n���	%�	%��	��G�G�C�L����
�
�
�y�
)�
)�S�
�G�G�I�*��
�
�*�C��
�
�,>�?����c�m�m�7�7��C��
�
�*�C��
�
�0I�0I�,J�K�������"���� ��	�*�
)�s�D�D&	�D&	c���UO2oUOU2oUO2UO2UO2UO[UO
2P!r)rrr>rrrDrrs&  r�test_multi_close�$CommonBufferedTests.test_multi_close�sJ���n�n����G�G�C�L��	���	�	���	�	���	����*�a�g�g�.rc���UOUOQ22oUOUOUO2UOUOUO
]2P!��A�
AAAAAAAAAA)r�MockUnseekableIOr�UnsupportedOperation�tellr+�rr&s& r�test_unseekable�#CommonBufferedTests.test_unseekable�sQ������-�-�i�8�9�����$�3�3�U�Z�Z�@����$�3�3�U�Z�Z��Crc���UO2oUOU2oUO2oUO[29^tt^2V2mPPP2P!)%fhP!9hr)rrrr7r)rrr�xs&   r�test_readonly_attributes�,CommonBufferedTests.test_readonly_attributes�sL���n�n����g�g�c�l���N�N���
�
�
�~�
.�
.��G�/�
.�
.�
.�s�A!�!A2	�*A2	c	�`�U1QkQRO2rROQ2o[UQQ5o[[O
]*2FD�oRO
UQ59^tt^2[OV#2o[OU2oROUOO2Q2ROUOQ2PPP2J�	>P!)%fhJ�9h)c�H:``�\sQs]�snU1QksQsU1QksQsUsU9s	!)rOc�4:�[RU_U2V mP!r)r5�__init__�tag)rrr�r9s&&&�rr��MyBufferedIO.__init__�s����� ��%��rc�P�UOUOO21!r)r�r�getvalue�rs&r�__getstate__�MyBufferedIO.__getstate__�s���x�x����!2�!2�!4�4�4rc�T:�Uvq#UOROU2U2P!r)r��BytesIO)�slf�stater��valuers&&  �r�__setstate__�MyBufferedIO.__setstate__�s!���"�
�����T�\�\�%�0�#�6r�r�)
rGrHrIrJr�r�r�rKrLrM)r9rNrs@@�rrOrO�s����
�
5�
7�
7rrOsdata�hamr�)�protocol)
rrOr��range�pickle�HIGHEST_PROTOCOL�subTest�dumps�loadsr"rr�r�)rrr�proto�pickled�newbufsf     r�test_pickling_subclass�*CommonBufferedTests.test_pickling_subclass�s����	7�4�7�7�	7��l�l�7�#���3�E�*���6�2�2�Q�6�7�E����u��-�-� �,�,�s�2�����g�.��� � ����!4�!4�!6��@�� � ����U�3�	.�-�8�
�.�-�-�s�7A3C9	�9D

�D

rF)rGrHrIrJrr'r,rRrYrcrlrsr�r�r�r�r�r�r�rKrL�rNs@rrrsW�����-�8�,�0
-�>�B��!�$�(!�*/�D�
��rrc�j`�\sQs]�sn\O
Q2s\O
Q2sQsUs	P!)�
SizeofTestc�*�QoQoUO2oUOV1Q5o[OU2U*
oUO2oUOV2Q5oUO	[OU2VR*2P!)�� ��buffer_size)rr�sys�	getsizeofr")r�bufsize1�bufsize2r%r&�sizes&     r�test_sizeof�SizeofTest.test_sizeof�sr��������� �������4���}�}�U�#�h�.����� �������4��������u�-�t��?rc��QoUO2oUOV!Q5o[OU2U*
oUO	2UO[OU2U2P!)r�r�)rrr�r�r>r")r�bufsizer%r&r�s&    r�test_buffer_freeing�SizeofTest.test_buffer_freeing�sX������� �������3���}�}�U�#�g�-��
���
�������u�-�t�4rrF)
rGrHrIrJr�cpython_onlyr�r�rKrLr�s@rr�r��s9�������@��@�
���5��5rr�c�`�\sQs]�snQsQsQsQsQsQs	Qs
QsQ	sQ
s
QsQsQ
sQsQs\O(2\O,Q2Q22sQsQsQsQsQsQsQsQsUs P!)�BufferedReaderTest�rbc�T�UOQ,2oUOU2oUOU2UOUQQ5UOU]Q5UOQUO	22UO[UOU]Q5UO[UOUQQ5UO[UOUPQ5UOQ,2oUOU2UOQUO	22P!)�abc�r���)rrr�r"�readrrr$s&  r�test_constructor�#BufferedReaderTest.test_constructor�s�������x�(��������
���u��
���u�$��/�
���u�"��-���������.����*�e�n�n�e���K����*�e�n�n�e���M����*�e�n�n�e���L�����x�(��
���u����������.rc�n�UOOUO2o=UOOUO2oUO[[1QUO
]2UO
UO22UOUO]2Q2P!�zuninitialized|has no attributer)	r�__new__�assertRaisesRegexrr7r�r�rr"r�s& r�test_uninitialized�%BufferedReaderTest.test_uninitialized�s����������(�����������(�����
�N�;�?�$�z�z�1�	.�	���t�~�~�'�(�������A���,rc���QFDFoUOQ2oUOU2oUOQUOU22JH	UO	[
WOQ2P!)N�abcdefg)N��r��d�efg���)rrr"r�rr)r�argr%r&s&   r�	test_read�BufferedReaderTest.test_readsX���C��N�N�#9�:�E��G�G�E�N�E����Z����C��9��
	
���*�e�j�j�"�5rc�2�UOQ2oUOU2oUOQUO]22UOQUO	]22UOUO
]2UOQUO	]22UOQUO	]d22UOUO
]2UOQUO	]d22UOUO
]2UOQUO	]d22UOUO
]2UOQUO	]d22UOUO
]2P!)r�rr�a�br�cr�rrr"r��read1�_readsr$s&  r�
test_read1�BufferedReaderTest.test_read1s.�����5�6������������u�z�z�!�}�-�����u�{�{�1�~�.�������q�)�����e�k�k�!�n�-�����u�{�{�3�/�0�������q�)�����u�{�{�3�/�0�������q�)��������S�!1�2�������q�)�����e�k�k�#�.�/�������q�)rc��UOQ2oUOU2oUOQUO]22UOQUO	22UOQUO	22UOQUO	P22UOUO
]2UOQUO	22UOUO
]2P!)r�rrr	sbcrrrr$s&  r�test_read1_arbitrary�'BufferedReaderTest.test_read1_arbitrarys������5�6������������u�z�z�!�}�-��������
�.�����u�{�{�}�-��������R��1�������q�)�����e�k�k�m�,�������q�)rc�p�UOQ2oUOU2o[]2oUOUO	U2]2UOUQ2UOUO	U2]2UOUQ2UOUO	U2]2UOUQ2UOUO	U2]2UOUQ2UOUO	U2]2UOUQ2UOQ2oUOU2oUOUO	U2]2UOUQ2UOUO	U2]2UOUQ2P!)r��ab�cd�efsgfscbr)r�N)rr�	bytearrayr"�readinto)rr%r&rjs&   r�
test_readinto� BufferedReaderTest.test_readinto'sa�����5�6���������a�L���������*�A�.�����E�"��������*�A�.�����E�"��������*�A�.�����E�"��������*�A�.�����E�"��������*�A�.�����E�"����~�.���������������*�A�.�����E�"��������*�A�.�����E�"rc��]
oUOQ
2oUOV!Q5o[]2oUOUO	]2Q2UOUO
]2UOUO
U2]2UOUQ2UOUO
]2UOUO
U2]2UOUQ*Q2UOUO
]2UOUO
U2]2UOUQ2UOUO
]2[]U*2oUOUO	]2Q2UOUO
]2UOUO
U2]2UOUQ*Q	2UOUO
]2P!)�
r��de�fghr�r:Nr3Nr:N�Nsfghjkl)r�rrsjkl)rrrr"�peekr�	readinto1)rr�r%r&rjs&    r�test_readinto1�!BufferedReaderTest.test_readinto1<s��������>�?�������7���a�L��������A���/�������q�)��������+�Q�/�����E�"�������q�)��������+�Q�/�����2���%�������q�)��������+�Q�/�����E�"�������q�)��a��m�$��������A���/�������q�)��������+�Q�/�����2��	�*�������q�)rc	���]<oQoUOU12oUOV1Q5o[OQQ2o[U2]6wfPgUO	U2oUOU[U22[
U2OQ2oUOU[U22UOUPUUPU2UOVvPQ[VvP2*2P!��<r��i�x�Bsaaaaaaaaaaaaaaaaaaaaaaaaaas xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
rr�array�lenr�
assertGreater�
memoryview�cast�
assertLessr"�rr��datar%r&rj�n�bms&       r�test_readinto_array�&BufferedReaderTest.test_readinto_arraySs�����������w�'�������7��
�K�K��Y�'���1�v��|��|�
�N�N�1������1�c�!�f�%���]�
�
��
$������3�r�7�#�����B�Q���b�q��*�����B����R��V��!5�6rc	���]<oQoUOU12oUOV1Q5o[OQQ2o[U2]6wfPgUO	U2oUOU[U22[
U2OQ2oUOU[U22UOUPUUPU2UOVvPQ[VvP2*2P!r&)
rrr+r,r"r-r.r/r0r"r1s&       r�test_readinto1_array�'BufferedReaderTest.test_readinto1_arrayhs�����������w�'�������7��
�K�K��Y�'���1�v��|��|�
�O�O�A������1�c�!�f�%���]�
�
��
$������3�r�7�#�����B�Q���b�q��*�����B����R��V��!5�6rc�`�U1QkoROU2O2,QN2ROU2O]2QQ,2ROU2OP2,QN2P!)c�J:�ROQ2oROU2!)�abc
�r<�d
r)rr)r%rs �rr&�0BufferedReaderTest.test_readlines.<locals>.bufio~s ����N�N�#<�=�E��7�7�5�>�!rr<r>r=�r"�	readlinesr�sf r�test_readlines�!BufferedReaderTest.test_readlines}sf���	"�	
�����*�*�,�.G�H������*�*�1�-��&�/A�B������*�*�4�0�2K�Lrc�f�Qo[U2o]d,QNU],,]d,QNU,,],QN,QN,,oSFD�vqEoUOU2oUOVtQ5o]o	SFD4o
UOUO	U
2VV�*2V�*
o	J6	UOUO
U2J�	P!)�	abcdefghir�)rCr3��)rCrCrC)r3r=rFr=)rFrFr3)r,�
MockFileIOrr"r��read_history)rr2�dlen�testsr��buf_read_sizes�raw_read_sizesr%r&�pos�nbytess&          r�test_buffering�!BufferedReaderTest.test_buffering�s������4�y���>�T�1�;�0��:�T�8�0��>�;�0�
��8=�3�G�^��O�O�D�)�E��G�G�E�G�7�E��C�(��� � ����F�!3�T�c�j�5I�J��
��)�
���U�/�/��@�8=rc�p�UOQ2oUOU2oUOQUO]22UOQUO]22UOQUO22UOQUO	]22UOUO22UOQUO22UOQ2oUOQUO
22UOUO
22P!)r��abcd�esfgrr	)r�rNrNNN)r	NN)rrr"r�r!�assertIsNone�readallr$s&  r�test_read_non_blocking�)BufferedReaderTest.test_read_non_blocking�s������M�N������������%�*�*�Q�-�0�����u�z�z�!�}�-������
�
��-�����e�j�j��m�,����%�*�*�,�'�����e�j�j�l�+����1�2������u�}�}��/����%�-�-�/�*rc��UOQ2oUOU2oUOQUOQ22P!)r�r�i(#r�rrr"r�r$s&  r�test_read_past_eof�%BufferedReaderTest.test_read_past_eof�s7�����5�6������������U�Z�Z��%5�6rc��UOQ2oUOU2oUOQUO22P!)r�r�rrZr$s&  r�
test_read_all� BufferedReaderTest.test_read_all�s4�����5�6������������U�Z�Z�\�2r�cpuc
�`
``�Qo[[Q22U*o[OU2[	[U22oUO
[OQ29^tt^2oUOU2PPP2UO
[OUO]Q59^tt^2oUOU]2n
,n,nU
UU1Qko[]2Tt,tFDo[OUQ5MJ	oo[OU29^tt^2[ O"Q2PPP2UO%RQR*2QO'R2o[Q2FD9o[	[U,22o	UO)UO+U	2U2J;	PPP2[O,[O2P!)%fhCKr9httoh)%fhK�9h)%fhKb9h[O,[O2h9h)	����wb��	bufferingc��:�[]],2FD1oROU2oU%fP!ROU2J3	P![coROS2gPo=hh9hr2)rr�r4�	Exception)r3�s�er&�errors�resultss   ���rr8�*BufferedReaderTest.test_threads.<locals>.f�sZ���
�!&��2�w��A� %�
�
�1�
�A�#$� %�#�N�N�1�-�"0��%���
�
�a�(����s'�)A	�A	�A	�		A+�A+�A&�&A+��target�{�G�z�?�(the following exceptions were caught: %rr)�listr��random�shuffle�bytesr�openr�TESTFN�write�	read_moder�	threading�Threadr	�
start_threads�time�sleepr��joinr"r�unlink)
r�N�lrir8rr��threadsr(�cr&rkrls
&         @@@r�test_threads�BufferedReaderTest.test_threads�s����$	/��A��U�3�Z� �1�$�A��N�N�1���i��l�#�A����9�+�+�T�2�2�a�����
�3����9�+�+�T�^�^�q��I�I�S�����Q��������@E�R�y�I�y�!�9�+�+�1�5�y��I�%�3�3�G�<�<��J�J�t�$�=�� � ��>��G�I��H�H�W�%���s��A��i���n�-�A��$�$�Q�W�W�Q�Z��3�$�-J�4
���Y�-�-�.�93�2�2��$J�<�<��#J�I��4
���Y�-�-�.�sy�A/H/�5G0�<H/�+H�."H� H�0H		�A;H�H/�0H	�9H	�;	H/�H�	H
�H
�H�H,	�%H,	�'H/�/&Ic��UOUOQ22oUOUOUO2UOUOUO
]2UO
]2UOUOUO
]2UOUOUO2P!r�)rr�rr�r�r+r�r�s& rr��"BufferedReaderTest.test_unseekable�s�������-�-�i�8�9�����$�3�3�U�Z�Z�@����$�3�3�U�Z�Z��C�
�
�
�1�
����$�3�3�U�Z�Z��C����$�3�3�U�Z�Z�@rc���UOQ2oUOU2oUO[UO]2UO[UO
2QUmP!)r�c��P!rrFrFrrr|�7BufferedReaderTest.test_misbehaved_io.<locals>.<lambda>����drr)�MisbehavedRawIOrrrar+r�r>r$s&  r�test_misbehaved_io�%BufferedReaderTest.test_misbehaved_io�sS���$�$�%;�<�����������'�5�:�:�q�1����'�5�:�:�.�#��rc
��]o]U]*
V]*U]*1FCDoUOQU*,2oUOV12oUOUOU2QU*2UOUO]QOV#O22UOQU]*
*Q,2oUOV12oUOUOU2QU*2UOUO]QOV#O22CJ	P!)�r)zfailed for {}: {} != 0)rrr"r��_extraneous_reads�format)rr�r3r%r&s&    r�test_no_extraneous_read�*BufferedReaderTest.test_no_extraneous_read�s�����W�q�[�'�Q�;��!��D�A��N�N�D�1�H�:�.�E��G�G�E�+�E����U�Z�Z��]�D�1�H�5����U�4�4�a�5�<�<�Q�@W�@W�X�
Z��N�N�D�A��E�N�D�#9�:�E��G�G�E�+�E����U�Z�Z��]�D�1�H�5����U�4�4�a�5�<�<�Q�@W�@W�X�
Z�Erc��UOUOQ22oUO]2UO2UO	Q29^tt^2UO[UO2PPP2UO	Q29^tt^2UO[UO]2PPP2UO	Q29^tt^2UO[UO2PPP2UO	Q29^tt^2UO[UO[22PPP2UO	Q29^tt^2UO[UO[22PPP2UO	Q29^tt^2UO[UO2PPP2UO	Q29^tt^2UO[UO2PPP2UO	Q29^tt^2UO[UO]2PPP2P!)%fhCK�9h)%fhCK�9h)%fhCK�9h)%fhCKa9h)%fhCK*9h)%fhK�9h)%fhK�9h)%fhP!9h)	�12r!r
r�rr"rD�truncater+)�BufferedReaderr�r�r>r�rrr!r
rrr"rDr�r+)rrjs& r�test_read_on_closed�&BufferedReaderTest.test_read_on_closeds���������U� 3�4��	���q�	�	���	�
�\�\�&�
!�
!����j�!�&�&�1�"�
�\�\�'�
"�
"����j�!�'�'�1�5�#�
�\�\�&�
!�
!����j�!�&�&�1�"�
�\�\�*�
%�
%����j�!�*�*�i�k�B�&�
�\�\�+�
&�
&����j�!�+�+�y�{�C�'�
�\�\�'�
"�
"����j�!�'�'�2�#�
�\�\�*�
%�
%����j�!�*�*�5�&�
�\�\�&�
!�
!����j�!�&�&�!�4�"�
!�"�
!�
!��
"�
"�
"��
!�
!�
!��
%�
%�
%��
&�
&�
&��
"�
"��
%�
%��
!�
!�
!�s��!I)�"I=�!!J�#*J%�.*J9�9!K
�;!K �="K3�)I:	�2I:	�=J	�J	�J"	�J"	�%J6	�.J6	�9K
	�K
	�
K	�K	� K0	�)K0	�3L	�<L	c�$�UOQ2oUOU2oUOUO22UO	UO
UO2UO	UO
UO]2P!)r�)rHrr��writablerr�r�r$s&  r�test_truncate_on_read_only�-BufferedReaderTest.test_truncate_on_read_onlysh������'��������������)�*����$�3�3�U�^�^�D����$�3�3�U�^�^�Q�Grc��UOQ2oUOU2oUOUO2]2UOUO	]2Q2UOUO2]2P!�r��1)�MockCharPseudoDevFileIOrr"r�r�rs&  r�test_tell_character_device_file�2BufferedReaderTest.test_tell_character_device_filese���*�*�5�1���g�g�c�l���������Q�'�������!��d�+��������Q�'rc�N�UOQ2oUOU2oUOUO][O
2]2UOUO][O2]2UOUO][O
2]2UOUO]2Q2UOUO2]2UOUO][O
2]2P!r�)	r�rr"r+�io�SEEK_CUR�SEEK_SETr�r�rs&  r�test_seek_character_device_file�2BufferedReaderTest.test_seek_character_device_file)s����*�*�5�1���g�g�c�l��������!�R�[�[�1�1�5�������!�R�[�[�1�1�5�������!�R�[�[�1�1�5�������!��d�+�
	
�������Q�'�������!�R�[�[�1�1�5rrF)!rGrHrIrJryr�r�rrrrr#r5r8rBrPrWr[r^r	�requires_working_threadingr�requires_resourcer�r�r�r�r�r�r�r�rKrLr�s@rr�r��s������I�/�-�6�*� 	*�#�**�.7�*7�*M�A�(
+�7�3��0�0�2����u�%�%/�&�3�%/�NA�#�Z�(5�,H�(�6�6rr�c��`�\sQsQsn\O
sQsQsQs	Qs
QsQs\
O\O Q
6�Q2\
O"\P	Q	5Q
2Q22sQsUsP!)�CBufferedReaderTest�8c���UOQ,2oUOU2oUO[UOU]Q5UO[UO
2UO[UOUQQ5UO[UO
2UO[UOUPQ5UO[UO
2P!)r�r�r�)rrrrr�r�r$s&  r�test_initialization�'CBufferedReaderTest.test_initialization;s�������x�(�����������*�e�n�n�e���K����*�e�j�j�1����*�e�n�n�e���M����*�e�j�j�1����*�e�n�n�e���L����*�e�j�j�1rc��UOQ2oUOU2oUO[UO]
2P!)r�r)r�rrrar�r$s&  r�test_misbehaved_io_read�+CBufferedReaderTest.test_misbehaved_io_readEs8���$�$�%;�<��������	
���'�5�:�:�r�2rc��UO[O[O2[O
29^tt^2[OQ[2UO[OQ2oUOU2oV"m
[OU2o=[O2PPP2UOW2U2P!)%fhK)9h)�ignore�w+b)�
addCleanuprr�rw�warnings�catch_warnings�simplefilter�ResourceWarning�FileIOrr8�weakref�refrrQrU�rr%r8�wrs&   r�test_garbage_collection�+CBufferedReaderTest.test_garbage_collectionLs���	
���	�(�(�)�*:�*:�;��
$�
$�
&�
&��!�!�(�O�<��K�K�	� 0� 0�%�8�E������A��C����Q��B����� �'�	
���"�$��#�'�
&�s�
A?C-�-C=	�6C=	c���UO[Q29^tt^2UOUO2QQQ2PPP2P!)%fhP!9h)r�r��r��	TypeErrorrr�r�s&r�test_args_error�#CBufferedReaderTest.test_args_error]�>��
�
#�
#�I�/?�
@�
@��G�G�D�L�L�N�D�$��5�A�
@�
@�
@���#A
�
A	�A	c�V�UOUOQ22oQUmUOU2oUO[29^tt^2oUO2PPP2UO
WOO2P!)%fhK79h)r�c��P!r2rF�rs&rr|�=CBufferedReaderTest.test_bad_readinto_value.<locals>.<lambda>ds��Rr)	rr�rrra�readlinerUr��	__cause__�rr%r&rbs&   r�test_bad_readinto_value�+CBufferedReaderTest.test_bad_readinto_valuebsp��������U�+�,��'���������
�
�
�w�
'�
'�2��N�N��(����"�,�,�0�0�1�(�
'�s�B�B(	�!B(	c�`�UOUOQ22oQUmUOU2oUO[29^tt^2oUO2PPP2UO
WOO[2P!)%fhK<9h)r�c��Q!)rrFr�s&rr|�<CBufferedReaderTest.test_bad_readinto_type.<locals>.<lambda>ls��Sr)
rr�rrrar�r�r�r�r�r�s&   r�test_bad_readinto_type�*CBufferedReaderTest.test_bad_readinto_typejsr��������U�+�,��(���������
�
�
�w�
'�
'�2��N�N��(����b�l�l�4�4�i�@�(�
'�s�B�B-	�&B-	zrequires 64bit platform)�threadz:ThreadSanitizer aborts on huge allocations (exit code 66).c	���UO[O[O2UO	[OQ29^tt^2oUOQ2PPP2UO	[OQ]Q59^tt^2oUO
U]Q5o[O]*]*oUO[29^tt^2UOU2PPP2UOUO]2Q2PPP2P!)%fhK�9h)%fhKN9h)%fhP!9h)rdshellor�rer��h)
r�rr�rwrvrxrr��maxsizer�MemoryErrorr
r")rr8rr&�huges&    r�1test_read1_error_does_not_cause_reentrant_failure�ECBufferedReaderTest.test_read1_error_does_not_cause_reentrant_failurers���	
���	�(�(�)�*:�*:�;�
�Y�Y�y�'�'��
.�
.�!�
�G�G�H��/��Y�Y�y�'�'���Y�
;�
;�s��G�G�C�Q�G�/�E��;�;�!�#�a�'�D��"�"�;�/�/����D�!�0�
���U�[�[��^�T�2�<�
;�/�
.��0�/��<�
;�
;�sC�D0�AE�+E	�=)E�0E	�9E	�E
�E
�E�E'	�E'	rFl)rGrHrIrJr�r�rr�r�r�r�r�r��unittest�
skipUnlessr�r��skipIfrr�rKrLr�s@rr�r�8sx����	�	�	�B�2�3�$�"6�
2�A�������u�,�.G�H�
�_�_�_�D�1�Q�S�3�S�I�3rr�c�0�\sQsQs\O
sQsP!)�PyBufferedReaderTest�rF)rGrHrIrJ�pyior�rrKrFrrr�r���
��	
�	�	�Brr�c�0`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
QsQ
sQsQsQsQsQsQsQsQs\O22\O6Q2Q22sQsQsQs\O22Q2s Qs!Us"P!)�BufferedWriterTest�rdc���UO2oUOU2oUOU2UOUQQ5UOU]Q5UO]UO	Q22UO2UO
[UOU]Q5UO
[UOUQQ5UO
[UOUPQ5UOU2UO]UO	Q22UO2UOQOUO2Q2P!)r�r�r��ghirsabcghir�)
rrr�r"rxrDrrr�_write_stackr$s&  rr��#BufferedWriterTest.test_constructor�s����� ��������
���u��
���u�$��/�
���u�"��-�����E�K�K��/�0�
���
����*�e�n�n�e���K����*�e�n�n�e���M����*�e�n�n�e���L�
���u������E�K�K��/�0�
���
�������%�"4�"4�5�y�Arc�n�UOOUO2o=UOOUO2oUO[[1QUO
Q2UO
UO22UOUOQ2]2P!r�)	rr�r�rr7rxr�rr"r�s& rr��%BufferedWriterTest.test_uninitialized�s�����������(�����������(�����
�N�;�?�$�{�{�C�	1�	���t�~�~�'�(�������S�)�1�-rc��UO2oUOU2oUOQ2UOUO2UO2UO
UOQ,2P!)showdy!)rrrxr�r�rr"rs&  r�test_detach_flush�$BufferedWriterTest.test_detach_flush�s\���n�n����g�g�c�l���	�	�)������)�)�*��
�
������)�)�I�;�7rc�\�UO2oUOU]2oUOQ2UOUO2[Q2oUOU2QUQ$UO
2UOQOUO2Q2P!)rGr��def�***rwr�abcdef)	rrrxr�r�rrDr"r)r�writerr&�buffers&   r�
test_write�BufferedWriterTest.test_write�s������!�������"��
���F������,�,�-��6�"��
���F����q�	�
���
�������&�"5�"5�6�	�Brc��UO2oUOU]2oQo[][U2]2FDoUO	V4U]*2J	QOUO2oUOVSPQ2P!)rGsabcdefghijklmnopri����)rrr�r,rxrr��assertStartsWith)rr�r&�contentsr3�flusheds&     r�test_write_overflow�&BufferedWriterTest.test_write_overflow�sx�����!�������"��&���q�#�h�-��+�A��K�K��1�Q�3��(�,��(�(�6�.�.�/��	
���g���}�5rc���[[Q22Q*o]oUO2oUOU]
2oQoU2oU[	U26ca[[
U2[	U2U*
2oUOUOV#V8*2U2UU2V8*
oJpUO2UOUQOUO22P!)rcrbc3�f �[]2FDo[]2FDoUw�	J
	J	P!3hr2)rr�)r�r(s  r�	gen_sizes�2BufferedWriterTest.check_writes.<locals>.gen_sizes�s&����a����r��A��J�#�!�s�/1r)rur�rrr,�min�nextr"rxrDrr�)	r�intermediate_funcrr3r�r&r�sizesr�s	&&       r�check_writes�BufferedWriterTest.check_writes�s�����s��$�t�+��
�����!�������#��	�����#�h�-���t�E�{�C��M�A�$5�6�D����U�[�[��A�F�);�<�d�C��e�$�
�I�A�
���
�����3�8�8�F�,?�,?�#@�Arc�,�UOQ2P!)c��P!rrFrVs&rr|�0BufferedWriterTest.test_writes.<locals>.<lambda>�s��r�r
r�s&r�test_writes�BufferedWriterTest.test_writes�s�����,�-rc�,�UOQ2P!)c�$�UO2!rr�rVs&rr|�<BufferedWriterTest.test_writes_and_flushes.<locals>.<lambda>�s
�����
rrr�s&r�test_writes_and_flushes�*BufferedWriterTest.test_writes_and_flushes�s�����5�6rc�X�QoUOU2QoUOU2P!)c��UO2oUOU]*]2UOU]*
]2UOU]2P!r2)r�r+�r&rNs& r�_seekabs�:BufferedWriterTest.test_writes_and_seeks.<locals>._seekabs�s?���*�*�,�C��J�J�s�Q�w��"��J�J�s�Q�w��"��J�J�s�A�rc��UO]]2oUO]]2UOP]2UOU]2P!r*)r+rs& r�_seekrel�:BufferedWriterTest.test_writes_and_seeks.<locals>._seekrel�s<���*�*�Q��"�C��J�J�r�1���J�J�r�1���J�J�s�A�rr)rrr s&  r�test_writes_and_seeks�(BufferedWriterTest.test_writes_and_seeks�s,��	�
	
���(�#�	�
	
���(�#rc�,�UOQ2P!)c�B�UOUO22!r)r�r�rVs&rr|�>BufferedWriterTest.test_writes_and_truncates.<locals>.<lambda>�s�����u�z�z�|�(Drrr�s&r�test_writes_and_truncates�,BufferedWriterTest.test_writes_and_truncates�s�����D�Erc���UO2oUOU]2oUOUOQ2]2UOUOQ2]2UO	Q2UOUOQ2]2UO	Q2UOQ2UOQ2UOW]2UOUO2Q2UOUOQ	2]	2UO2oUOUQ
2P!SOcoSOoPo=K�Po=hh9h)rGrSsefghi�ksjklmn�0sopqrwxyz0123456789z'BlockingIOError should have been raisedsabcdefghijklmnopqrwxyzs	ABCDEFGHIs	01234567A)
�MockNonBlockWriterIOrr"rx�block_on�fail�BlockingIOError�characters_written�pop_writtenr)rrr&rj�writtenris&     r�test_write_non_blocking�*BufferedWriterTest.test_write_non_blocking�s*���'�'�)������Q���������W�-�q�1�������X�.��2����T��������X�.��2�	���T��	A��K�K�-�.�
�I�I�?�@�����"�%�������*�%�	'�	
������\�2�A�6��O�O������a��.���#�#�	+��*�*�G��	+�s�*E�E*�E*�E%�%E*c�:�UO2oUOU]2oUOUOQ2]2UOUO	2]2UO]]2UOUOQ2]2UO]]2UOUO
2Q2UOUOQ2]2UO2UOUO
2Q2P!)rFr�sXYsXYcdefs123456sXYcdef123456)r�rr"rxr�r+r�rD�rrr&s&  r�test_write_and_rewind�(BufferedWriterTest.test_write_and_rewinds����l�l�n������Q���������Y�/��3��������q�)�
�
�
�1�a��������U�+�Q�/�
�
�
�1�a����������3�������Y�/��3�
���
���������9rc���UO2oUOU]2oUOQ2UO2UO	QUO
]*2P!�rGr�)rrrxrDr"r��rr�r&s&  r�
test_flush�BufferedWriterTest.test_flushsN�����!�������"��
���F��
���
������!4�!4�Q�!7�8rc���,QNoUO2oUOU]2oUOU2UO2UO	QOUO2Q2P!�rrr�)rrr)rr�
writelinesrDr"rr��rr�r�r&s&   r�test_writelines�"BufferedWriterTest.test_writelines sY��!�����!�������"��
�����
���
�������&�"5�"5�6�	�Brc��[,QN2oUO2oUOU]2oUOU2UO	2UOQO
UO2Q2P!r?)rrrr@rDr"rr�rAs&   r�test_writelines_userlist�+BufferedWriterTest.test_writelines_userlist(s_���*�+�����!�������"��
�����
���
�������&�"5�"5�6�	�Brc��UO2oUOU]2oUO[UO,QN2UO[UOP2UO[UOQ2P!)rG�abcrP)rrrr�r@r;s&  r�test_writelines_error�(BufferedWriterTest.test_writelines_error0sf�����!�������"�����)�U�%5�%5�y�A����)�U�%5�%5�t�<����)�U�%5�%5�u�=rc���UO2oUOU]2oUOQ2=[O2UOQUO]*2P!r:)rrrxrrQr"r�r;s&  r�test_destructor�"BufferedWriterTest.test_destructor7sT�����!�������"��
���F������������!4�!4�Q�!7�8rc��UO[O[O2UO	[OUO
]Q59^tt^2oUO
U]2oUOQ2UOUO]2]2UOUO2]2PPP2UO	[OQ]Q59^tt^2oUOUO2Q2PPP2P!)%fhKe9h)%fhP!9h)rrer�r�r�)r�rr�rwrv�
write_moderrxr"r�r�r�)rrr&r8s&   r�
test_truncate� BufferedWriterTest.test_truncate?s������	�(�(�)�*:�*:�;�
�Y�Y�y�'�'����A�Y�
F�
F�#��G�G�C��O�E��K�K�	�"����U�^�^�A�.��2����U�Z�Z�\�1�-�	G�
�Y�Y�y�'�'���Y�
;�
;�q����Q�V�V�X�v�.�<�
;�G�
F��
<�
;�
;�s%�$A%D&�;!D9�&D6	�/D6	�9E
	�E
	c	��UO[O[O2UO	[OQ29^tt^2oUOQQ*2PPP2,QNoSFD�oUO	[OQUQ59^tt^2oUOQU]**2UO
]2UO2UOUO2U]*2PPP2J�	P!)%fhK�9h)%fhJ�9h)rd��'zr+bre)r�r���)
r�rr�rwrvrxr�r�r"r�)rr8�buffer_sizesr�s&   r�test_truncate_after_write�,BufferedWriterTest.test_truncate_after_writeJs���	
���	�(�(�)�*:�*:�;�
�Y�Y�y�'�'��
.�
.�!�
�G�G�G�e�O�$�/�)��'�K����9�+�+�U�k��J�J�a�����;��?�3�4����q�	��
�
��� � �����;��?�;�
K�J�(�	/�
.��
K�J�J�s%�D#�-A(D6	�#D3	�,D3	�6E
�?E
r`c
��``
`�Qo[[Q22U*o[]],2o]o[2nU[	U26c/[U2oRO
V$VE*2VE*
oJ>=UO[OUO]Q59^tt^2oUOU]2n,n
UU
U1Qko[]2Tt,tFDo[OUQ5MJ	o	o[OU	29^tt^2[ O"Q2PPP2UO%R
QR
*2RO'2PPP2UO[OQ29^tt^2oUO)2o
PPP2[Q2FD.oUO+W
O-[U,22U2J0	[O.[O2P!ttoh)%fhK�9h)%fhK�9h)%fhK�9h[O.[O2h9h)rbrcrec�:�RO2oROU2J%[cP!h9h[coRO	S2gPo=hh9h)T)�popleft�
IndexErrorrxrhr4)rirjr&rk�queues  ���rr8�*BufferedWriterTest.test_threads.<locals>.fts\���	�"�'�$)�M�M�O��"�K�K��N��$.�'� &�'��%���
�
�a�(����s7�;�)�;�	8�8�;�8�;�	A�A�A�Arnrprqr�)rur�rrr,r
r4rvrrwrOrrzr{r	r|r}r~r�r>r�r"rr�)rr�rrr3r�rr8r�r�rir(r&rkr]s&           @@@rr��BufferedWriterTest.test_threads\s����+	/��A��U�3�Z�(�1�,�H��1�b�'�N�E��A��G�E��c�(�m�#��E�{�����X���/�0��	������9�+�+�T�_�_���J�J�c�����Q�����
�@E�R�y�I�y�!�9�+�+�1�5�y��I�%�3�3�G�<�<��J�J�t�$�=�� � ��>��G�I����
�'K�(���9�+�+�T�2�2�a��F�F�H��3��3�Z��� � ������s��!4�a�8� �
���Y�-�-�.��J�<�<��K�J��(3�2��

���Y�-�-�.�s��AI
�A#I
�/)H'�"H�: H'�H	�11H'�"0I
�H:�#AI
�H'�H$
�H$
�H'�'H7	�0H7	�2I
�:I
	�I
	�I
�
&I3c� �UO2oUOU]2oUO[UO]2UO[UO
2UO[UOQ2QUmP!)�r�c��P!rrFrFrrr|�7BufferedWriterTest.test_misbehaved_io.<locals>.<lambda>�r�r)r�rrrar+r�rxr>r$s&  rr��%BufferedWriterTest.test_misbehaved_io�si���$�$�&������q�!�����'�5�:�:�q�1����'�5�:�:�.����'�5�;�;�	�:�#��rc��UO[29^tt^2UOUO2]]2PPP2P!)%fhP!9h�rG�rr�rrr�s&r�test_max_buffer_size_removal�/BufferedWriterTest.test_max_buffer_size_removal�s9��
�
�
�y�
)�
)��G�G�D�N�N�$�a��,�*�
)�
)�
)�s�"A�A	�A	c���UO2oQoV!mUOU2oUOQ2UO[UO
2UO
UO2P!)c��[2grr�)rjs&r�	bad_write�?BufferedWriterTest.test_write_error_on_close.<locals>.bad_write�s	���)�Or�spam)rrxrrrar>rrx)rrrlrjs&   r�test_write_error_on_close�,BufferedWriterTest.test_write_error_on_close�sU���n�n���	��	��G�G�C�L��	��������'�1�7�7�+�������!rc�z�UO2oUOU]2o[OUOQ5oUO2UOO2UO[UOQ2UOUO2UO2P!)rGrnrn)�SlowFlushRawIOrrzr{r>�start�in_flush�waitrrrxrrxr)rr%r&�ts&   r�test_slow_close_from_thread�.BufferedWriterTest.test_slow_close_from_thread�s~���#�#�%������q�!�����E�K�K�0��	���	�
���������*�e�k�k�7�;�������%�	���rrF)#rGrHrIrJrOr�r�r�r�rr
rrr"r'r3r7r<rBrErIrLrPrWr	r�rr�r�r�rhrorwrKrLr�s@rr�r��s������J�B� .�8�
C�	6�B�(.�7�$�F�/�6:�9�C�C�>�9�	/�<�$�0�0�2����u�%�,/�&�3�,/�\#�-�"��0�0�2�	�3�	rr�c�X`�\sQsQsn\O
sQsQsQs	Qs
QsQsUs
P!)�CBufferedWriterTest�c���UO2oUOU2oUO[UOU]Q5UO[UO
Q2UO[UOUQQ5UO[UO
Q2UO[UOUPQ5UO[UO
Q2P!)rr�r�r�)rrrrr�rxr$s&  rr��'CBufferedWriterTest.test_initialization�s������ �����������*�e�n�n�e���K����*�e�k�k�6�:����*�e�n�n�e���M����*�e�k�k�6�:����*�e�n�n�e���L����*�e�k�k�6�:rc���UO[O[O2[O
29^tt^2[OQ[2UO[OQ2oUOU2oUOQ2V"m[OU2o=[O2PPP2UO!W2U2UO#[OQ29^tt^2oUO%UO'2Q2PPP2P!)%fhKz9h)%fhP!9h)r�r�s123xxxr�)r�rr�rwr�r�r�r�r�rrxr�r�r�rrQrUrvr"r�r�s&   rr��+CBufferedWriterTest.test_garbage_collection�s���	
���	�(�(�)�*:�*:�;��
$�
$�
&�
&��!�!�(�O�<��K�K�	� 0� 0�%�8�E������A�
�G�G�I���C����Q��B����� �'�	
���"�$��#�
�Y�Y�y�'�'��
.�
.�!����Q�V�V�X�y�1�/�
.�'�
&��/�
.�
.�s%�
BE�$!E"�E	�E	�"E3	�+E3	c���UO[Q29^tt^2UOUO2QQQ2PPP2P!)%fhP!9h)�BufferedWriterr�r�r�s&rr��#CBufferedWriterTest.test_args_error�r�r�c� �QQUO2oUOU22oUO[UOQ2UO[UO
2UO[UO2P!)c��\sQsQs\sQsP!)�PCBufferedWriterTest.test_non_boolean_closed_attr.<locals>.MockRawIOWithoutClosed��rF)rGrHrIrJ�NotImplementedrxrKrFrr�MockRawIOWithoutClosedr��s��#�Frr�r)rrrr�rxrDr>)rr�r&s&  r�test_non_boolean_closed_attr�0CBufferedWriterTest.test_non_boolean_closed_attr�sd��	$�T�^�^�	$����.�0�1�����)�U�[�[�#�6����)�U�[�[�1����)�U�[�[�1rc�&�QQUO2oUOU22oUO[QUOQ2UO[QUO
2UO[QUO2P!)c�2`�\sQsQsn\Q2sQsUsP!)�JCBufferedWriterTest.test_closed_attr_raises.<locals>.MockRawIOClosedRaises��c��[Q2g)�test)rr�s&rrx�QCBufferedWriterTest.test_closed_attr_raises.<locals>.MockRawIOClosedRaises.closed�s
�� ��(�(rrF)rGrHrIrJ�propertyrxrKrLr�s@r�MockRawIOClosedRaisesr��s����
�
)��
)rr�r�r)rrr�rrxrDr>)rr�r&s&  r�test_closed_attr_raises�+CBufferedWriterTest.test_closed_attr_raises�sj��	)�D�N�N�	)�
���-�/�0�����z�6�5�;�;��D����z�6�5�;�;�?����z�6�5�;�;�?rrF)rGrHrIrJr�r�rr�r�r�r�r�rKrLr�s@rrzrz�s0����	�	�	�B�;�2�*6�
2�	@�	@rrzc�0�\sQsQs\O
sQsP!)�PyBufferedWriterTest��rF)rGrHrIrJr�r�rrKrFrrr�r��r�rr�c�`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
QsQ
sQsQsQsQsQsQsQsQsQsQsUsP!)�BufferedRWPairTest��c��UOUO2UO22oUOUO2P!r)rrr�rx�r�pairs& rr��#BufferedRWPairTest.test_constructor�s2���w�w�t�~�~�'����)9�:��������%rc��UOOUO2o=UOOUO2oUO[[1QUO
]2UO[[1QUOQ2UOUO2UO22UOUO]2Q2UOUO
Q2]2P!r�)
rr�r�rr7r�rxr�rr"r�s& rr��%BufferedRWPairTest.test_uninitialized�s����w�w���t�w�w�'����w�w���t�w�w�'�����
�N�;�?�#�y�y�!�	-�	
���
�N�;�?�#�z�z�3�	0�	
�
�
�d�n�n�&����(8�9�������1��s�+�������C��!�,rc��UOUO2UO22oUOUOUO2P!r)rrrr�rr�s& rr�BufferedRWPairTest.test_detachs:���w�w�t�~�~�'����)9�:�����$�3�3�T�[�[�Arc���UO[29^tt^2UOUO2UO2]]2PPP2P!)%fhP!9hrfrgr�s&r�(test_constructor_max_buffer_size_removal�;BufferedRWPairTest.test_constructor_max_buffer_size_removal	sB��
�
�
�y�
)�
)��G�G�D�N�N�$�d�n�n�&6��2�>�*�
)�
)�
)�s�1A�A+	�#A+	c��QQUO2oUO[UOU2UO22P!)c�(`�\sQsQsnQsQsUsP!)�JBufferedRWPairTest.test_constructor_with_not_readable.<locals>.NotReadableic��P
!�FrFr�s&r�readable�SBufferedRWPairTest.test_constructor_with_not_readable.<locals>.NotReadable.readable���rrF)rGrHrIrJr�rKrLr�s@r�NotReadabler������
�
rr��rrrar)rr�s& r�"test_constructor_with_not_readable�5BufferedRWPairTest.test_constructor_with_not_readable
s5��	�$�.�.�	�	
���'�4�7�7�K�M�4�>�>�;K�Lrc��QQUO2oUO[UOUO2U22P!)c�(`�\sQsQsnQsQsUsP!)�LBufferedRWPairTest.test_constructor_with_not_writeable.<locals>.NotWriteableic��P
!r�rFr�s&rr��UBufferedRWPairTest.test_constructor_with_not_writeable.<locals>.NotWriteable.writabler�rrF)rGrHrIrJr�rKrLr�s@r�NotWriteabler�r�rr�r�)rr�s& r�#test_constructor_with_not_writeable�6BufferedRWPairTest.test_constructor_with_not_writeables5��	�4�>�>�	�	
���'�4�7�7�D�N�N�,<�l�n�Mrc���UOUOQ2UO22oUOUO	]2Q2UOUO	]2Q2UOUO	2Q2UOUOQ2UO22oUOUO	P2Q2P!)r�r�rr)rr�rr"r�r�s& rr�BufferedRWPairTest.test_reads����w�w�t�|�|�I�.����0@�A��������1��v�.�������1��t�,��������e�,��w�w�t�|�|�F�+�T�^�^�-=�>��������4��&�1rc�`�U1QkoROU2O2,QN2ROU2O2,QN2ROU2O]2QQ,2P!)c�d:�ROROQ2RO22!)s	abc
def
h)rr�rr�s�rr|�3BufferedRWPairTest.test_readlines.<locals>.<lambda>%s ���t�w�w�t�|�|�N�;�T�^�^�=M�Nrr<�def
)r<r�r�r@r�sf rrB�!BufferedRWPairTest.test_readlines$sb���N�������)�)�+�-G�H������)�)�+�-G�H������)�)�!�,�x��.B�Crc���UOUOQ2UO22oUOUO	]2Q2UOUO	2Q2P!)r�r�r�)rr�rr"r
r�s& rr�BufferedRWPairTest.test_read1*sR���w�w�t�|�|�I�.����0@�A��������A���/��������v�.rc
��QFD�oUOU29^tt^2UOUOQ2UO22o[	Q2oUO[
V!2U2]2UO[U2Q2PPP2J�	[O2P!)%fhJ�9h)rr�sabcde)rr"s)
r�rr�rr
r"�getattrrurrQ)r�methodr�r2s&   rr� BufferedRWPairTest.test_readinto2s���/�F����f�%�%��w�w�t�|�|�I�6����8H�I�� ��+��� � ���!6�t�!<�a�@�� � ��t��h�7�&�%�0�	����&�%�%�s�A7B;	�;C
�C
c�H�UO2oUOUO2U2oUOQ2UO2[	Q2oUOU2QUQ$UO2UOUOQQ,2P!)r�r�r�rw)rrrxrDrr"r�)r�wr�r�s&   rr��BufferedRWPairTest.test_write?s{���N�N����w�w�t�~�~�'��+���
�
�6���
�
���6�"���
�
�6����q�	��
�
��������&�&�)9�:rc���UOUOQ2UO22oUOUO	]2Q2UOUO
]2Q2P!)r�r�)rr�rrr!r"r�r�s& r�	test_peek�BufferedRWPairTest.test_peekKsR���w�w�t�|�|�I�.����0@�A�����d�i�i��l�F�3�������1��v�.rc��UOUO2UO22oUOUO22P!r)rrrr�r�s& r�
test_readable� BufferedRWPairTest.test_readableQ�2���w�w�t�~�~�'����)9�:������
�
��(rc��UOUO2UO22oUOUO22P!r)rrrr�r�s& r�test_writeable�!BufferedRWPairTest.test_writeableUr�rc��UOUO2UO22oUOUO22P!r)rrr��seekabler�s& r�
test_seekable� BufferedRWPairTest.test_seekableYs6���w�w�t�~�~�'����)9�:���������)rc���UOUO2UO22oUOUO2UO	2UOUO2P!r)rrr�rxr>rr�s& r�test_close_and_closed�(BufferedRWPairTest.test_close_and_closedbsK���w�w�t�~�~�'����)9�:��������%��
�
��������$rc�
�QoUO2oVmUO2oUOV#2oUO[29^tt^2oUO2PPP2UOQ[
WO22UOUO2UOUO2UOUO2QUmP!)%fhK�9h)c��[P!r��reader_non_existingrFrr�reader_close�IBufferedRWPairTest.test_reader_close_error_on_close.<locals>.reader_closei���rr�c��P!rrFrFrrr|�EBufferedRWPairTest.test_reader_close_error_on_close.<locals>.<lambda>w���tr)rr>rrr�r�r�r�rrxr�)rr��readerr�r�r�s&     r� test_reader_close_error_on_close�3BufferedRWPairTest.test_reader_close_error_on_closehs���	 ����!��#�����!���w�w�v�&��
�
�
�y�
)�
)�S��J�J�L�*��
�
�+�S����-?�@�������$�������'�����
�
�&�$���*�
)�s�C2�2D	�;D	c	�N�QoUO2oUO2oVmUOV#2oUO[29^tt^2oUO2PPP2UOQ[
WO22UOUO2UOUO2UOUO2QUmPo[O29^tt^2[O29^tt^2Po[O2PPP2[O2PPP2P!)%fhCK9h)%fhKC9h)%fhP!9h)c��[P!r��writer_non_existingrFrr�writer_close�IBufferedRWPairTest.test_writer_close_error_on_close.<locals>.writer_closezr�rr�c��P!rrFrFrrr|�EBufferedRWPairTest.test_writer_close_error_on_close.<locals>.<lambda>�r�r)rr>rrr�r�r�r�r�rxrrr]rQ)rr�r�r�r�r�s&     r� test_writer_close_error_on_close�3BufferedRWPairTest.test_writer_close_error_on_closeys��	 ����!�����!��#���w�w�v�&��
�
�
�y�
)�
)�S��J�J�L�*��
�
�+�S����-?�@�������%�����
�
�&�������'�$������
/�
/�
1�
1��3�3�5�5����"�"�$�6�
��� �2�
1�*�
)�
)��6�5��2�
1�
1�sB�E,�F�-F	�F�,E=	�5E=	�F
�	F
�F�F$	�F$	c���QoQoUO2oVmUO2oV$mUOV42oUO[29^tt^2oUO2PPP2UOQ[
WO22UOUOO[2UOQ[
UOO22UOUO2UOUO2UOUO2QUmQUmP!)%fhK�9h)c��[P!rr�rFrrr��PBufferedRWPairTest.test_reader_writer_close_error_on_close.<locals>.reader_close�r�rc��[P!rr�rFrrr��PBufferedRWPairTest.test_reader_writer_close_error_on_close.<locals>.writer_close�r�rr�r�c��P!rrFrFrrr|�LBufferedRWPairTest.test_reader_writer_close_error_on_close.<locals>.<lambda>�r�rc��P!rrFrFrrr|r��r�r)rr>rrr�r�r�r�r�r�r�rx)rr�r�r�r�r�r�s&      r�'test_reader_writer_close_error_on_close�:BufferedRWPairTest.test_reader_writer_close_error_on_close�s���	 �	 ����!��#�����!��#���w�w�v�&��
�
�
�y�
)�
)�S��J�J�L�*��
�
�+�S����-?�@����c�m�m�7�7��C��
�
�+�S����1J�1J�-K�L�������%�������'�������'�$���#���*�
)�s�"E�E,	�%E,	c��QQUO2oUOUP
2UP
22oUOUO22UOUP	2UP
22oUO	UO22UOUP
2UP	22oUO	UO22UOUP	2UP	22oUO	UO22P!)c�:``�\sQsQsnU1QksQsQsUsU9s!)�8BufferedRWPairTest.test_isatty.<locals>.SelectableIsAttyi�c�2:�[RU_2VmP!r)r5r��_isatty)r�isattyr9s&&�rr��ABufferedRWPairTest.test_isatty.<locals>.SelectableIsAtty.__init__�s����� �"�%�rc��UO!r�rr�s&rr�?BufferedRWPairTest.test_isatty.<locals>.SelectableIsAtty.isatty�s���|�|�#rr)	rGrHrIrJr�rrKrLrM)r9rNs@@r�SelectableIsAttyr�s����
&�
$�
$rr)rrr�rr)rrr�s&  r�test_isatty�BufferedRWPairTest.test_isatty�s���	$�t�~�~�	$��w�w�'��.�0@��0G�H���������'��w�w�'��-�/?��/F�G��������
�&��w�w�'��.�0@��0F�G��������
�&��w�w�'��-�/?��/E�F��������
�&rc��UOUO2UO22o[OU2oPoPoP!r)rrr�r�)r�brwr�s&  r�test_weakref_clearing�(BufferedRWPairTest.test_weakref_clearing�s8���g�g�d�n�n�&����(8�9���k�k�#������rrF)rGrHrIrJr�r�rr�r�r�rrBrrr�r�r�r�r�r�r�r�r�r	r
rKrLr�s@rr�r��sw����&�-�B�?�M�N�2�D�/��
;�/�)�)�*�%�$�"!�4$�.'�*�rr�c�0�\sQsQs\O
sQsP!)�CBufferedRWPairTesti�rF)rGrHrIrJr��BufferedRWPairrrKrFrrrr�s
��	�	�	�Brrc�0�\sQsQs\O
sQsP!)�PyBufferedRWPairTesti�rF)rGrHrIrJr�rrrKrFrrrr�r�rrc�`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
QsQ
sQsQsQsQsQsQsQsQsQsQsQsPsPsQsUsP!)�BufferedRandomTesti�zrb+zwb+c�\�[OU2[OU2P!r)r�r�r�r�s&rr��#BufferedRandomTest.test_constructor�s���+�+�D�1��+�+�D�1rc�\�[OU2[OU2P!r)r�r�r�r�s&rr��%BufferedRandomTest.test_uninitialized�����-�-�d�3��-�-�d�3rc��UOQ2oUOU]2oUOQUO]22UO	Q2UO	Q2UOUO2UOQUO22UOQUO]*2P!)�asdf�ghjk�assdddseeesdddeee)rr)rrr"r�rxr�r��rr�rws&  r�test_read_and_write�&BufferedRandomTest.test_read_and_write�s����n�n�/�0��
�W�W�S�!�_����������
�+�
�����
���������)�)�*�����"�'�'�)�,�����C�$4�$4�Q�$7�8rc��UOQ2oUOU2oUOQUO]22UO]UO	22UO]]2UOQUO]22UO
Q2UO]]2UOQUO22UO]	UO	22UOQ]2UO]UO	22UO]]2UO]UO	22UOQUO]22UO2UOQUO22UO[UO
Q2P!)s	asdfghjklrrs123fs	asdf123flsflg���)r�rr"r�r�r+rxrDr�rr�rs&  r�test_seek_and_tell�%BufferedRandomTest.test_seek_and_tell�sH���l�l�<�(��
�W�W�S�\����������
�+�����B�G�G�I�&�
����1�
�����"�'�'�!�*�-�
�����
����1�
�����r�w�w�y�1�����B�G�G�I�&�
����A������B�G�G�I�&�
����1�
�����B�G�G�I�&����������,�
���
�����s�|�|�~�6����)�R�W�W�c�2rc�^�UOQ2oUOU2oUOQUU]22UOQ2UOQUU]22UO]UO	22UO2UO]UO	22UOQUU22UO
]]2UOQ2UO2UO
]]2UOQUU]22P!)rErr�rr�sXYZ)r�rr"rxr�rDr+)r�	read_funcrr&s&&  r�check_flush_and_read�'BufferedRandomTest.check_flush_and_read�s����l�l�<�(������������	�%�� 3�4�
���E������	�%�� 3�4�����E�J�J�L�)�
���
�����E�J�J�L�)������5�!1�2�����A���	�	�&��
���
�
�
�
�1�a�������5�!�!4�5rc�,�UOQ2P!)c�&�UOU!r)r�)r&r�s&*rr|�8BufferedRandomTest.test_flush_and_read.<locals>.<lambda>
s
��u�z�z�4�7Hr�r)r�s&r�test_flush_and_read�&BufferedRandomTest.test_flush_and_reads���!�!�"H�Irc�4�QQkoUOU2P!)r3c��[U]6�cSLQ2oUOU2oUOU2UO2!)ri')rr�resize�
take_bytes�r&r3rjs&& r�	_readinto�=BufferedRandomTest.test_flush_and_readinto.<locals>._readintos9���q�A�v�!�4�0�A����q�!�A�
�H�H�Q�K��<�<�>�!r����r.)rr6s& r�test_flush_and_readinto�*BufferedRandomTest.test_flush_and_readintos��	"�
	
�!�!�)�,rc�4�QQkoUOU2P!)r3c�x�UOU2oUP6wcUPUoUO[U2]2U!r2)r!r+r,r5s&& r�_peek�5BufferedRandomTest.test_flush_and_peek.<locals>._peeks:���
�
�1�
�A��B�w��b�q�E���J�J�s�1�v�q�!��Hrr8r.�rr>s& r�test_flush_and_peek�&BufferedRandomTest.test_flush_and_peeks��	�	
�!�!�%�(rc�t�UOQ2oUOU2oUOQ2UO2UOQ2UO2UO	]]2UOQUO
22UOQUO22P!)rEs123s45s	12345fghi)r�rrxrDr+r"r�r�r6s&  r�test_flush_and_write�'BufferedRandomTest.test_flush_and_write"s����l�l�<�(��������
���F��
���
�
���E��
���
�
�
�
�1�a������s�|�|�~�6�����u�z�z�|�4rc�\�[OU2[OU2P!r)r�r�r�r�s&rr��BufferedRandomTest.test_threads.s���'�'��-��'�'��-rc�X�QoUOU2QoUOU2P!)c�*�UO]2P!r2)r!rVs&rr>�6BufferedRandomTest.test_writes_and_peek.<locals>._peek3s
���J�J�q�Mrc��UO2oUOP]2UO]2UOU]2P!r2)r�r+r!rs& rr>rJ6s4���*�*�,�C��J�J�r�1���J�J�q�M��J�J�s�A�rrr@s& r�test_writes_and_peek�'BufferedRandomTest.test_writes_and_peek2s*��	����%� �	�
	
���%� rc�0�QoUOU2P!)c�N�UOP]2UO]2P!r2)r+r�rVs&r�_read�7BufferedRandomTest.test_writes_and_reads.<locals>._read>s���J�J�r�1���J�J�q�Mrr�rrPs& r�test_writes_and_reads�(BufferedRandomTest.test_writes_and_reads=s��	�	
���%� rc�0�QoUOU2P!)c�N�UOP]2UO]2P!r2)r+r
rVs&r�_read1�9BufferedRandomTest.test_writes_and_read1s.<locals>._read1Ds���J�J�r�1���K�K��Nrr)rrWs& r�test_writes_and_read1s�)BufferedRandomTest.test_writes_and_read1sCs��	�	
���&�!rc�0�QoUOU2P!)c�`�UOP]2UO[]22P!r2)r+rrrVs&rrP�;BufferedRandomTest.test_writes_and_readintos.<locals>._readJs ���J�J�r�1���N�N�9�Q�<�(rrrRs& r�test_writes_and_readintos�,BufferedRandomTest.test_writes_and_readintosIs��	)�	
���%� rc	�^�QFCD#oUOQ2oUOU]2oUOUO]2Q2UOUO	2]2UOQU*2UOUO	2U]*2UO
2UOUO	2U]*2UO2oUOUQQU**Q]	U*
**2CJ&	P!)r3r��B)r3rar�)r�rr"r�r�rxrDr�)r�overwrite_sizerr&ris&    r�test_write_after_readahead�-BufferedRandomTest.test_write_after_readaheadOs���%�N��,�,�y�)�C��G�G�C��O�E����U�Z�Z��]�D�1����U�Z�Z�\�1�-��K�K��~�-�.����U�Z�Z�\�>�A�+=�>�
�K�K�M����U�Z�Z�\�>�A�+=�>�����A����Q��t�n�,�,�t�q�>�7I�/J�J�
L�%rc�v�QoQo[][U22FD�o[U[U22FD{oUOU2oUOU]d2oUVcU2UO	2[U2o]Vt$]Vs$UO
UO2UQV41*2J}	J�	P!)c���V!6�fPgUOU2UOV!*
2UOQ2UOU2UOQ2P!)��)r+r�rx)r&�pos1�pos2s&&&r�mutate�:BufferedRandomTest.test_write_rewind_write.<locals>.mutateesL���<��<��J�J�t���J�J�t�{�#��K�K�� �
�J�J�t���K�K�� rs�����zfailed result for i=%d, j=%d)r�r,r�rrDrr"r�)rrkrjr(�jrr&�expecteds&       r�test_write_rewind_write�*BufferedRandomTest.test_write_rewind_writecs���		!�
$���q�#�a�&�!�A��1�c�!�f�%���l�l�1�o������S�)���u��#����
�$�Q�<��������� � ������!?�1�&�!H�J�&�"rc�R�UOQ2oUOU]d2oUOUO]2Q2UOUO	2]2UOUOQ2]2UOUO	2]2P!)r�sAAsBBr�)r�rr"r�r�rxr6s&  r�!test_truncate_after_read_or_write�4BufferedRandomTest.test_truncate_after_read_or_write}s���l�l�9�%������S�!��������A���.�������)�1�-�������U�+�Q�/�������)�1�-rc�\�[OU2[OU2P!r)r�r�r�r�s&rr��%BufferedRandomTest.test_misbehaved_io�rrc	���UOQ29^tt^2oUOU]d29^tt^2oUOQ2UOUO	]2Q2UOQ2UOUO]2Q2UOQ2[
]2oUOU2UOUQ2UOQ2UOUO]2Q2UO2UOUO2Q	2PPP2PPP2UOQ
29^tt^2oUOU]d29^tt^2oUOUO	]2Q2UOQ2UOUO	]2Q2UO2UOUO2Q
2PPP2PPP2P!)%fhK�9h)%fhK�9h)%fhK@9h)%fhP!9h)sabcdefghr�r
�2r�3�f�4r�s1b2d3f4hr�r	rsa2c)r�rrxr"r�r
rrr!rDr�)rrr8rs&   r�test_interleaved_read_write�.BufferedRandomTest.test_interleaved_read_write�s���
�\�\�+�
&�
&�#�����c�"�"�a�����
�� � ������D�1�����
�� � ������T�2�����
���l���
�
�3��� � ��d�+�����
�� � ������D�1����	�� � ������=�#�'��\�\�&�
!�
!�S�����c�"�"�a�� � ������D�1�����
�� � ������D�1����	�� � ������8�#�"�
!�#�"��'�
&�� #�"��"�
!�
!�s`�H)�DH	�<H)�%I�BH<	�I�H&
�H&
�!H)�)H9	�2H9	�<I
�I
�I�I 	�I 	c	���UOQ29^tt^2oUOU]29^tt^2oUOQ2UOUO	]2Q2UO2UOUO
2Q2PPP2PPP2UOQ29^tt^2oUOU]29^tt^2oUOQ2UOUO	2Q2UO2UOUO
2Q2PPP2PPP2UOQ29^tt^2oUOU]29^tt^2oUOQ2UOUO	]d2Q*Q2UO2UOUO
2Q2PPP2PPP2P!)%fhCKo9h)%fhCK{9h)%fhK�9h)%fhK�9h)%fhKh9h)%fhP!9h)r�r�r
s1bcdefsbcd:NrCN)r�rrxr"r
rDr��rrr8s&  r�test_read1_after_write�)BufferedRandomTest.test_read1_after_write�s���
�\�\�)�
$�
$������a���A�����
�� � ������T�2����	�� � ������;�	!�%��\�\�)�
$�
$������a���A�����
�� � �����F�3����	�� � ������;�	!�%��\�\�)�
$�
$������a���A�����
�� � ������b�!1�6�:����	�� � ������;�
!�%�
$�!����%�
$�
$��!���%�
$��!���%�
$�
$�s��H�A#G?	�H�H:�A"H'	�?H:�(I �A*I
	�-I �?H
�H
�
	H�H$	�H$	�'H7
�0H7
�2H:�:I
	�I
	�
I
�I
�I � I1	�)I1	c	�d�UOQ29^tt^2oUOU29^tt^2oUOQ2UOUO	2Q2UOQ2UOUO	2Q2UOQ2UOUO	2Q2UO2UOUO
2Q2PPP2PPP2P!)%fhK9h)%fhP!9h)s
ab
cdef
g
r�sb
rwr�rx�
s
1b
2def
3
)r�rrxr"r�rDr�r~s&  r�test_interleaved_readline_write�2BufferedRandomTest.test_interleaved_readline_write�s���
�\�\�*�
+�
+�s������������
�� � �����v�6�����
�� � �����x�8�����
�� � �����u�5����	�� � �����1A�B��,�
+����,�
+�
+�s/�D�CD	�9D�D
�D
�D�D/	�'D/	rF)rGrHrIrJryrOr�r�r!r%r)r/r:rArDr�rLrSrYr^rcrorrr�r{rr�r�r�rKrLr�s@rrr�s������I��J�2�4�	9�3�.6�$J�-�	)�
5�.�	!�!�"�!�L�(J�4.�4�9�2<�,
C��O�"&�rrc�F`�\sQsQsn\O
sQsQsQs	Us
P!)�CBufferedRandomTesti�c�\�[OU2[OU2P!r)r�r�rzr�s&rr��+CBufferedRandomTest.test_garbage_collection�s���3�3�D�9��3�3�D�9rc���UO[Q29^tt^2UOUO2QQQ2PPP2P!)%fhP!9h)�BufferedRandomr�r�r�s&rr��#CBufferedRandomTest.test_args_error�r�r�rF)rGrHrIrJr�r�rr�r�rKrLr�s@rr�r��s����	�	�	�B�:�6�6rr�c�0�\sQsQs\O
sQsP!)�PyBufferedRandomTesti�rF)rGrHrIrJr�r�rrKrFrrr�r��r�rr��c�:`�\sQsQsnQsQsQsQsQsUs	P!)�BufferSizeTesti�c���[O[O2UO[OQ2oUO	U2UO	Q2UO	U2UO2UO[OQ2oUO
2oUOV1Q*2UO
2oUOV12UO
2oUOU2UO2[O[O2P![O[O2h9h)rdr�r�)	rr�rwrvrxr>r�r"r�)rrir8�lines&&  r�try_one�BufferSizeTest.try_one�s���
	����)�)�*�
�I�I�i�&�&��-��	/�
�G�G�A�J�
�G�G�E�N�
�G�G�A�J�
�G�G�I��	�	�)�*�*�D�1�A��:�:�<�D����T�u�9�-��:�:�<�D����T�%��:�:�<�D����T�"�
�G�G�I����Y�-�-�.��I���Y�-�-�.�s
�CE
�
&E0c�&�[FD�o[U[U22vq4V*UPU*oUO[U2U2UO	U2UO	UQ*2UO	UPP2J�	P!)Nr))�lengths�divmodr,r"r�)r�pattern�length�q�r�
teststrings&&    r�	drive_one�BufferSizeTest.drive_onesw���g�F��&�#�g�,�/�D�A� ��w�r��{�2�J����S��_�f�5��L�L��$��L�L��d�*�+��L�L��C�R��)�rc�*�UOQ2P!)s1234567890�r�r�s&r�
test_primepat�BufferSizeTest.test_primepats��	
���9�:rc�*�UOQ2P!)rSs�r�r�s&r�test_nullpat�BufferSizeTest.test_nullpats�����|�$rrF)
rGrHrIrJr�r�r�r�rKrLr�s@rr�r��s����/�6*�;�
%�%rr�c�0�\sQsQs\O
sQsP!)�CBufferSizeTestirF)rGrHrIrJr�rvrKrFrrr�r�s��
�7�7�Drr�c�<�\sQsQs\\O2sQsP!)�PyBufferSizeTestirF)rGrHrIrJ�staticmethodr�rvrKrFrrr�r�s����	�	�"�Drr��__main__)�rbr�ir�r�rTi@i�ii@B)3r+r�rsr�rzr}r�r�r��collectionsrr�	itertoolsrrr�r�test.supportrrr	�utilsr
rrr��_pyior�rr�r�r�r�r�rzr�r�rrrr�r�rrr�r�r��TestCaser�r�rG�mainrFrr�<module>r�s���
�
�
������'�"��E�E�3�3�
��{�{�|5�5�,L6�,�L6�^
K3�,�j�)�K3�\�-�z��d�,�d�N	:@�,�j�)�:@�z�-�z��R�R�h�,�i���-�z��}&�+�-?�}&�@
6�,�j�)�
6��-�z���u�Q��}�
�!?�?��0%�0%�f�n�h�&7�&7��#�~�x�'8�'8�#��z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit