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:/Python313/Lib/test/test_asyncio/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python313/Lib/test/test_asyncio/__pycache__/test_proactor_events.cpython-313.pyc
�

��i�����SrSSKrSSKrSSKrSSKrSSKJr SSKrSSKJr SSKJ	r	 SSKJ
r
 SSKJr SSKJr SS	K
Jr SS
K
Jr SSKJr SrS
r"SS\R*5r"SS\R*5r"SS\R*5r\R2"\R4S:gS5"SS\R*55r\S:Xa\R:"5 gg)zTests for proactor_events.py�N)�mock)�BaseProactorEventLoop)�_ProactorSocketTransport)�_ProactorWritePipeTransport)�_ProactorDuplexPipeTransport)�_ProactorDatagramTransport)�	os_helper)�
socket_helper)�utilsc�0�[R"S5 g�N)�asyncio�set_event_loop_policy���;C:\Python313\\Lib\test\test_asyncio\test_proactor_events.py�tearDownModulers���!�!�$�'rc�b�URcgURR5 SUlgr
)�_sock�close)�	transports r�close_transportrs(�������
�O�O�����I�Orc��^�\rSrSrU4SjrS1SjrSrSrSr\	R"\RRS5S5rS	rS
rSrSrS
rSrSrSrSr\R2"S5S5rSrSrSrSrSrSr Sr!\R2"S5S5r"Sr#Sr$Sr%S r&S!r'S"r(S#r)S$r*S%r+S&r,S'r-S(r.S)r/S*r0S+r1S,r2S-r3S.r4S/r5S0r6U=r7$)2�ProactorSocketTransportTests�!c�>�[TU]5 UR5UlUR	URR
5 [R"5UlURURl	[R"[R5Ul[R"[R5UlSUlg)Ni)�super�setUp�
new_test_loop�loop�
addCleanuprr�Mock�proactor�	_proactor�
test_utils�make_test_protocolr�Protocol�protocol�socket�sock�buffer_size��self�	__class__s �rr�"ProactorSocketTransportTests.setUp#s����
��
���&�&�(��	�����	�	���(��	�	���
�"�m�m��	�	��"�5�5�g�6F�6F�G��
��I�I�f�m�m�,��	� ��rc��[URURURUS9nUR	[
U5 U$�N)�waiter)rr r*r(r!r)r-r2rs   r�socket_transport�-ProactorSocketTransportTests.socket_transport-s6��,�T�Y�Y��	�	�-1�]�]�6�K�	������3��rc��URR5nURUS9n[R"UR5 URUR
55 URRU5 URRRUR[UR55 gr1)r �
create_futurer3r%�run_briefly�assertIsNone�resultr(�connection_mader#�	recv_into�assert_called_withr*�	bytearrayr+�r-�fut�trs   r�	test_ctor�&ProactorSocketTransportTests.test_ctor3s����i�i�%�%�'��
�
"�
"�#�
"�
.�����t�y�y�)����#�*�*�,�'��
�
�%�%�b�)��
�
���2�2�4�9�9�i��HX�HX�>Y�Zrc��UR5nUR5 URRRRUR[UR55 URURRR5 URURRR5 gr
)r3�
_loop_readingr r$r;r<r*r=r+�assertFalser(�
data_received�called�eof_received�r-r@s  r�test_loop_reading�.ProactorSocketTransportTests.test_loop_reading;s���
�
"�
"�
$��
�����	�	���%�%�8�8����I�d�N^�N^�D_�`�������4�4�;�;�<�������3�3�:�:�;rc�p�SnURR5nUR[U55 UR	5nX#lXRS[U5&URU5 [UR5nXS[U5&URRRRURU5 URRRU5 UR!URRR"R$S[&5 g)N�datar)r r6�
set_result�lenr3�	_read_fut�_datarDr=r+r$r;r<r*r(rF�assertIsInstance�	call_args�args�bytes)r-�buf�resr@�
called_bufs     r�test_loop_reading_data�3ProactorSocketTransportTests.test_loop_reading_dataBs������i�i�%�%�'�����s�3�x� �
�
"�
"�
$����!����#�c�(��
������t�/�/�0�
� #�9�C��H���	�	���%�%�8�8����J�O��
�
�#�#�6�6�s�;�	
���d�m�m�9�9�C�C�H�H��K�U�Sr�)Assertions are disabled in optimized modec�8�URR5nURS5 UR5nUR	[
URU5 [R"5Ul	Xl
UR
U5 URURRRR5 URUR R"R5 URURR5 g�Nr)r r6rNr3�assertRaises�AssertionErrorrDrr"rrPrEr$r;rG�
assertTruer(rH�r-rWr@s   r�test_loop_reading_no_data�6ProactorSocketTransportTests.test_loop_reading_no_dataSs����i�i�%�%�'�����q��
�
"�
"�
$�����.�"�*:�*:�C�@��9�9�;�����
�����������,�,�6�6�=�=�>�����
�
�2�2�9�9�:���������(rc��[5=oRRRlUR5n[R"5UlUR5 URRUS5 g�Nz"Fatal read error on pipe transport)�ConnectionAbortedErrorr r$r;�side_effectr3rr"�_fatal_errorrDr<�r-�errr@s   r�test_loop_reading_aborted�6ProactorSocketTransportTests.test_loop_reading_abortedbs`��:P�:R�R��i�i�!�!�+�+�7�
�
"�
"�
$���)�)�+���
����
���*�*��@�	Brc�*�[5URRRlUR5nSUl[R"5Ul	UR5 URURR5 g�NT)
rfr r$r;rgr3�_closingrr"rhrDrErGrIs  r�!test_loop_reading_aborted_closing�>ProactorSocketTransportTests.test_loop_reading_aborted_closinglsc��4J�4L��	�	���%�%�1�
�
"�
"�
$������)�)�+���
����������/�/�0rc�*�[5URRRlUR5nSUl[R"5Ul	UR5 URURR5 g�NF)
rfr r$r;rgr3rorr"rhrDr`rGrIs  r�"test_loop_reading_aborted_is_fatal�?ProactorSocketTransportTests.test_loop_reading_aborted_is_fatalusa��4J�4L��	�	���%�%�1�
�
"�
"�
$������)�)�+���
����������.�.�/rc��[5=oRRRlUR5nSUl[R"5Ul	[R"5Ul
UR5 URURR5 URRU5 grs)�ConnectionResetErrorr r$r;rgr3rorr"rh�_force_closerDrErGr<ris   r�!test_loop_reading_conn_reset_lost�>ProactorSocketTransportTests.test_loop_reading_conn_reset_lost}s���:N�:P�P��i�i�!�!�+�+�7�
�
"�
"�
$������)�)�+����)�)�+���
����������/�/�0�
���*�*�3�/rc��[5=oRRRlUR5n[R"5UlUR5 URRUS5 gre)�OSErrorr r$r;rgr3rr"rhrDr<ris   r�test_loop_reading_exception�8ProactorSocketTransportTests.test_loop_reading_exception�s_��;B�9�E��i�i�!�!�+�+�7�
�
"�
"�
$���)�)�+���
����
���*�*��@�	Brc���UR5n[R"5UlUR	S5 URURS5 URRSS9 g)NrM)�data)r3rr"�
_loop_writing�write�assertEqual�_bufferr<rIs  r�
test_write�'ProactorSocketTransportTests.test_write�sU��
�
"�
"�
$���9�9�;���
�����������T�*�
���+�+��+�9rc�|�UR5nURS5 URUR5 g)Nr)r3r�rEr�rIs  r�test_write_no_data�/ProactorSocketTransportTests.test_write_no_data�s-��
�
"�
"�
$��
����
�������$rc�0�UR5n[R"5Ul[R"5UlURS5 UR
URS5 URURR5 g�NrM)
r3rr"�
_write_futr�r�r�r�rErGrIs  r�test_write_more�,ProactorSocketTransportTests.test_write_more�se��
�
"�
"�
$���	�	���
��9�9�;���
�����������W�-�����)�)�0�0�1rc�r�UR5n[S5UlUR5 URR
RRURS5 URR
RRRRUR5 gr�)r3r=r�r�r r$�sendr<r*�return_value�add_done_callbackrIs  r�test_loop_writing�.ProactorSocketTransportTests.test_loop_writing�s|��
�
"�
"�
$���w�'��
�
�����	�	��� � �3�3�D�I�I�w�G��	�	��� � �-�-�?�?���r�/�/�0r�asyncio.proactor_events.loggerc�D�[5=o RRRlUR5n[R"5UlSS/Ul	UR5 URRUS5 SUlURS5 URS5 URS5 URS5 URS5 URURS5 URRS5 g)Nsdastaz#Fatal write error on pipe transport�rMzsocket.send() raised exception.)r|r r$r�rgr3rr"rhr�r�r<�
_conn_lostr�r��warning)r-�m_logrjr@s    r�test_loop_writing_err�2ProactorSocketTransportTests.test_loop_writing_err�s���5<�Y�>��i�i�!�!�&�&�2�
�
"�
"�
$���)�)�+����U�^��
�
����
���*�*��A�	C���
�
�����
�����
�����
�����
�����������T�*�
�
�
�(�(�)J�Krc���URR5nURS5 UR5nXlURU5 UR
UR5 gr�)r r6rNr3r�r�r8r>s   r�test_loop_writing_stop�3ProactorSocketTransportTests.test_loop_writing_stop�sS���i�i�%�%�'�����w��
�
"�
"�
$���
�
��������"�-�-�(rc��URR5nURS5 UR5nXlUR5 UR
U5 URUR5 [R"UR5 URRRS5 g�Nr�)
r r6rNr3r�rr�r8r%r7r(�connection_lostr<r>s   r�test_loop_writing_closing�6ProactorSocketTransportTests.test_loop_writing_closing�s����i�i�%�%�'�����q��
�
"�
"�
$���
�
���
�
��������"�-�-�(����t�y�y�)��
�
�%�%�8�8��>rc��UR5n[R"5UlUR	5 URRS5 gr
)r3rr"rx�abortr<rIs  r�
test_abort�'ProactorSocketTransportTests.test_abort�s8��
�
"�
"�
$���)�)�+���
���
�
���*�*�4�0rc�J�UR5nUR5 [R"UR5 UR
RRS5 URUR55 URURS5 UR
RR5 UR5 [R"UR5 URUR
RR5 gr�)r3rr%r7r r(r�r<r`�
is_closingr�r��
reset_mockrErGrIs  r�
test_close�'ProactorSocketTransportTests.test_close�s���
�
"�
"�
$��
���
����t�y�y�)��
�
�%�%�8�8��>�����
�
��(��������*��
�
�%�%�0�0�2�
���
����t�y�y�)�������6�6�=�=�>rc��UR5n[R"5UlUR	5 [
R"UR5 URURRR5 gr
)r3rr"r�rr%r7r rEr(r�rGrIs  r�test_close_write_fut�1ProactorSocketTransportTests.test_close_write_fut�sV��
�
"�
"�
$���	�	���
�
���
����t�y�y�)�������6�6�=�=�>rc���UR5nS/UlUR5 [R"UR
5 UR
URRR5 gr�)
r3r�rr%r7r rEr(r�rGrIs  r�test_close_buffer�.ProactorSocketTransportTests.test_close_buffer�sR��
�
"�
"�
$���Y��
�
���
����t�y�y�)�������6�6�=�=�>rc�b�UR5nSURRlUR	5 [
R"UR5 URRRS5 URURRR5 g)N���)r3r*�filenor�rr%r7r r(r�r<rE�shutdownrGrIs  r�test_close_invalid_sockobj�7ProactorSocketTransportTests.test_close_invalid_sockobj�ss��
�
"�
"�
$��(*��	�	���%�
���
����t�y�y�)��
�
�%�%�8�8��>�������+�+�2�2�3r�asyncio.base_events.loggerc��UR5n[R"5UlUR	S5 URURR5 URURR5 gr
)r3rr"rxrhr`rG�error)r-�	m_loggingr@s   r�test_fatal_error�-ProactorSocketTransportTests.test_fatal_errorsU��
�
"�
"�
$���)�)�+���
�����������.�.�/����	���.�.�/rc�$�UR5nS/Ul[R"5=o!l[R"5=o1lUR
S5 URR5 URR5 [R"UR5 URRRS5 URSUR5 URURS5 g)NrMr�)r3r�rr"rPr�rx�cancelr<r%r7r r(r�r�r�)r-r@�read_fut�	write_futs    r�test_force_close�-ProactorSocketTransportTests.test_force_closes���
�
"�
"�
$���Y��
�"&�)�)�+�-��<�$(�I�I�K�/�	�M�
��������*�*�,����+�+�-����t�y�y�)��
�
�%�%�8�8��>�����r�z�z�*��������*rc��[R"5nURRU5 URR	5nURS5 X RRlUR5nURS5 URS5 [R"UR5 UR5 g)Nr�rM)rr"r �set_exception_handlerr6rNr#r�r�r3r�rxr%r7�assert_not_called)r-�exc_handlerr?r@s    r�test_loop_writing_force_close�:ProactorSocketTransportTests.test_loop_writing_force_closes����i�i�k���	�	�'�'��4��i�i�%�%�'�����q��*-�
�
���'�
�
"�
"�
$��
�����
��������t�y�y�)��%�%�'rc���UR5nSUlURS5 [R"UR
5 UR
URRR5 grn)
r3rorxr%r7r r`r(r�rGrIs  r�test_force_close_idempotent�8ProactorSocketTransportTests.test_force_close_idempotent#sS��
�
"�
"�
$�����
��������t�y�y�)�	
����
�
�5�5�<�<�=rc�t�UR5nURURRR5 SUlUR
S5 UR
S5 [R"UR5 URSURRR5 g)NTr�)r3rEr(r�rGrorxr%r7r r��
call_countrIs  r�.test_force_close_protocol_connection_lost_once�KProactorSocketTransportTests.test_force_close_protocol_connection_lost_once/s���
�
"�
"�
$��������6�6�=�=�>����	�����
��������t�y�y�)�����D�M�M�9�9�D�D�Erc�b�UR5nURURRR5 UR5 UR5 [R"UR5 URSURRR5 gr�)r3rEr(r�rGrr%r7r r�r�rIs  r�(test_close_protocol_connection_lost_once�EProactorSocketTransportTests.test_close_protocol_connection_lost_once:st��
�
"�
"�
$��������6�6�=�=�>�	���
�
���
����t�y�y�)�����D�M�M�9�9�D�D�Erc��UR5nS/UlURS5 [R"UR
5 URRRS5 URSUR5 gr�)
r3r�rxr%r7r r(r�r<r�rIs  r�test_fatal_error_2�/ProactorSocketTransportTests.test_fatal_error_2Dsc��
�
"�
"�
$���Y��
�
��������t�y�y�)��
�
�%�%�8�8��>�����r�z�z�*rc��UR5nURS5 URURRR
5 URURRR
5 gr
)r3�_call_connection_lostr`r(r�rGr*rrIs  r�test_call_connection_lost�6ProactorSocketTransportTests.test_call_connection_lostMsT��
�
"�
"�
$��
� � ��&�����
�
�5�5�<�<�=�����	�	���.�.�/rc��UR5nURUR55 UR5 URR
R
[R5 UR5 URURR
RS5 UR5 gr�)r3r`�
can_write_eof�	write_eofr*r�r<r)�SHUT_WRr�r�rrIs  r�test_write_eof�+ProactorSocketTransportTests.test_write_eofSs|��
�
"�
"�
$������(�(�*�+�
�����	�	���-�-�f�n�n�=�
����������+�+�6�6��:�
���
rc���UR5nURR5nX!RRR
lURS5 UR5 URUR5 URURRR5 URRR
RURS5 UR!S5 URR#5 URRR[$R&5 UR)5 g�NrM�)r3r r6�_loopr$r�r�r�r�r`�_eof_writtenrEr*r�rGr<rN�	_run_oncer)r�r�r-r@�fs   r�test_write_eof_buffer�2ProactorSocketTransportTests.test_write_eof_buffer\s���
�
"�
"�
$���I�I�#�#�%��/0�������,�
�����
����������(�������+�+�2�2�3�
�������2�2�4�9�9�g�F�	���Q���	�	�����	�	���-�-�f�n�n�=�
���
rc��[URURUR5nUR	UR55 UR
5 UR	UR55 URR5 UR	URRR5 UR5 gr
)rr r*r(r`r�r�r�r�rrGrIs  r�test_write_eof_write_pipe�6ProactorSocketTransportTests.test_write_eof_write_pipejs���
(��I�I�t�y�y�$�-�-�1������(�(�*�+�
��������
�
��(��	�	��������	�	���.�.�/�
���
rc�0�[URURUR5nURR	5nX!R
RRlURS5 UR5 URUR55 URURRR5 UR
RRR!URS5 UR#S5 URR%5 URR%5 URURR&R5 UR'5 gr�)rr r*r(r6r�r$r�r�r�r�r`r�rEr�rGr<rNr�rr�s   r� test_write_eof_buffer_write_pipe�=ProactorSocketTransportTests.test_write_eof_buffer_write_pipets���
(����D�I�I�t�}�}�
M���I�I�#�#�%��/0�������,�
�����
��������
�
��(�������+�+�2�2�3�
�������2�2�4�9�9�g�F�	���Q���	�	�����	�	��������	�	���.�.�/�
���
rc�,�[URURUR5nUR	UR55 UR
[5 UR5 SSS5 [U5 g!,(df   N=fr
)
rr r*r(rEr�r^�NotImplementedErrorr�rrIs  r�test_write_eof_duplex_pipe�7ProactorSocketTransportTests.test_write_eof_duplex_pipe�sd��
)��I�I�t�y�y�$�-�-�1������)�)�+�,�
�
�
�2�
3��L�L�N�4����4�
3�s� B�
Bc�^^�TR5nSn/SQn[[U55mUU4SjnUTRRR
lTRR5 TRUR5 TRUR55 USSHKnTRR5 TRRR[U55 MM UR!5 UR!5 TRUR5 TRUR55 [#S5HnTRR5 M TRRR[US55 UR%5 UR%5 TRUR5 TRUR55 USSHKnTRR5 TRRR[U55 MM UR!5 UR%5 [&R("5TRlTRR5 TRR*R-5 TRRR[US55 UR/5 TRUR55 g)Nr)�data1�data2sdata3sdata4sdata5rc��>^^^�TRR5nTR5mURmUUU4SjnX2lUR	[T55 U$)Nc�.>�TTS[T5&T"5$r
)rO)r��msgr9s���r�monkey�YProactorSocketTransportTests.test_pause_resume_reading.<locals>.recv_into.<locals>.monkey�s���"%��Y�c�#�h���x�r)r r6�popr9rNrO)r*r�r�r�r�r9�
reversed_msgsr-s `  @@��rr;�IProactorSocketTransportTests.test_pause_resume_reading.<locals>.recv_into�sM����	�	�'�'�)�A��#�#�%�C��X�X�F�
 ��H�
�L�L��S��"��Hr��
r�r�)r3�list�reversedr r$r;rgr�rE�_pausedr`�
is_readingr(rFr<r=�
pause_reading�range�resume_readingrr"�call_exception_handlerr�r)r-r@�index�msgsr;r��irs`      @r�test_pause_resume_reading�6ProactorSocketTransportTests.test_pause_resume_reading�s=���
�
"�
"�
$����F���X�d�^�,�
�	�5>��	�	���%�%�1��	�	����������$�����
�
��(����8�C��I�I���!��M�M�'�'�:�:�9�S�>�J��	����
��������
�
�#��������)��r��A��I�I���!���
�
�#�#�6�6�y��a��7I�J�
����
����������$�����
�
��(���!�9�C��I�I���!��M�M�'�'�:�:�9�S�>�J��	����
����+/�9�9�;��	�	�(��	�	�����	�	�(�(�:�:�<��
�
�#�#�6�6�y��a��7I�J�
���
��������)rc��^�UR5mU4SjURRl[R
"UR5 URTR55 URRS5 TR5 URTR55 TR5 URTR55 g)Nc�$>�TR5$r
)r)�_r@s �r�<lambda>�QProactorSocketTransportTests.test_pause_reading_connection_made.<locals>.<lambda>�s���b�>N�>N�>Pr�)
r3r(r:rgr%r7r rEr�assert_no_readerr
r`rrIs @r�"test_pause_reading_connection_made�?ProactorSocketTransportTests.test_pause_reading_connection_made�s����
�
"�
"�
$��4P��
�
�%�%�1����t�y�y�)��������)��	�	�"�"�1�%�
��������
�
��(�
���
��������)rc�@�UR5nURUS9 URUR5S5 UR	UR
RR5 UR	UR
RR5 U$)N��highr)	r3�set_write_buffer_limitsr��get_write_buffer_sizerEr(�
pause_writingrG�resume_writing)r-rr@s   r�pause_writing_transport�4ProactorSocketTransportTests.pause_writing_transport�s{��
�
"�
"�
$��
�"�"��"�-�����1�1�3�Q�7�������4�4�;�;�<�������5�5�<�<�=��	rc�F�URSS9nURR5nX RRRlUR
S5 URR5 URURRR5 URS5 URR5 URUR5S5 URURRR5 g)Nr�rs
large datar)r!r r6r$r�r�r�r�r`r(rrGrNr�rr �r-r@r?s   r�test_pause_resume_writing�6ProactorSocketTransportTests.test_pause_resume_writing�s���
�
)�
)�q�
)�
1���i�i�%�%�'��03�	�	��� � �-�
������	�	��������
�
�3�3�:�:�;�	���t���	�	��������1�1�3�Q�7�����
�
�4�4�;�;�<rc��URSS9nURR5nX RRRlUR
S5 URR5 URUR5S5 URURRR5 UR
S5 URR5 URUR5S5 URURRR5 g)Nr�rs123��abc��r!r r6r$r�r�r�r�r�rrEr(rrGr`)r-r@�fut1s   r�test_pause_writing_2write�6ProactorSocketTransportTests.test_pause_writing_2write�s���
�
)�
)�q�
)�
1���y�y�&�&�(��04�	�	��� � �-�
������	�	��������1�1�3�Q�7�������4�4�;�;�<�	������	�	��������1�1�3�Q�7�����
�
�3�3�:�:�;rc�z�URSS9nURR5nX RRRlUR
S5 URR5 URUR5S5 URURRR5 UR
S5 URR5 URUR5S5 URURRR5 UR
S5 URR5 URUR5S5 URURRR5 g)	Nr�r�1r�s23r(r)r*r+r$s   r�test_pause_writing_3write�6ProactorSocketTransportTests.test_pause_writing_3write�s8��
�
)�
)�q�
)�
1���i�i�%�%�'��03�	�	��� � �-�
������	�	��������1�1�3�Q�7�������4�4�;�;�<�	������	�	��������1�1�3�Q�7�������4�4�;�;�<�	������	�	��������1�1�3�Q�7�����
�
�3�3�:�:�;rc��URSS9nURR5nURS5 X RRR
lURS5 URR5 URUR5S5 URURRR5 g)Nr�rsvery large datar)r!r r6rNr$r�r�r�r�r�rrEr(rrGr$s   r�test_dont_pause_writing�4ProactorSocketTransportTests.test_dont_pause_writings���
�
)�
)�q�
)�
1���i�i�%�%�'�����t��03�	�	��� � �-�
���#�$��	�	��������1�1�3�Q�7�������4�4�;�;�<r)r+r r#r(r*r
)8�__name__�
__module__�__qualname__�__firstlineno__rr3rArJrY�unittest�skipIf�sys�flags�optimizerbrkrprtryr}r�r�r�r�r�patchr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrr!r%r-r1r4�__static_attributes__�
__classcell__�r.s@rrr!s@���!��[�<�T�"�_�_�S�Y�Y�'�'�)T�U�)�V�)�B�1�0�	0�B�:�%�
2�1�
�Z�Z�0�1�L�2�L�&)�
?�1�?�?�?�4�
�Z�Z�,�-�0�.�0�+�(�
>�	F�F�+�0����
��5*�n*��=� <�"<�.=�=rrc�^�\rSrSrU4SjrSSjrSrSrSrSr	Sr
S	rS
rSr
\R"S5S
5rSrSrSrSrSrSrSrSrSr\R"S5S5rSrU=r$)�ProactorDatagramTransportTestsic�>�[TU]5 UR5Ul[R
"5UlURURl[R"[R5Ul[R
"[RS9UlSURRlg)N)�spec_setr)rrrr rr"r#r$r%r&r�DatagramProtocolr(r)r*r�r�r,s �rr�$ProactorDatagramTransportTests.setUp!sw���
��
���&�&�(��	��	�	���
�"�m�m��	�	��"�5�5�g�6N�6N�O��
��I�I�v�}�}�5��	�()��	�	���%rc���U(aSO[URRl[	UR
URURUS9nUR[U5 U$)N��address)	r|r*�getpeernamergrr r(r!r)r-rKrs   r�datagram_transport�1ProactorDatagramTransportTests.datagram_transport*sO��4;�D���	�	���)�.�t�y�y�$�)�)�/3�}�}�7>�@�	�	
�����3��rc�v�SnUR5nURUS5 URURRR5 URRRURUSS9 URUR5 URSUR5 g)NrM��0.0.0.0i���addrr)rM�sendtor`r#rGr<r*rEr�r��_buffer_size�r-r�rs   r�test_sendto�*ProactorDatagramTransportTests.test_sendto2s������+�+�-�	�����0�1�����
�
�,�,�3�3�4��
�
���/�/��I�I�t�"3�	0�	5�����*�*�+�����I�2�2�3rc��[S5nUR5nURUS5 URURRR
5 URRR
URSSS9 g�NrMrPrR)r=rMrTr`r#rGr<r*rVs   r�test_sendto_bytearray�4ProactorDatagramTransportTests.test_sendto_bytearray<sp����!���+�+�-�	�����0�1�����
�
�,�,�3�3�4��
�
���/�/��I�I�w�%6�	0�	8rc��[S5nUR5nURUS5 URURRR
5 URRR
URSSS9 grZ)�
memoryviewrMrTr`r#rGr<r*rVs   r�test_sendto_memoryview�5ProactorDatagramTransportTests.test_sendto_memoryviewDsp���'�"���+�+�-�	�����0�1�����
�
�,�,�3�3�4��
�
���/�/��I�I�w�%6�	0�	8rc��UR5nURSS5 URURRR5 URRRURSSS9 g)NrrPrR)rMrTr`r#rGr<r*�r-rs  r�test_sendto_no_data�2ProactorDatagramTransportTests.test_sendto_no_dataLsf���+�+�-�	�����/�0�����
�
�,�,�3�3�4��
�
���/�/��I�I�s�!2�	0�	4rc�H�UR5nURRS5 [5UlURSS5 UR
URR
R5 URSS/[UR55 g)N�r��rQi90r�rg�r�rg)rMr��append�objectr�rTrEr#rGr�rrbs  r�test_sendto_buffer�1ProactorDatagramTransportTests.test_sendto_bufferSs����+�+�-�	���� � �!?�@�%�x�	������#5�6�������-�-�4�4�5����
+�
+�
-���"�"�#�	%rc��[S5nUR5nURRS5 [	5UlUR
US5 URURRR5 URSS/[UR55 URURSS[5 g�Nr�rfrgrhr�r)r=rMr�rirjr�rTrEr#rGr�rrRrU�r-�data2rs   r�test_sendto_buffer_bytearray�;ProactorDatagramTransportTests.test_sendto_buffer_bytearray^s����(�#���+�+�-�	���� � �!?�@�%�x�	������ 2�3�������-�-�4�4�5����
+�
+�
-���"�"�#�	%�	
���i�/�/��2�1�5�u�=rc��[S5nUR5nURRS5 [	5UlUR
US5 URURRR5 URSS/[UR55 URURSS[5 grn)r^rMr�rirjr�rTrEr#rGr�rrRrUros   r�test_sendto_buffer_memoryview�<ProactorDatagramTransportTests.test_sendto_buffer_memoryviewks����8�$���+�+�-�	���� � �!?�@�%�x�	������ 2�3�������-�-�4�4�5����
+�
+�
-���"�"�#�	%�	
���i�/�/��2�1�5�u�=rc��SnUR5nURRS5 [5UlURUS5 UR
URR
R5 URSS/[UR55 URURSS[5 g)Nrrfrg)rrgr�r)
rMr�rirjr�rTrEr#rGr�rrRrUros   r�test_sendto_buffer_nodata�8ProactorDatagramTransportTests.test_sendto_buffer_nodataxs������+�+�-�	���� � �!?�@�%�x�	������ 2�3�������-�-�4�4�5����
+�
&�
(���"�"�#�	%�	
���i�/�/��2�1�5�u�=rr�c�F�Sn[5=o0RRlUR	5n[
R"5UlURUS5 URURR5 URRUS5 SUlSUlURU5 URU5 URU5 URU5 URU5 URRS5 g)NrMr�'Fatal write error on datagram transportr�)�123z!socket.sendto() raised exception.)�RuntimeErrorr#rTrgrMrr"rhr`rGr<r��_addressr�)r-r�r�rjrs     r�test_sendto_exception�4ProactorDatagramTransportTests.test_sendto_exception�s�����1=��?��m�m�"�"�.��+�+�-�	�!%����	������r�"����	�.�.�5�5�6����1�1�#&�#L�	N� !�	��%�	���������������������������
�
�
�(�(�)L�Mrc�@�Sn[URRlUR	5n[
R"5UlURUS5 URURS5 URURR5 g)NrMrr)�ConnectionRefusedErrorr*rTrgrMrr"rhr�r�rErGrVs   r�test_sendto_error_received�9ProactorDatagramTransportTests.test_sendto_error_received�su����'=��	�	���$��+�+�-�	�!%����	������r�"�����-�-�q�1�����/�/�6�6�7rc�b�Sn[URRlUR	SS9n[
R"5UlURU5 URURR5 URURRR5 g)NrM�rQr�rJ)r�r#r�rgrMrr"rhrTrErGr`r(�error_receivedrVs   r�$test_sendto_error_received_connected�CProactorDatagramTransportTests.test_sendto_error_received_connected�s~����)?��
�
���&��+�+�N�+�C�	�!%����	�����������/�/�6�6�7�����
�
�4�4�;�;�<rc�h�UR5nUR[URSS5 g)N�strr)rMr^�	TypeErrorrTrbs  r�test_sendto_str�.ProactorDatagramTransportTests.test_sendto_str�s*���+�+�-�	����)�Y�%5�%5�u�b�Arc�f�URSS9nUR[URSS5 g)Nr�rJsstr)rQr)rMr^�
ValueErrorrTrbs  r�test_sendto_connected_addr�9ProactorDatagramTransportTests.test_sendto_connected_addr�s3���+�+�N�+�C�	�����	�(�(�&�.�	Brc���URSS9nUR5 URURS5 UR	SS5 URURS5 g)N)r�rJr�rMr)rMrr�r�rTrbs  r�test_sendto_closing�2ProactorDatagramTransportTests.test_sendto_closing�s[���+�+�D�+�9�	���������-�-�q�1�����$�'�����-�-�q�1rc�Z�UR5nSUlUR5 URUR5 [
R"UR5 URRR5 URRRS5 grn)
rMror�r8r�r%r7r r*rr<r(r�rbs  r�test__loop_writing_closing�9ProactorDatagramTransportTests.test__loop_writing_closing�sv���+�+�-�	�!�	�����!����)�.�.�/����t�y�y�)��	�	���*�*�,��
�
�%�%�8�8��>rc�.�[5=oRRlUR	5n[
R"5UlURRS5 UR5 URRUS5 g)N�rMrrz)r|r#rTrgrMrr"rhr�rir�r<)r-rjrs   r�test__loop_writing_exception�;ProactorDatagramTransportTests.test__loop_writing_exception�sp��1=��?��m�m�"�"�.��+�+�-�	�!%����	����� � ��/����!����1�1�#&�#L�	Nrc�6�[URRlUR	5n[
R"5UlURRS5 UR5 URURR5 g)Nr�)
r�r#rTrgrMrr"rhr�rir�rErGrbs  r�!test__loop_writing_error_received�@ProactorDatagramTransportTests.test__loop_writing_error_received�sj��+A��
�
���(��+�+�-�	�!%����	����� � ��/����!�����/�/�6�6�7rc��[URRlUR	SS9n[
R"5UlURRS5 UR5 URURR5 URURRR5 g)Nr�rJr�)r�r#r�rgrMrr"rhr�rir�rErGr`r(r�rbs  r�,test__loop_writing_error_received_connection�KProactorDatagramTransportTests.test__loop_writing_error_received_connection�s���)?��
�
���&��+�+�N�+�C�	�!%����	����� � ��/����!�����/�/�6�6�7�����
�
�4�4�;�;�<rz asyncio.base_events.logger.errorc���URSS9n[5nURU5 URURR
R5 UR5 g)Nr�rJ)rMr�rhrEr(r�rGr�)r-�m_excrrjs    r�test_fatal_error_connected�9ProactorDatagramTransportTests.test_fatal_error_connected�sU���+�+�N�+�C�	�$�&�����s�#�������5�5�<�<�=�
���!r)r r#r(r*r
)r6r7r8r9rrMrWr[r_rcrkrqrtrwrr?r~r�r�r�r�r�r�r�r�r�r�r@rArBs@rrDrDs����*��4�8�8�4�	%�>�>�>�
�Z�Z�0�1�N�2�N�,
8�
=�B�B�
2�?�
N�8�	=�
�Z�Z�2�3�"�4�"rrDc�H^�\rSrSrU4Sjr\R"S5S5rSrSr	Sr
SrS	rS
r
SrSr\R"S
5S5rSrSrSrSrSrSrSr\R2"\R6R8S5S5rSrSrSr U=r!$)�BaseProactorEventLoopTestsi�c�H>�[TU]5 [R"5Ul[
R"5Ul[
R"5[
R"5sUlUl	[
R"SURUR4S9 [
R"S5 [UR5UlSSS5 SSS5 URUR5 g!,(df   N2=f!,(df   N;=f)N�)asyncio.proactor_events.socket.socketpair)r��signal.set_wakeup_fd)rrr%�mock_nonblocking_socketr*rr"r#�ssock�csockr?rr �set_event_loopr,s �rr� BaseProactorEventLoopTests.setUp�s����
��
���6�6�8��	��	�	���
�!%����d�i�i�k���
�D�J�
�Z�Z�C�&*�j�j�$�*�*�%=�?����2�3�1�$�-�-�@��	�4�?�	
���D�I�I�&�4�3��?�?�s$�$D�;D�D�
D	�D�
D!r�c��[R"5[R"54=up#Ul[R"S5 [	UR
5nSSS5 UR
WRU5 UR
URU5 URURS5 UR5 g!,(df   Ns=f)Nr�r�)rr"r�r?rr#�assertIs�_ssock�_csockr��
_internal_fdsr)r-�
socketpairr�r�r s     rrA�$BaseProactorEventLoopTests.test_ctors���
�I�I�K�����2&�	&���z�.�
�Z�Z�.�
/�(����7�D�0��
�
�d�k�k�5�)��
�
�d�k�k�5�)�����+�+�Q�/��
�
��0�
/�s�
C
�
Cc��URR5 URURRS5 UR	UR
RR5 UR	URRR5 URURR5 URURR5 SURlg)NrT)
r �_close_self_piper�r�r`r�rrGr�r8r�r��_closed�r-s r�test_close_self_pipe�/BaseProactorEventLoopTests.test_close_self_pipes����	�	�"�"�$�������0�0�!�4�����
�
�(�(�/�/�0�����
�
�(�(�/�/�0����$�)�)�*�*�+����$�)�)�*�*�+�!��	�	�rc�`�[R"5URlURR	5 URURRR5 URURRR5 URURR5 URRR5 URR	5 URURRR5 gr
)rr"r r�rr`rGr#r8r$r�rEr�s rr��%BaseProactorEventLoopTests.test_closes���%)�Y�Y�[��	�	�"��	�	��������	�	�2�2�9�9�:�����
�
�+�+�2�2�3����$�)�)�-�-�.��	�	�"�"�-�-�/��	�	����������3�3�:�:�;rc��URRUR[R"55nURU[5 [U5 gr
)r �_make_socket_transportr*rr'rRrrrIs  r�test_make_socket_transport�5BaseProactorEventLoopTests.test_make_socket_transport(s>��
�Y�Y�
-�
-�d�i�i��9I�9I�9K�
L�����b�":�;���rc�2�URR5 URRR	UR
S5 URRRRR	URR5 g�Ni)r �_loop_self_readingr#�recvr<r�r�r�r�s r�test_loop_self_reading�1BaseProactorEventLoopTests.test_loop_self_reading-sa���	�	�$�$�&��
�
���-�-�d�j�j�$�?��
�
���'�'�9�9�L�L��I�I�(�(�	*rc���[R"5nXRlURR	U5 URURR5 URRRURS5 URRRRRURR5 gr�)rr"r �_self_reading_futurer�r`r9rGr#r�r<r�r�r�)r-r?s  r�test_loop_self_reading_fut�5BaseProactorEventLoopTests.test_loop_self_reading_fut3s����i�i�k��),�	�	�&��	�	�$�$�S�)�����
�
�)�)�*��
�
���-�-�d�j�j�$�?��
�
���'�'�9�9�L�L��I�I�(�(�	*rc�$�[R"5URl[	5UR
RlURR5 URURRR5 gr
)rr"r rr|r#r�rgr�r`rGr�s r� test_loop_self_reading_exception�;BaseProactorEventLoopTests.test_loop_self_reading_exception<sT��+/�9�9�;��	�	�(�)0���
�
���&��	�	�$�$�&�����	�	�8�8�?�?�@rc��URR5 URRR	S5 g)N�)r �_write_to_selfr�r�r<r�s r�test_write_to_self�-BaseProactorEventLoopTests.test_write_to_selfBs(���	�	� � �"��
�
���*�*�5�1rc�:�URR/5 gr
)r �_process_eventsr�s r�test_process_events�.BaseProactorEventLoopTests.test_process_eventsFs���	�	�!�!�"�%rr�c���[R"5n[R"5=o0RlURR	X R
5 UR
UR5 URSSnU"5 URRRUR
5 [R"5n[R"5[R"54URl
[R"5=o`RlU"U5 UR
URR5 UR
UR5 [5URlU"U5 UR
UR
R"R5 UR
UR$R5 gr])rr"r �	call_soon�_start_servingr*r`rGrSr#�acceptr<r9r�r�r|rgrr�)r-r��pfr�r r?�make_trs       r�test_create_server�-BaseProactorEventLoopTests.test_create_serverIs5��
�Y�Y�[��*.�)�)�+�5�	�I�I�'��	�	� � ��Y�Y�/����	�(�(�)��"�"�1�%�a�(�����
�
���/�/��	�	�:��i�i�k��#'�9�9�;��	�	��"<��
�
��59�Y�Y�[�@��)�)�2��S�	�����
�
�)�)�*�������'�")���
�
���S�	�����	�	���.�.�/�������*�*�+rc��[R"5n[R"5=o RlURR	XR
5 URSSnURR5nUR5 U"U5 URUR
RR5 gr])rr"r r�r�r*rSr6r�r`rrG)r-r�r�r r?s     r�test_create_server_cancel�4BaseProactorEventLoopTests.test_create_server_canceles���
�Y�Y�[��*.�)�)�+�5�	�I�I�'��	�	� � ��Y�Y�/��"�"�1�%�a�(���i�i�%�%�'���
�
���S�	�����	�	���.�.�/rc��[R"5n[R"5n[R"5n[R"5nUR5UUR5U0URlURRU5 UR
URR5 UR
URR5 URR
RU5 URURR5 URURR5 gr
)
rr"r�r �_accept_futures�
_stop_servingr`rrGr�r#r<rE)r-�sock1�future1�sock2�future2s     r�test_stop_serving�,BaseProactorEventLoopTests.test_stop_servingrs����	�	����)�)�+���	�	����)�)�+���L�L�N�G��L�L�N�G�%
��	�	�!�
	
�	�	����&�������*�*�+�������-�-�.��
�
�#�#�6�6�u�=�������+�+�,�������.�.�/rc��[R"[R5UlUR
R
URUR5$r
)r%r&rrGr(r �_make_datagram_transportr*r�s rrM�-BaseProactorEventLoopTests.datagram_transport�s9��"�5�5�g�6N�6N�O��
��y�y�1�1�$�)�)�T�]�]�K�Krc��UR5nURU[5 URU[R5 [U5 gr
)rMrRrr�DatagramTransportrrIs  r�test_make_datagram_transport�7BaseProactorEventLoopTests.test_make_datagram_transport�s?��
�
$�
$�
&�����b�"<�=����b�'�";�";�<���rc��UR5nURRS5 UR5 URR
RRURSSS9 URR
RRRRUR5 [U5 g)N�rM��	127.0.0.1i$/rMr�rR)rMr��
appendleftr�r r$rTr<r*r�r�rrIs  r�test_datagram_loop_writing�5BaseProactorEventLoopTests.test_datagram_loop_writing�s���
�
$�
$�
&��
�
�
���=�>�
�����	�	���"�"�5�5�d�i�i��Oc�5�d��	�	���"�"�/�/�A�A���r�/�/�0���rc��UR5nUR5 URRRRURS5 URURRR5 URURRR5 [U5 g)N�)
rMrDr r$�recvfromr<r*rEr(�datagram_receivedrGr�rrIs  r�test_datagram_loop_reading�5BaseProactorEventLoopTests.test_datagram_loop_reading�s���
�
$�
$�
&��
�����	�	���$�$�7�7��	�	�:�N�������8�8�?�?�@�������5�5�<�<�=���rc�~�URR5nURS5 UR5nXlURU5 URRRRURS5 URRRSS5 [U5 g)Nr�r�rMr�)
r r6rNrMrPrDr$r�r<r*r(r�rras   r�test_datagram_loop_reading_data�:BaseProactorEventLoopTests.test_datagram_loop_reading_data�s����i�i�%�%�'�����6�7�
�
$�
$�
&����
������	�	���$�$�7�7��	�	�:�N��
�
�'�'�:�:�7�DX�Y���rr[c�N�URR5nURS5 UR5nUR	[
URU5 [R"5Ul	Xl
UR
U5 URURRRR5 URUR R"R5 URURR5 [%U5 g)N)rr�)r r6rNrMr^r_rDrr"rrPr`r$r�rGrEr(r�rras   r�"test_datagram_loop_reading_no_data�=BaseProactorEventLoopTests.test_datagram_loop_reading_no_data�s����i�i�%�%�'�����2�3�
�
$�
$�
&�����.�"�*:�*:�C�@��9�9�;�����
���������	�	�+�+�4�4�;�;�<�������5�5�<�<�=���������)���rc�|�[5=oRRRlUR5n[R"5Ul[R"5URl
UR5 URRRU5 [U5 gr
)rfr r$r�rgrMrr"rh�	_protocolr�rDr<rris   r�"test_datagram_loop_reading_aborted�=BaseProactorEventLoopTests.test_datagram_loop_reading_aborted�sy��9O�9Q�Q��i�i�!�!�*�*�6�
�
$�
$�
&���)�)�+���&*�i�i�k����#�
����
���#�#�6�6�s�;���rc��[5=oRRRlUR5n[R"5Ul[R"5URl
URRS5 UR5 URRRU5 [U5 g)N)sHellor�)rfr r$rTrgrMrr"rhrr�r�r�r�r<rris   r�"test_datagram_loop_writing_aborted�=BaseProactorEventLoopTests.test_datagram_loop_writing_aborted�s���7M�7O�O��i�i�!�!�(�(�4�
�
$�
$�
&���)�)�+���&*�i�i�k����#�
�
�
���>�?�
����
���#�#�6�6�s�;���r)r�r r#r(r*r�)"r6r7r8r9rrr?rAr�r�r�r�r�r�r�r�r�r�r�rMr�r�r�rr:r;r<r=r>rr	rr@rArBs@rr�r��s����'�
�Z�Z�;�<��=��	!�	<��
*�*�A�2�&�
�Z�Z�,�-�,�.�,�60�0�"L����	��_�_�S�Y�Y�'�'�)T�U�
�V�
��	�	rr��win32z%Proactor is supported on Windows onlyc�^�\rSrSrSS-r"SS\R5r\U4Sj5r	\U4Sj5r
U4SjrSS	jrS
r
SrSrS
rSrSrSrU=r$)�&ProactorEventLoopUnixSockSendfileTestsi�s�12345abcde12345abcde12345abcde12345abcde12345abcde12345abcde12345abcde12345abcde12345abcde12345abcde12345abcde12345abcde12345abcde12345abcde12345abcde12345abcde�c�2�\rSrSrSrSrSrSrSrSr	g)	�.ProactorEventLoopUnixSockSendfileTests.MyProtoi�c�v�SUlSUl[5UlUR	5UlSUlgrs)�started�closedr=r�r6r?r)r-r s  r�__init__�7ProactorEventLoopUnixSockSendfileTests.MyProto.__init__�s0�� �D�L��D�K�!��D�I��)�)�+�D�H�!�D�Nrc��SUlXlgrn)rrrbs  rr:�>ProactorEventLoopUnixSockSendfileTests.MyProto.connection_made�s���D�L�&�Nrc�:�URRU5 gr
)r��extend)r-r�s  rrF�<ProactorEventLoopUnixSockSendfileTests.MyProto.data_received�s���I�I���T�"rc�H�SUlURRS5 grn)rr?rN)r-�excs  rr��>ProactorEventLoopUnixSockSendfileTests.MyProto.connection_lost�s���D�K��H�H����%rc��8# �URIShv�N gN7fr
)r?r�s r�wait_closed�:ProactorEventLoopUnixSockSendfileTests.MyProto.wait_closed�s����(�(�N�N�s���)rr�r?rrN)
r6r7r8r9rr:rFr�r"r@rrr�MyProtor�s��	"�	'�	#�	&�	rr$c�>�[[RS5nURUR5 SSS5 [
TU]5 g!,(df   N=f)N�wb)�openr	�TESTFNr��DATAr�
setUpClass)�cls�fpr.s  �rr*�1ProactorEventLoopUnixSockSendfileTests.setUpClass�s>���
�)�"�"�D�
)�R��H�H�S�X�X��*�
����*�
)�s�A�
Ac�j>�[R"[R5 [TU]5 gr
)r	�unlinkr(r�
tearDownClass)r+r.s �rr0�4ProactorEventLoopUnixSockSendfileTests.tearDownClass�s"�������)�)�*�
���rc�^>�[R"5UlURUR5 UR	URR
5 [
[RS5Ul	UR	URR
5 [TU]-5 g)N�rb)r�ProactorEventLoopr r�r!rr'r	r(�filerrr,s �rr�,ProactorEventLoopUnixSockSendfileTests.setUp�sj����-�-�/��	����D�I�I�&�����	�	���(���)�)�4�0��	�����	�	���(�
��
�rc��[R"[R[R5nURU5 UR	[R
[RS5 UR	[R
[RS5 U(aURUR5 U$)Nr)
r)�AF_INET�SOCK_STREAM�setblocking�
setsockopt�
SOL_SOCKET�	SO_SNDBUF�	SO_RCVBUFr!r)r-�cleanup�blockingr*s    r�make_socket�2ProactorEventLoopUnixSockSendfileTests.make_socket�sz���}�}�V�^�^�V�-?�-?�@������"�����)�)�6�+;�+;�T�B�����)�)�6�+;�+;�T�B���O�O�D�J�J�'��rc�8�URRU5$r
)r �run_until_complete)r-�coros  r�run_loop�/ProactorEventLoopUnixSockSendfileTests.run_loops���y�y�+�+�D�1�1rc��^^^�TR5nTRTR5m[R"5nTRSS9nURSU45 TR
TRRU4SjUS95mTR
TRRXR555 UUU4SjnTRU5 UT4$)NF)r?r�c�>�T$r
r)�protos�rr�@ProactorEventLoopUnixSockSendfileTests.prepare.<locals>.<lambda>s���Er)r*c��>�TRb9TRR5 TRTR55 TR5 TRTR55 gr
)rrrFr")rJr-�servers���rr?�?ProactorEventLoopUnixSockSendfileTests.prepare.<locals>.cleanupsR������*����%�%�'��
�
�e�/�/�1�2��L�L�N��M�M�&�,�,�.�/r)rAr$r r
�find_unused_port�bindrF�
create_server�sock_connect�getsocknamer!)r-r*�port�srv_sockr?rJrMs`    @@r�prepare�.ProactorEventLoopUnixSockSendfileTests.prepares�������!�����T�Y�Y�'���-�-�/���#�#�E�#�2���
�
�{�D�)�*����t�y�y�6�6��� 7� *�+���
�
�d�i�i�,�,�T�3G�3G�3I�J�K�	0�	
���� ��U�{�rc	�\�UR5up[5nUR[RS5 URURRXSS55 SSS5 URURR5S5 g!,(df   N9=f�N�not a regular filer)rVrj�assertRaisesRegexr�SendfileNotAvailableErrorrFr �_sock_sendfile_nativer�r5�tell�r-r*rJr�s    r�test_sock_sendfile_not_a_file�DProactorEventLoopUnixSockSendfileTests.test_sock_sendfile_not_a_file#s����l�l�n����H��
�
#�
#�G�$E�$E�$8�:��M�M�$�)�)�9�9�$�:;�T�C�
D�:�	
��������)�1�-�	:�:�s�-B�
B+c	�r�UR5up[R"5nUR[R
S5 UR
URRXSS55 SSS5 URURR5S5 g!,(df   N9=frY)rV�io�BytesIOr[rr\rFr r]r�r5r^r_s    r�test_sock_sendfile_iobuffer�BProactorEventLoopUnixSockSendfileTests.test_sock_sendfile_iobuffer,s����l�l�n����J�J�L��
�
#�
#�G�$E�$E�$8�:��M�M�$�)�)�9�9�$�:;�T�C�
D�:�	
��������)�1�-�	:�:�s�-B(�(
B6c	��UR5up[R"5nSURlUR[RS5 URURRXSS55 SSS5 URURR5S5 g!,(df   N9=f)Nr�rZr)rVrr"r�r�r[rr\rFr r]r�r5r^r_s    r�#test_sock_sendfile_not_regular_file�JProactorEventLoopUnixSockSendfileTests.test_sock_sendfile_not_regular_file5s����l�l�n����I�I�K�� "�����
�
#�
#�G�$E�$E�$8�:��M�M�$�)�)�9�9�$�:;�T�C�
D�:�	
��������)�1�-�	:�:�s�-B9�9
Cc� �URRS5 URSS9nUR[S5 URURR
XR55 SSS5 g!,(df   g=f)NT)r@zmust be non-blocking)r �	set_debugrAr[r�rF�
sock_sendfiler5)r-r*s  r�test_blocking_socket�;ProactorEventLoopUnixSockSendfileTests.test_blocking_socket?sd���	�	���D�!������.��
�
#�
#�J�0F�
G��M�M�$�)�)�1�1�$�	�	�B�C�H�
G�
G�s�5A?�?
B
)r5r )TF)r6r7r8r9r)rr'r$�classmethodr*r0rrArFrVr`rerhrmr@rArBs@rrr�sx�����$�D��'�"�"��.����
� �� ���2��0.�.�.�D�Drr�__main__)�__doc__rcr)r:r<rr�asyncio.proactor_eventsrrrrr�test.supportr	r
�test.test_asynciorr%rr�TestCaserrDr�r;�platformrr6�mainrrr�<module>rxs���"�	�
��
���9�<�?�@�>�"�&�1�(��{=�:�#6�#6�{=�|U"�Z�%8�%8�U"�pV��!4�!4�V�r
�������(�8�:�qD�Z�-@�-@�qD�:�qD�f�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit