403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
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_asyncio/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/test_asyncio/__pycache__/test_proactor_events.cpython-315.pyc
R
>lqj
�c���Qs]PHs]PHs]PHs]PHs]QHGs]PHs]QHGs]QHG	s	]QHG
s
]QHGs]QHGs]QH4Gs]QH4Gs]Q	H@GsQ
sQsQQ
\O*2sQQ\O*2sQQ\O*2s\O2\O4Q6gQ2QQ\O*22s\Q6Xc\O:2P!P!)zTests for proactor_events.py)�mock)�BaseProactorEventLoop)�_ProactorSocketTransport)�_ProactorWritePipeTransport)�_ProactorDuplexPipeTransport)�_ProactorDatagramTransport)�	os_helper)�
socket_helper)�utilsc�F�[OOP2P!�N)�asyncio�events�_set_event_loop_policy���;C:\Python315\\Lib\test\test_asyncio\test_proactor_events.py�tearDownModulers���N�N�)�)�$�/rc�j�UOeP!UOO2PUmP!r)�_sock�close)�	transports&r�close_transportrs(�������
�O�O�����I�Orc��``�\sQs]!snU1QksQ0QksQsQsQs\	O\OOQ2Q2sQsQ	sQ
sQsQsQ
sQsQsQs\O2Q2Q2sQsQsQsQsQsQs Qs!\O2Q2Q2s"Qs#Qs$Qs%Qs&Q s'Q!s(Q"s)Q#s*Q$s+Q%s,Q&s-Q's.Q(s/Q)s0Q*s1Q+s2Q,s3Q-s4Q.s5Q/s6Us7U9s8!)1�ProactorSocketTransportTestsc�:�[RU_2UO2UmUO	UOO
2[O2UmUOUOm	[O[O2Um[O[O2UmQUmP!)i)�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��[UOUOUOUQ5oUO	[
U2U!�)�waiter)rrr(r&rr)r+r0rs&& r�socket_transport�-ProactorSocketTransportTests.socket_transport-s6��,�T�Y�Y��	�	�-1�]�]�6�K�	������3��rc��UOO2oUOUQ5o[OUO2UOUO
22UOOU2UOOOUO[UO22P!r/)r�
create_futurer1r#�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��UO2oUO2UOOOOUO[UO22UOUOOO2UOUOOO2P!r)r1�
_loop_readingrr"r9r: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�|�QoUOO2oUO[U22UO	2oV#mVOP[U2#UOU2[UO2oVP[U2#UOOOOUOU2UOOOU2UO!UOOO"O$]*[&2P!��data)rr4�
set_result�lenr1�	_read_fut�_datarBr;r)r"r9r:r(r&rD�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�<�UOO2oUO]2UO2oUO	[
UOU2[O2Um	Vm
UO
U2UOUOOOO2UOUO O"O2UOUOO2P!��)rr4rMr1�assertRaises�AssertionErrorrBrr rrOrCr"r9rE�
assertTruer&rF�r+rVr>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��[29pOOOmUO2o[O2UmUO2UOOUQ2P!�z"Fatal read error on pipe transport)�ConnectionAbortedErrorrr"r9�side_effectr1rr �_fatal_errorrBr:�r+�errr>s&  r�test_loop_reading_aborted�6ProactorSocketTransportTests.test_loop_reading_abortedbs`��:P�:R�R��i�i�!�!�+�+�7�
�
"�
"�
$���)�)�+���
����
���*�*��@�	Brc�.�[2UOOOmUO2oP	Um[O2Um	UO2UOUOO2P!�T)
rfrr"r9rgr1�_closingrr rhrBrCrErGs& r�!test_loop_reading_aborted_closing�>ProactorSocketTransportTests.test_loop_reading_aborted_closinglsc��4J�4L��	�	���%�%�1�
�
"�
"�
$������)�)�+���
����������/�/�0rc�.�[2UOOOmUO2oP
Um[O2Um	UO2UOUOO2P!�F)
rfrr"r9rgr1rorr rhrBr`rErGs& r�"test_loop_reading_aborted_is_fatal�?ProactorSocketTransportTests.test_loop_reading_aborted_is_fatalusa��4J�4L��	�	���%�%�1�
�
"�
"�
$������)�)�+���
����������.�.�/rc��[29pOOOmUO2oP
Um[O2Um	[O2Um
UO2UOUOO2UOOU2P!rs)�ConnectionResetErrorrr"r9rgr1rorr rh�_force_closerBrCrEr: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��[29pOOOmUO2o[O2UmUO2UOOUQ2P!re)�OSErrorrr"r9rgr1rr rhrBr:ris&  r�test_loop_reading_exception�8ProactorSocketTransportTests.test_loop_reading_exception�s_��;B�9�E��i�i�!�!�+�+�7�
�
"�
"�
$���)�)�+���
����
���*�*��@�	Brc���UO2o[O2UmUO	Q2UOUOP2UOOQQ5P!)rL)�data)r1rr �
_loop_writing�write�assertEqual�_bufferr:rGs& r�
test_write�'ProactorSocketTransportTests.test_write�sU��
�
"�
"�
$���9�9�;���
�����������T�*�
���+�+��+�9rc��UO2oUOQ2UOUO2P!)r)r1r�rCr�rGs& r�test_write_no_data�/ProactorSocketTransportTests.test_write_no_data�s-��
�
"�
"�
$��
����
�������$rc�4�UO2o[O2Um[O2UmUOQ2UO
UOQ2UOUOO2P!rK)
r1rr �
_write_futr�r�r�r�rCrErGs& r�test_write_more�,ProactorSocketTransportTests.test_write_more�se��
�
"�
"�
$���	�	���
��9�9�;���
�����������W�-�����)�)�0�0�1rc�v�UO2o[Q2UmUO2UOO
OOUOQ2UOO
OOOOUO2P!rK)r1r;r�r�rr"�sendr:r(�return_value�add_done_callbackrGs& r�test_loop_writing�.ProactorSocketTransportTests.test_loop_writing�s|��
�
"�
"�
$���w�'��
�
�����	�	��� � �3�3�D�I�I�w�G��	�	��� � �-�-�?�?���r�/�/�0r�asyncio.proactor_events.loggerc�H�[29p OOOmUO2o[O2UmQQ,Um	UO2UOOUQ2]UmUOQ2UOQ2UOQ2UOQ2UOQ2UOUOP2UOOQ2P!)sdastaz#Fatal write error on pipe transportrLzsocket.send() raised exception.)r|rr"r�rgr1rr 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���UOO2oUOQ2UO2oVmUOU2UO
UO2P!rK)rr4rMr1r�r�r6r<s&  r�test_loop_writing_stop�3ProactorSocketTransportTests.test_loop_writing_stop�sS���i�i�%�%�'�����w��
�
"�
"�
$���
�
��������"�-�-�(rc��UOO2oUO]2UO2oVmUO2UO
U2UOUO2[OUO2UOOOP2P!��)
rr4rMr1r�rr�r6r#r5r&�connection_lostr:r<s&  r�test_loop_writing_closing�6ProactorSocketTransportTests.test_loop_writing_closing�s����i�i�%�%�'�����q��
�
"�
"�
$���
�
���
�
��������"�-�-�(����t�y�y�)��
�
�%�%�8�8��>rc��UO2o[O2UmUO	2UOOP2P!r)r1rr rx�abortr:rGs& r�
test_abort�'ProactorSocketTransportTests.test_abort�s8��
�
"�
"�
$���)�)�+���
���
�
���*�*�4�0rc�N�UO2oUO2[OUO2UO
OOP2UOUO22UOUO]2UO
OO2UO2[OUO2UOUO
OO2P!r)r1rr#r5rr&r�r:r`�
is_closingr�r��
reset_mockrCrErGs& r�
test_close�'ProactorSocketTransportTests.test_close�s���
�
"�
"�
$��
���
����t�y�y�)��
�
�%�%�8�8��>�����
�
��(��������*��
�
�%�%�0�0�2�
���
����t�y�y�)�������6�6�=�=�>rc��UO2o[O2UmUO	2[
OUO2UOUOOO2P!r)r1rr r�rr#r5rrCr&r�rErGs& r�test_close_write_fut�1ProactorSocketTransportTests.test_close_write_fut�sV��
�
"�
"�
$���	�	���
�
���
����t�y�y�)�������6�6�=�=�>rc��UO2oQ,UmUO2[OUO
2UO
UOOO2P!rK)
r1r�rr#r5rrCr&r�rErGs& r�test_close_buffer�.ProactorSocketTransportTests.test_close_buffer�sR��
�
"�
"�
$���Y��
�
���
����t�y�y�)�������6�6�=�=�>rc�f�UO2oPUOOmUO	2[
OUO2UOOOP2UOUOOO2P!r�)r1r(�filenor�rr#r5rr&r�r:rC�shutdownrErGs& r�test_close_invalid_sockobj�7ProactorSocketTransportTests.test_close_invalid_sockobj�ss��
�
"�
"�
$��(*��	�	���%�
���
����t�y�y�)��
�
�%�%�8�8��>�������+�+�2�2�3r�asyncio.base_events.loggerc��UO2o[O2UmUO	P2UOUOO2UOUOO2P!r)r1rr rxrhr`rE�error)r+�	m_loggingr>s&& r�test_fatal_error�-ProactorSocketTransportTests.test_fatal_errorsU��
�
"�
"�
$���)�)�+���
�����������.�.�/����	���.�.�/rc�(�UO2oQ,Um[O29p!m[O29p1mUO
P2UOO2UOO2[OUO2UOOOP2UOPUO2UOUO]2P!rK)r1r�rr rOr�rx�cancelr:r#r5rr&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��[O2oUOOU2UOO	2oUO]2V OOmUO2oUOQ2UOP2[OUO2UO2P!)r�rL)rr r�set_exception_handlerr4rMr!r�r�r1r�rxr#r5�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��UO2oP	UmUOP2[OUO
2UO
UOOO2P!rn)
r1rorxr#r5rr`r&r�rErGs& r�test_force_close_idempotent�8ProactorSocketTransportTests.test_force_close_idempotent#sS��
�
"�
"�
$�����
��������t�y�y�)�	
����
�
�5�5�<�<�=rc�x�UO2oUOUOOO2P	UmUO
P2UO
P2[OUO2UO]UOOO2P!rn)r1rCr&r�rErorxr#r5rr��
call_countrGs& 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�f�UO2oUOUOOO2UO2UO2[OUO2UO]UOOO2P!r�)r1rCr&r�rErr#r5rr�r�rGs& 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��UO2oQ,UmUOP2[OUO
2UOOOP2UOPUO2P!rK)
r1r�rxr#r5rr&r�r:r�rGs& r�test_fatal_error_2�/ProactorSocketTransportTests.test_fatal_error_2Dsc��
�
"�
"�
$���Y��
�
��������t�y�y�)��
�
�%�%�8�8��>�����r�z�z�*rc��UO2oUOP2UOUOOO
2UOUOOO
2P!r)r1�_call_connection_lostr`r&r�rEr(rrGs& r�test_call_connection_lost�6ProactorSocketTransportTests.test_call_connection_lostMsT��
�
"�
"�
$��
� � ��&�����
�
�5�5�<�<�=�����	�	���.�.�/rc��UO2oUOUO22UO2UOO
O
[O2UO2UOUOO
O]2UO2P!r�)r1r`�
can_write_eof�	write_eofr(r�r:r'�SHUT_WRr�r�rrGs& r�test_write_eof�+ProactorSocketTransportTests.test_write_eofSs|��
�
"�
"�
$������(�(�*�+�
�����	�	���-�-�f�n�n�=�
����������+�+�6�6��:�
���
rc���UO2oUOO2oV!OOO
mUOQ2UO2UOUO2UOUOOO2UOOO
OUOQ2UO!]2UOO#2UOOO[$O&2UO)2P!rK)r1rr4�_loopr"r�r�r�r�r`�_eof_writtenrCr(r�rEr:rM�	_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��[UOUOUO2oUO	UO22UO
2UO	UO22UOO2UO	UOOO2UO2P!r)rrr(r&r`r�r�r�r�rrErGs& r�test_write_eof_write_pipe�6ProactorSocketTransportTests.test_write_eof_write_pipejs���
(��I�I�t�y�y�$�-�-�1������(�(�*�+�
��������
�
��(��	�	��������	�	���.�.�/�
���
rc�4�[UOUOUO2oUOO	2oV!O
OOmUOQ2UO2UOUO22UOUOOO2UO
OOO!UOQ2UO#]2UOO%2UOO%2UOUOO&O2UO'2P!rK)rrr(r&r4r�r"r�r�r�r�r`r�rCr�rEr:rMr�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�D�[UOUOUO2oUO	UO22UO
[29^tt^2UO2PPP2[U2P!)%fhK9hr)
rrr(r&rCr�r^�NotImplementedErrorr�rrGs& r�test_write_eof_duplex_pipe�7ProactorSocketTransportTests.test_write_eof_duplex_pipe�sg��
)��I�I�t�y�y�$�-�-�1������)�)�+�,�
�
�
�2�
3�
3��L�L�N�4����4�
3�s�)B�B	�B	c�``�RO2o]o,QNo[[U22nUU1QkoUROOO
mROO2ROUO2ROUO22UQ*FDKoROO2ROOO[U22JM	UO!2UO!2ROUO2ROUO22[#]
2FDoROO2J	ROOO[U]*22UO%2UO%2ROUO2ROUO22UQ*FDKoROO2ROOO[U22JM	UO!2UO%2[&O(2ROmROO2ROO*O-2ROOO[U]*22UO/2ROUO22P!)r]c��:```�ROO2oRO2nUOnUUU1QkoV2mUO	[R22U!)c�0:�RRP[R2#R2!r)rN)r��msgr7s���r�monkey�YProactorSocketTransportTests.test_pause_resume_reading.<locals>.recv_into.<locals>.monkey�s���"%��Y�c�#�h���x�r)rr4�popr7rMrN)r(r�r�r�r�r7�
reversed_msgsr+s&f  @@��rr9�IProactorSocketTransportTests.test_pause_resume_reading.<locals>.recv_into�sM����	�	�'�'�)�A��#�#�%�C��X�X�F�
 ��H�
�L�L��S��"��Hr:N�N:r��N)�data1�data2sdata3sdata4sdata5r)r1�list�reversedrr"r9rgr�rC�_pausedr`�
is_readingr&rDr:r;�
pause_reading�range�resume_readingrr �call_exception_handlerr�r)r+r>�index�msgsr9r��ir�sf      @r�test_pause_resume_reading�6ProactorSocketTransportTests.test_pause_resume_reading�s=���
�
"�
"�
$����F���X�d�^�,�
�	�5>��	�	���%�%�1��	�	����������$�����
�
��(���8�8�C��I�I���!��M�M�'�'�:�:�9�S�>�J��	����
��������
�
�#��������)��r��A��I�I���!���
�
�#�#�6�6�y��a��7I�J�
����
����������$�����
�
��(���9�9�C��I�I���!��M�M�'�'�:�:�9�S�>�J��	����
����+/�9�9�;��	�	�(��	�	�����	�	�(�(�:�:�<��
�
�#�#�6�6�y��a��7I�J�
���
��������)rc��`�UO2nU1QkUOOm[O
UO2UORO22UOO]2RO2UORO22RO2UORO22P!)c�&:�RO2!r)r)�_r>s&�r�<lambda>�QProactorSocketTransportTests.test_pause_reading_connection_made.<locals>.<lambda>�s���b�>N�>N�>Pr)
r1r&r8rgr#r5rrCr�assert_no_readerrr`rrGs&@r�"test_pause_reading_connection_made�?ProactorSocketTransportTests.test_pause_reading_connection_made�s����
�
"�
"�
$��4P��
�
�%�%�1����t�y�y�)��������)��	�	�"�"�1�%�
��������
�
��(�
���
��������)rc�H�UO2oUOUQ5UOUO2]2UO	UO
OO2UO	UO
OO2U!)��high)	r1�set_write_buffer_limitsr��get_write_buffer_sizerCr&�
pause_writingrE�resume_writing)r+rr>s&& r�pause_writing_transport�4ProactorSocketTransportTests.pause_writing_transport�s{��
�
"�
"�
$��
�"�"��"�-�����1�1�3�Q�7�������4�4�;�;�<�������5�5�<�<�=��	rc�P�UO]Q5oUOO2oV OOOmUO
Q2UOO2UOUOOO2UOP2UOO2UOUO2]2UOUOOO2P!)r�rs
large data)rrr4r"r�r�r�r�r`r&rrErMr�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��UO]Q5oUOO2oV OOOmUO
Q2UOO2UOUO2]2UOUOOO2UO
Q2UOO2UOUO2]2UOUOOO2P!)r�rs123�abc�rrr4r"r�r�r�r�r�rrCr&rrEr`)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��UO]Q5oUOO2oV OOOmUO
Q2UOO2UOUO2]2UOUOOO2UO
Q2UOO2UOUO2]2UOUOOO2UO
Q2UOO2UOUO2]2UOUOOO2P!)r�r�1s23r#r$rs&  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��UO]Q5oUOO2oUOP2V OOO
mUOQ2UOO2UOUO2]2UOUOOO2P!)r�rsvery large data)rrr4rMr"r�r�r�r�r�rrCr&rrErs&  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)rr!r&r(r)9�__name__�
__module__�__qualname__�__firstlineno__rr1r?rHrX�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�rrrr r&r*r-�__static_attributes__�__classdictcell__�
__classcell__�r,�
__classdict__s@@rrr!sB����!��[�<�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�``�\sQsQsnU1QksQQksQsQsQsQs	Qs
Q	sQ
sQs
\OQ2Q
2sQsQsQsQsQsQsQsQsQs\OQ2Q2sQsUsU9s!)�ProactorDatagramTransportTests�c�:�[RU_2UO2Um[O
2UmUOUOm[O[O2Um[O
[OQ5Um]UOOmP!))�spec_set)rrrrrr 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%cPL[UOOm[	UO
UOUOUQ5oUO[U2U!)N��address)	r|r(�getpeernamergrrr&rr)r+rGrs&& r�datagram_transport�1ProactorDatagramTransportTests.datagram_transport*sO��4;�D���	�	���)�.�t�y�y�$�)�)�/3�}�}�7>�@�	�	
�����3��rc��QoUO2oUOUQ2UOUOOO2UOOOUOUQQ5UOUO2UO]UO2P!�rL��addr��0.0.0.0i�)rI�sendtor`r!rEr:r(rCr�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�$�[Q2oUO2oUOUQ2UOUOOO
2UOOO
UOQQQ5P!rL)r;rIrQr`r!rEr:r(rSs&  r�test_sendto_bytearray�4ProactorDatagramTransportTests.test_sendto_bytearray<sp����!���+�+�-�	�����0�1�����
�
�,�,�3�3�4��
�
���/�/��I�I�w�%6�	0�	8rc�$�[Q2oUO2oUOUQ2UOUOOO
2UOOO
UOQQQ5P!rL)�
memoryviewrIrQr`r!rEr:r(rSs&  r�test_sendto_memoryview�5ProactorDatagramTransportTests.test_sendto_memoryviewDsp���'�"���+�+�-�	�����0�1�����
�
�,�,�3�3�4��
�
���/�/��I�I�w�%6�	0�	8rc��UO2oUOQQ2UOUOOO2UOOOUOQQQ5P!)rrMrO)rIrQr`r!rEr:r(�r+rs& r�test_sendto_no_data�2ProactorDatagramTransportTests.test_sendto_no_dataLsf���+�+�-�	�����/�0�����
�
�,�,�3�3�4��
�
���/�/��I�I�s�!2�	0�	4rc�L�UO2oUOOQ2[2UmUOQQ2UO
UOO
O2UOQQ,[UO22P!)r�r��rPi90�r�rb�r�rb)rIr��append�objectr�rQrCr!rEr�rr^s& r�test_sendto_buffer�1ProactorDatagramTransportTests.test_sendto_bufferSs����+�+�-�	���� � �!?�@�%�x�	������#5�6�������-�-�4�4�5����
+�
+�
-���"�"�#�	%rc��[Q2oUO2oUOOQ2[	2UmUO
UQ2UOUOOO2UOQQ,[UO22UOUO]*]*[2P!�r�rbrcrd)r;rIr�rerfr�rQrCr!rEr�rrQrT�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��[Q2oUO2oUOOQ2[	2UmUO
UQ2UOUOOO2UOQQ,[UO22UOUO]*]*[2P!rj)rZrIr�rerfr�rQrCr!rEr�rrQrTrks&  r�test_sendto_buffer_memoryview�<ProactorDatagramTransportTests.test_sendto_buffer_memoryviewks����8�$���+�+�-�	���� � �!?�@�%�x�	������ 2�3�������-�-�4�4�5����
+�
+�
-���"�"�#�	%�	
���i�/�/��2�1�5�u�=rc��QoUO2oUOOQ2[2UmUOUQ2UO
UOO
O2UOQQ,[UO22UOUO]*]*[2P!)rrbrc)rrb)
rIr�rerfr�rQrCr!rEr�rrQrTrks&  r�test_sendto_buffer_nodata�8ProactorDatagramTransportTests.test_sendto_buffer_nodataxs������+�+�-�	���� � �!?�@�%�x�	������ 2�3�������-�-�4�4�5����
+�
&�
(���"�"�#�	%�	
���i�/�/��2�1�5�u�=rr�c�J�Qo[29p0OOmUO	2o[
O2UmUOUQ2UOUOO2UOOUQ2]UmQUmUOU2UOU2UOU2UOU2UOU2UOOQ2P!)rL�'Fatal write error on datagram transportz!socket.sendto() raised exception.r)�123)�RuntimeErrorr!rQrgrIrr rhr`rEr: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�D�Qo[UOOmUO	2o[
O2UmUOUQ2UOUO]2UOUOO2P!�rLr)�ConnectionRefusedErrorr(rQrgrIrr rhr�r�rCrErSs&  r�test_sendto_error_received�9ProactorDatagramTransportTests.test_sendto_error_received�su����'=��	�	���$��+�+�-�	�!%����	������r�"�����-�-�q�1�����/�/�6�6�7rc�l�Qo[UOOmUO	QQ5o[
O2UmUOU2UOUOO2UOUOOO2P!)rLrF�rPr�)r~r!r�rgrIrr rhrQrCrEr`r&�error_receivedrSs&  r�$test_sendto_error_received_connected�CProactorDatagramTransportTests.test_sendto_error_received_connected�s~����)?��
�
���&��+�+�N�+�C�	�!%����	�����������/�/�6�6�7�����
�
�4�4�;�;�<rc�l�UO2oUO[UOQQ2P!)�strr)rIr^�	TypeErrorrQr^s& r�test_sendto_str�.ProactorDatagramTransportTests.test_sendto_str�s*���+�+�-�	����)�Y�%5�%5�u�b�Arc�p�UOQQ5oUO[UOQQ2P!)rPrFsstrr�)rPr�)rIr^�
ValueErrorrQr^s& r�test_sendto_connected_addr�9ProactorDatagramTransportTests.test_sendto_connected_addr�s3���+�+�N�+�C�	�����	�(�(�&�.�	Brc���UOQQ5oUO2UOUO]2UO	QQ2UOUO]2P!)r�rFrLr�)rIrr�r�rQr^s& r�test_sendto_closing�2ProactorDatagramTransportTests.test_sendto_closing�s[���+�+�D�+�9�	���������-�-�q�1�����$�'�����-�-�q�1rc�^�UO2oP	UmUO2UOUO2[
OUO2UOOO2UOOOP2P!rn)
rIror�r6r�r#r5rr(rr:r&r�r^s& r�test__loop_writing_closing�9ProactorDatagramTransportTests.test__loop_writing_closing�sv���+�+�-�	�!�	�����!����)�.�.�/����t�y�y�)��	�	���*�*�,��
�
�%�%�8�8��>rc�2�[29pOOmUO	2o[
O2UmUOOQ2UO2UOOUQ2P!)rLrvr})rxr!rQrgrIrr rhr�rer�r:)r+rjrs&  r�test__loop_writing_exception�;ProactorDatagramTransportTests.test__loop_writing_exception�sp��1=��?��m�m�"�"�.��+�+�-�	�!%����	����� � ��/����!����1�1�#&�#L�	Nrc�:�[UOOmUO	2o[
O2UmUOOQ2UO2UOUOO2P!)rLr})
r~r!rQrgrIrr rhr�rer�rCrEr^s& r�!test__loop_writing_error_received�@ProactorDatagramTransportTests.test__loop_writing_error_received�sj��+A��
�
���(��+�+�-�	�!%����	����� � ��/����!�����/�/�6�6�7rc��[UOOmUO	QQ5o[
O2UmUOOQ2UO2UOUOO2UOUOOO2P!)rPrFr�r})r~r!r�rgrIrr rhr�rer�rCrEr`r&r�r^s& 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���UOQQ5o[2oUOU2UOUOO
O2UO2P!)rPrFr�)rIr~rhrCr&r�rEr�)r+�m_excrrjs&&  r�test_fatal_error_connected�9ProactorDatagramTransportTests.test_fatal_error_connected�sU���+�+�N�+�C�	�$�&�����s�#�������5�5�<�<�=�
���!r)rr!r&r(r)r/r0r1r2rrIrTrWr[r_rgrmrprsrr8rzrr�r�r�r�r�r�r�r�r�r9r:r;r<s@@rr?r?s�����*��4�8�8�4�	%�>�>�>�
�Z�Z�0�1�N�2�N�,
8�
=�B�B�
2�?�
N�8�	=�
�Z�Z�2�3�"�4�"�"rr?c�T``�\sQsQsnU1Qks\OQ2Q2sQsQs	Qs
QsQ	sQ
s
QsQs\OQ
2Q2sQsQsQsQsQsQsQs\O2\O6O8Q2Q2sQsQsQs Us!U9s"!)�BaseProactorEventLoopTests�c	�z:�[RU_2[O2Um[
O2Um[
O2[
O2tUmUm	[
OQUOUO1Q59^tt^2[
OQ29^tt^2[UO2UmPPP2PPP2UOUO2P!)%fhK59h)%fhK@9h)�)asyncio.proactor_events.socket.socketpair)r��signal.set_wakeup_fd)rrr#�mock_nonblocking_socketr(rr r!�ssock�csockr8rr�set_event_loopr*s&�rr� BaseProactorEventLoopTests.setUp�s����
��
���6�6�8��	��	�	���
�!%����d�i�i�k���
�D�J�
�Z�Z�C�&*�j�j�$�*�*�%=�?�?����2�3�3�1�$�-�-�@��	�4�?�	
���D�I�I�&�4�3��?�?�s0�0D*�D	�*D*�D'
� D'
�"D*�*D:	�3D:	r�c���[O2[O219vq#Um[OQ29^tt^2[	UO
2oPPP2UO
WOU2UO
UOU2UOUO]2UO2P!)%fhKv9h)r�)rr r�r8rr!�assertIs�_ssock�_csockr��
_internal_fdsr)r+�
socketpairr�r�rs&&   rr?�$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�C'	� C'	c��UOO2UOUOO]2UO	UO
OO2UO	UOOO2UOUOO2UOUOO2P	UOmP!r\)
r�_close_self_piper�r�r`r�rrEr�r6r�r��_closed�r+s&r�test_close_self_pipe�/BaseProactorEventLoopTests.test_close_self_pipes����	�	�"�"�$�������0�0�!�4�����
�
�(�(�/�/�0�����
�
�(�(�/�/�0����$�)�)�*�*�+����$�)�)�*�*�+�!��	�	�rc�d�[O2UOmUOO	2UOUOOO2UOUOOO2UOUOO2UOOO2UOO	2UOUOOO2P!r)rr rr�rr`rEr!r6r"r�rCr�s&rr��%BaseProactorEventLoopTests.test_closes���%)�Y�Y�[��	�	�"��	�	��������	�	�2�2�9�9�:�����
�
�+�+�2�2�3����$�)�)�-�-�.��	�	�"�"�-�-�/��	�	����������3�3�:�:�;rc��UOOUO[O22oUOU[2[U2P!r)r�_make_socket_transportr(rr%rQrrrGs& r�test_make_socket_transport�5BaseProactorEventLoopTests.test_make_socket_transport(s>��
�Y�Y�
-�
-�d�i�i��9I�9I�9K�
L�����b�":�;���rc�6�UOO2UOOO	UO
Q2UOOOOO	UOO2P!�i)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���[O2oVOmUOO	U2UOUOO2UOOOUOQ2UOOOOOUOO2P!r�)rr r�_self_reading_futurer�r`r7rEr!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�(�[O2UOm[	2UO
OmUOO2UOUOOO2P!r)rr rrr|r!r�rgr�r`rEr�s&r� test_loop_self_reading_exception�;BaseProactorEventLoopTests.test_loop_self_reading_exception<sT��+/�9�9�;��	�	�(�)0���
�
���&��	�	�$�$�&�����	�	�8�8�?�?�@rc��UOO2UOOO	Q2P!)�)r�_write_to_selfr�r�r:r�s&r�test_write_to_self�-BaseProactorEventLoopTests.test_write_to_selfBs(���	�	� � �"��
�
���*�*�5�1rc�>�UOO,2P!r)r�_process_eventsr�s&r�test_process_events�.BaseProactorEventLoopTests.test_process_eventsFs���	�	�!�!�"�%rr�c��[O2o[O29p0OmUOO	V O
2UO
UO2UO]*]*oU2UOOOUO
2[O2o[O2[O21UOm
[O29p`OmUU2UO
UOO2UO
UO2[2UOmUU2UO
UO
O"O2UO
UO$O2P!r\)rr r�	call_soon�_start_servingr(r`rErRr!�acceptr:r7r�r�r|rgrr�)r+r��pfr�rr=�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��[O2o[O29p OmUOO	VO
2UO]*]*oUOO2oUO2UU2UOUO
OO2P!r\)rr rr�r�r(rRr4r�r`rrE)r+r�r�rr=s&    r�test_create_server_cancel�4BaseProactorEventLoopTests.test_create_server_canceles���
�Y�Y�[��*.�)�)�+�5�	�I�I�'��	�	� � ��Y�Y�/��"�"�1�%�a�(���i�i�%�%�'���
�
���S�	�����	�	���.�.�/rc��[O2o[O2o[O2o[O2oUO2UUO2U-UOmUOOU2UO
UOO2UO
UOO2UOO
OU2UOUOO2UOUOO2P!r)
rr r�r�_accept_futures�
_stop_servingr`rrEr�r!r:rC)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��[O[O2UmUO
O
UOUO2!r)r#r$rrCr&r�_make_datagram_transportr(r�s&rrI�-BaseProactorEventLoopTests.datagram_transport�s9��"�5�5�g�6N�6N�O��
��y�y�1�1�$�)�)�T�]�]�K�Krc��UO2oUOU[2UOU[O2[U2P!r)rIrQrr�DatagramTransportrrGs& r�test_make_datagram_transport�7BaseProactorEventLoopTests.test_make_datagram_transport�s?��
�
$�
$�
&�����b�"<�=����b�'�";�";�<���rc��UO2oUOOQ2UO2UOO
OOUOQQQ5UOO
OOOOUO2[U2P!)rLrM��	127.0.0.1i$/�rLr�)rIr��
appendleftr�rr"rQr:r(r�r�rrGs& r�test_datagram_loop_writing�5BaseProactorEventLoopTests.test_datagram_loop_writing�s���
�
$�
$�
&��
�
�
���=�>�
�����	�	���"�"�5�5�d�i�i��Oc�5�d��	�	���"�"�/�/�A�A���r�/�/�0���rc��UO2oUO2UOOOOUOQ2UOUOOO2UOUOOO2[U2P!)��)
rIrBrr"�recvfromr:r(rCr&�datagram_receivedrEr�rrGs& r�test_datagram_loop_reading�5BaseProactorEventLoopTests.test_datagram_loop_reading�s���
�
$�
$�
&��
�����	�	���$�$�7�7��	�	�:�N�������8�8�?�?�@�������5�5�<�<�=���rc��UOO2oUOQ2UO2oVmUOU2UOOOOUOQ2UOOOQQ2[U2P!)rLr�r�r�)
rr4rMrIrOrBr"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���rrZc�R�UOO2oUOQ2UO2oUO	[
UOU2[O2Um	Vm
UO
U2UOUOOOO2UOUO O"O2UOUOO2[%U2P!)r)rr�)rr4rMrIr^r_rBrr rrOr`r"r�rErCr&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��[29pOOOmUO2o[O2Um[O2UOm
UO2UOOOU2[U2P!r)rfrr"r�rgrIrr rh�	_protocolr�rBr: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��[29pOOOmUO2o[O2Um[O2UOm
UOOQ2UO2UOOOU2[U2P!)�Hello)r
r�)rfrr"rQrgrIrr 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�rr!r&r(r�)#r/r0r1r2rrr8r?r�r�r�r�r�r�r�r�r�r�r�rIr�r�r�rr3r4r5r6r7rrrr9r:r;r<s@@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��``�\sQsQsnQQ*sQQ\O2s\U1Qk2s	\U1Qk2s
U1QksQQksQ	s
Q
sQsQsQ
sQsQsUsU9s!)�&ProactorEventLoopUnixSockSendfileTests���c�@`�\sQsQsnQsQsQsQsQsQs	Us
P!)�.ProactorEventLoopUnixSockSendfileTests.MyProto��c�z�P
UmP
Um[2UmUO	2UmPUmP!rs)�started�closedr;r�r4r=r)r+rs&&r�__init__�7ProactorEventLoopUnixSockSendfileTests.MyProto.__init__�s0�� �D�L��D�K�!��D�I��)�)�+�D�H�!�D�Nrc�"�P	UmVmP!rn)rrr^s&&rr8�>ProactorEventLoopUnixSockSendfileTests.MyProto.connection_made�s���D�L�&�Nrc�>�UOOU2P!r)r��extend)r+r�s&&rrD�<ProactorEventLoopUnixSockSendfileTests.MyProto.data_received�s���I�I���T�"rc�L�P	UmUOOP2P!rn)rr=rM)r+�excs&&rr��>ProactorEventLoopUnixSockSendfileTests.MyProto.connection_lost�s���D�K��H�H����%rc��@ �UOEPiw�K
P!K3hr)r=r�s&r�wait_closed�:ProactorEventLoopUnixSockSendfileTests.MyProto.wait_closed�s����(�(�N�N�s���)rr�r=rr)r/r0r1r2rr8rDr�r#r9r:)r=s@r�MyProtor�s#����	"�	'�	#�	&�	�	rr%c��:�[[OQ29^tt^2oUOUO2PPP2[
RU_2P!)%fhK 9h)�wb)�openr�TESTFNr��DATAr�
setUpClass)�cls�fpr,s& �rr+�1ProactorEventLoopUnixSockSendfileTests.setUpClass�sA���
�)�"�"�D�
)�
)�R��H�H�S�X�X��*�
����*�
)�s�A�A)	�"A)	c�n:�[O[O2[RU_2P!r)r�unlinkr)r�
tearDownClass)r,r,s&�rr1�4ProactorEventLoopUnixSockSendfileTests.tearDownClass�s"�������)�)�*�
���rc�b:�[O2UmUOUO2UO	UOO
2[
[OQ2Um	UO	UOO
2[RU_-2P!)�rb)r�ProactorEventLooprr�rrr(rr)�filerrr*s&�rr�,ProactorEventLoopUnixSockSendfileTests.setUp�sj����-�-�/��	����D�I�I�&�����	�	���(���)�)�4�0��	�����	�	���(�
��
�rc��[O[O[O2oUOU2UO	[O
[OQ2UO	[O
[OQ2U%cUOUO2U!)r)
r'�AF_INET�SOCK_STREAM�setblocking�
setsockopt�
SOL_SOCKET�	SO_SNDBUF�	SO_RCVBUFrr)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�:�UOOU2!r)r�run_until_complete)r+�coros&&r�run_loop�/ProactorEventLoopUnixSockSendfileTests.run_loops���y�y�+�+�D�1�1rc��```�RO2oRORO2n[O2oROP
Q5oUOQU12RO
ROOU1QkUQ52nRO
ROOVO222UUU1QkoROU2UR1!)F)r@r�c�
:�R!rr)�protos�rr�@ProactorEventLoopUnixSockSendfileTests.prepare.<locals>.<lambda>s���Er)r(c�:�ROd:ROO2RORO22RO2RORO22P!r)rrrGr#)rKr+�servers���rr@�?ProactorEventLoopUnixSockSendfileTests.prepare.<locals>.cleanupsR������*����%�%�'��
�
�e�/�/�1�2��L�L�N��M�M�&�,�,�.�/r)rBr%rr�find_unused_port�bindrG�
create_server�sock_connect�getsocknamer)r+r(�port�srv_sockr@rKrNsf    @@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
�t�UO2vq[2oUO[OQ29^tt^2UOUOOV]P22PPP2UOUOO2]2P!)%fhK<9h��not a regular file)rWrf�assertRaisesRegexr�SendfileNotAvailableErrorrGr�_sock_sendfile_nativer�r6�tell�r+r(rKr�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'�'B7	�0B7	c
��UO2vq[O2oUO[O
Q29^tt^2UO
UOOV]P22PPP2UOUOO2]2P!)%fhK<9hrZ)rW�io�BytesIOr\rr]rGrr^r�r6r_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�-B2�2C	�;C	c
��UO2vq[O2oPUOmUO[OQ29^tt^2UOUOOV]P22PPP2UOUOO2]2P!)%fhK<9h)r�r[)rWrr r�r�r\rr]rGrr^r�r6r_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�"-C�C	�C	c�@�UOOP	2UOP	Q5oUO[Q29^tt^2UOUOO
VO22PPP2P!)%fhP!9h)T)rAzmust be non-blocking)r�	set_debugrBr\r�rG�
sock_sendfiler6)r+r(s& r�test_blocking_socket�;ProactorEventLoopUnixSockSendfileTests.test_blocking_socket?sj���	�	���D�!������.��
�
#�
#�J�0F�
G�
G��M�M�$�)�)�1�1�$�	�	�B�C�H�
G�
G�
G�s�
5B�B	�B	)r6rs�12345abcde12345abcde12345abcde12345abcde12345abcde12345abcde12345abcde12345abcde12345abcde12345abcde12345abcde12345abcde12345abcde12345abcde12345abcde12345abcde)TF)r/r0r1r2r*rr%r%�classmethodr+r1rrBrGrWrarfrirnr9r:r;r<s@@rrr�sz������$�D��'�"�"��.����
� �� ���2��0.�.�.�D�Drr�__main__)�__doc__rdr'r3r5rr�asyncio.proactor_eventsrrrrr�test.supportrr�test.test_asyncior	r#rr�TestCaserr?r�r4�platformrr/�mainrrr�<module>rys���"�	�
��
���9�<�?�@�>�"�&�1�0��{=�:�#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