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_interpreters/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/test_interpreters/__pycache__/test_queues.cpython-315.opt-1.pyc
R
>lqj�Zc�d�]PHs]PHs]PHs]QHGs]PHs]QHGsGs\OQ2s
]QH,Gs]QH4G
sGs]QH@GsGsQs\O*\O,*sQsQ	Q
\2sQQ\2sQ
Q\2sQQ\2s\Q6Xc\O:2P!P!)�)�dedent)�
import_helper�Py_DEBUG�
_interpqueues)�interpreters)�_queues�_crossinterp)�_run_output�TestBaseic�>�[[O22!�N)�lenr�list_all���7C:\Python315\\Lib\test\test_interpreters\test_queues.py�get_num_queuesrs���w���!�"�"rc�(`�\sQs]snQsQsUsP!)r
c��[O2FDvoo[OU2J	P![cJ1h9hr)rr�destroy�	Exception)�self�qid�_s&  r�tearDown�TestBase.tearDowns@�� �)�)�+�I�C��A�
�����$�,���
��
�s�:�	A	�A	�A	r)�__name__�
__module__�__qualname__�__firstlineno__r�__static_attributes__�__classdictcell__��
__classdict__s@rr
r
s�����rr
c�:`�\sQs]snQsQsQsQsQsUs	P!)�
LowLevelTestsc�<�[O[2P!r)�	importlib�reload�queues�rs&r�test_highlevel_reloaded�%LowLevelTests.test_highlevel_reloaded(s������ rc��[O][P2o[OU2UO	[2]2UO
[O29^tt^2[OU2PPP2UO
[O29^tt^2[OU2PPP2P!)%fhKW9h)%fhP!9h)�)
r�create�REPLACEr�assertEqualr�assertRaisesr)�QueueNotFoundError�get�rrs& r�test_create_destroy�!LowLevelTests.test_create_destroy,s����n�n�Q���,�����������)�1�-�
�
�
�v�8�8�
9�
9��K�K���:�
�
�
�v�8�8�
9�
9��O�O�C� �:�
9�:�
9��
9�
9�
9�s$�3C�8C+�C(	�!C(	�+C<	�4C<	c
��UOQ[Q[OQ[Q022vqUOUP2[%cUOUP2P!UOUP2P!)z-cz
                import z. as _queues
                _queues.create(2, z, -1)
                )�assert_python_okrrrr0r1r�assertNotEqual)r�stdout�stderrs&  r�test_not_destroyed� LowLevelTests.test_not_destroyed5s{���.�.�����(�(�)�*#�#*�)�,��
�
���	
�����$��8������+����V�R�(rc	�~�UOQ29^tt^2[O][P2o[O	U2[OU2UO
[2]2PPP2UOQ29^tt^2[O][P2o[O	U2[O	U2[OU2[OU2UO
[2]2PPP2UOQ29^tt^2[O][P2o[O	U2[O	U2[OU2[OU2UO
[2]2PPP2UOQ29^tt^2[O][P2oUO[O29^tt^2[OU2PPP2PPP2P!)%fhCK�9h)%fhCKT9h)%fhK�9h)%fhKU9h)%fhP!9h)�typicalz
bind too much�nestedzrelease without binding)�subTestrr/r0�bind�releaser1rrr2r)�
QueueErrorr5s& r�test_bind_release�LowLevelTests.test_bind_releaseDs���
�\�\�)�
$�
$��.�.��G�R�0�C��L�L����O�O�C� ����^�-�q�1�	%��\�\�/�
*�
*��.�.��G�R�0�C��L�L����L�L����O�O�C� ��O�O�C� ����^�-�q�1�
+��\�\�(�
#�
#��.�.��G�R�0�C��L�L����L�L����O�O�C� ��O�O�C� ����^�-�q�1�
$��\�\�3�
4�
4��.�.��G�R�0�C��"�"�6�#4�#4�5�5�����$�6�5�
4�-%�
$�
$��+�
*�
*��$�
#��6�5��5�
4�
4�si�A I�B
I1�B
J�2AJ+�5J	�J+�I.	�&I.	�1J	�:J	�J	�J	�J(
�!J(
�#J+�+J<	�4J<	r)
rrrrr+r6r=rFr r!r"s@rr%r%s����!�!�
)�%�%rr%c�X`�\sQs]asnQsQsQsQsQsQs	Qs
QsQ	sQ
s
UsP!)�
QueueTestsc	��UOQ29^tt^2[O2oUOUO]2PPP2UOQ29^tt^2[O]2oUOUO]2PPP2UOQ29^tt^2[O]d2oUOUO]d2PPP2UOQ29^tt^2[O]2oUOUO]2PPP2UOQ29^tt^2[OQ2oUOUOQ2PPP2UOQ29^tt^2UO[29^tt^2[OQ2PPP2PPP2P!)%fhCK�9h)%fhCK�9h)%fhCKA9h)%fhCK9h)%fhK�9h)%fhK}9h)%fhP!9h)�vanillaz
small maxsizezbig maxsizez
no maxsizeznegative maxsizezbad maxsize�1���)rBr)r/r1�maxsizer2�	TypeError�r�queues& r�test_create�QueueTests.test_createcs���
�\�\�)�
$�
$��M�M�O�E����U�]�]�A�.�%��\�\�/�
*�
*��M�M�!�$�E����U�]�]�A�.�+��\�\�-�
(�
(��M�M�#�&�E����U�]�]�C�0�)��\�\�,�
'�
'��M�M�!�$�E����U�]�]�A�.�(��\�\�,�
-�
-��M�M�#�&�E����U�]�]�C�0�.��\�\�-�
(�
(��"�"�9�-�-��
�
�c�"�.�)�
(�)%�
$�
$��+�
*�
*��)�
(�
(��(�
'�
'��.�
-��
.�-��)�
(�
(�s��2H�.3H�3H-�3I�*3I�>I;�I(	�3I;�H	�H	�H*	�"H*	�-H>	�6H>	�I	�
I	�I%	�I%	�(I8
�1I8
�3I;�;J	�J	c���[O2o[O2oUO[	QUO
Q022UO
Q29^tt^2[O2oUOU2UO2oUOVC2PPP2UO
Q29^tt^2[O2oUOU2[U[	Q22o[U2oUOVuO
2PPP2UO
Q29^tt^2[U[	Q22o[U2oUO2oUOUO
U2PPP2P!)%fhCK9h)%fhK�9h)%fhP!9h)ze
            from concurrent.interpreters import _queues as queues
            queue1 = queues.Queue(z)
            zsame interpreterzfrom current interpreterzX
                queue4 = queue1.get()
                print(queue4.id)
                zfrom subinterpreterz~
                queue5 = queues.create()
                queue1.put(queue5)
                print(queue5.id)
                )
r)r/r�execr�idrB�putr4�assertIsr	�intr1)	r�queue1�interp�queue2�queue3�queue4�outr�queue5s	&        r�test_shareable�QueueTests.test_shareable|sk��������$�$�&�����F� #�#)�9�9�+�.
���	�
�\�\�,�
-�
-��]�]�_�F��J�J�v���Z�Z�\�F��M�M�&�)�	.��\�\�4�
5�
5��]�]�_�F��J�J�v���f�f�.�'��C��c�(�C����S�)�)�,�6��\�\�/�
0�
0��f�f�.�'��C�
�c�(�C��Z�Z�\�F����V�Y�Y��,�1�
0�!.�
-�
-��6�
5��1�
0�
0�s9�-AF0�A"G�A
G�0G	�9G	�G	�
G	�G(	� G(	c�r�[O2oUOUO[2P!r)r)r/�assertIsInstancerVrYrPs& r�test_id_type�QueueTests.test_id_type�s!���
�
������e�h�h��,rc��UO[O29^tt^2[OQ2PPP2P!)%fhP!9h��@B)r2r)r3�Queuer*s&r�test_custom_id�QueueTests.test_custom_id�s4��
�
�
�v�8�8�
9�
9��L�L��#�:�
9�
9�
9�s�A
�
A	�A	c��[O2oUO[29^tt^2QUmPPP2P!)%fhP!9hrh)r)r/r2�AttributeErrorrVrPs& r�test_id_readonly�QueueTests.test_id_readonly�s4���
�
���
�
�
�~�
.�
.� �E�H�/�
.�
.�
.�s�A�A	�A	c��[O]
2oUO[29^tt^2QUmPPP2P!)%fhP!9h)�
ri)r)r/r2rnrNrPs& r�test_maxsize_readonly� QueueTests.test_maxsize_readonly�s7���
�
�b�!��
�
�
�~�
.�
.�%�E�M�/�
.�
.�
.�s�A�A	�A	c��[O2o[UO2o[U2oUO	V22P!r)r)r/�hashrVr1)rrQ�expected�actuals&   r�
test_hashable�QueueTests.test_hashable�s1���
�
�������>���e�������*rc��[O2o[O2oUOV2UOV2P!r)r)r/r1r:)rrZr\s&  r�
test_equality�QueueTests.test_equality�s4����������������(����F�+rc	�j�[O2o[[O]*2FDcoUOUQ59^tt^2[OV2o[OU2oUOVA2PPP2Je	P!)%fhJz9h)�)�protocol)	r)r/�range�pickle�HIGHEST_PROTOCOLrB�dumps�loadsr1)rrQr��data�	unpickleds&    r�test_pickle�QueueTests.test_pickle�st���
�
����f�5�5��9�:�H����x��0�0��|�|�E�4��"�L�L��.�	�� � ��2�1�0�;�0�0�0�s�>B!	�!B2
�*B2
r)rrrrrRrarerkrorsryr|r�r r!r"s@rrIrIas8����#�2!-�F-�$�!�
&�
+�,�3�3rrIc�`�\sQs]�snQsQsQsQsQsQs	Qs
QsQ	sQ
s
QsQsQ
sQsQsQsQsUsP!)�TestQueueOpsc�@�[O2oUO2oUOP2UO2oUO	2UO2oUOUP	2UOUP
2UOUP	2P!r)r)r/�emptyrWr4rX)rrQ�before�during�afters&    r�
test_empty�TestQueueOps.test_empty�sl���
�
��������
�	�	�$�������
�	�	�����
���
�
�f�d�#��
�
�f�e�$��
�
�e�T�"rc�v	�QFCDAoUOQU029^tt^2SoP
,U]*]**oP	V1$P	V1]*$[OU2o,oUO2,o[	U2FD3oUOUO
22UOP2J5	UOUO
22UO[O29^tt^2UOP2PPP2UOUO22[	U2FD2oUOUO
22UO2J4	UOUO
22UO[O29^tt^2UO2PPP2UOUO
22UOUO22UOVS2UOU,QN2PPP2CJD	QFCDoSOU%c
QU]*0LQ29^tt^2]
oP
,U]*]**o[OUo,oUO2,o[	U2FD3oUOUO
22UOP2J5	UOUO
22UOUO22[	U2FD2oUOUO
22UO2J4	UOUO
22UO[O29^tt^2UO2PPP2UOUO
22UOUO22UOVS2UOU,QN2PPP2CJ	P!)%fhCKL9h)%fhCK�9h)%fhCJ�9h)%fhK�9h)%fhCJj9h)rzmaxsize=z	<default>)r��)TFT)r)r)���)rM)
rBr)r/r�r��append�full�
put_nowaitr2�	QueueFull�
get_nowait�
QueueEmptyr1)	rrN�
num_to_addrwrQrxr�r�argss	&        r�	test_full�TestQueueOps.test_full�sM��!�G������	�2�3�3�$�
�!�7�j�1�n�q�&8�9��$(��!�(,��1��%��
�
�g�.�����������z�*�A��M�M�%�*�*�,�/��$�$�T�*�+��
�
�e�j�j�l�+��&�&�v�'7�'7�8�8��$�$�T�*�9����U�[�[�]�+��z�*�A��M�M�%�*�*�,�/��$�$�&�+��
�
�e�j�j�l�+��&�&�v�'8�'8�9�9��$�$�&�:��
�
�e�j�j�l�+����U�[�[�]�+�� � ��2�� � ��(;�<�94�3�"�@.�D����d���a��	�2��L�L��
�!�7�j�1�n�q�&8�9���
�
�t�,�����������z�*�A��M�M�%�*�*�,�/��$�$�T�*�+��
�
�e�j�j�l�+����U�[�[�]�+��z�*�A��M�M�%�*�*�,�/��$�$�&�+��
�
�e�j�j�l�+��&�&�v�'8�'8�9�9��$�$�&�:��
�
�e�j�j�l�+����U�[�[�]�+�� � ��2�� � ��(;�<�1M�L�.�#9�8�8��:�9�9��-4�3�3��d:�9��%M�L�L�s��CQ>	�Q
�B/Q>	�Q*
�A+Q>	�?ER&	�R
�A+R&	�Q'�Q'�!	Q>	�*Q;�3Q;�5	Q>	�>R
�R
�R#�R#�R&	�&R8
�/R8
c�$�,QNo,o[O2o[]2FD3oUOUO	22UOP2J5	UOUO	22UO
2UOUO	22UOP2UOUO	22[]2FD2oUO
2UOUO	22J4	UOP2UOUO	22UO
2UOUO	22UOV!2P!)r)rrr.r�r.r�r.rrrr)r)r/r�r��qsizerWr4r1)rrwrxrQrs&    r�
test_qsize�TestQueueOps.test_qsizes���4�����
�
����q��A��M�M�%�+�+�-�(��I�I�d�O��	�
�
�e�k�k�m�$�
�	�	���
�
�e�k�k�m�$�
�	�	�$���
�
�e�k�k�m�$��q��A��I�I�K��M�M�%�+�+�-�(��	�	�	�$���
�
�e�k�k�m�$�
�	�	���
�
�e�k�k�m�$�����*rc��[[]22o[O2o[]2FDoUO	U2J	[]2Tt,tFDpBO2MJ	ooUO
VQ2P!ttoh)�)�listr�r)r/rWr4r1)rrwrQ�irrxs&     r�test_put_get_main�TestQueueOps.test_put_get_main&sb����b�	�?���
�
����r��A��I�I�a�L��',�R�y�1�y�!�)�)�+�y��1�����*��2s�B
c��[O]2oUOP2UOP2UO[O29^tt^2UOPQQ5PPP2UO[O29^tt^2UOP[
Q2PPP2UO
2UOP2P!)%fhKz9h)%fhKF9h)r.皙�����?��timeout)r)r/rWr2r��HUGE_TIMEOUTr4rPs& r�test_put_timeout�TestQueueOps.test_put_timeout/s����
�
�a� ��
�	�	�$��
�	�	�$��
�
�
�v�/�/�
0�
0��I�I�d�C�I�(�1�
�
�
�v�/�/�
0�
0��I�I�d�L�#�.�1�
�	�	��
�	�	�$��1�
0��
0�
0�s$�!C'�$C:�'C7	�0C7	�:D
	�D
	c���[O]2oUOP2UOP2UO[O29^tt^2UOP2PPP2UO[O29^tt^2UOPP
2PPP2UO[O29^tt^2UOPP
[Q5PPP2UO2UOP2P!)%fhK�9h)%fhK�9h)%fhKY9h)r.r�)r)r/r�r2r�rWr�r4rPs& r�test_put_nowait�TestQueueOps.test_put_nowait:s����
�
�a� ��
�����
�����
�
�
�v�/�/�
0�
0����T�"�1�
�
�
�v�/�/�
0�
0��I�I�d�E�"�1�
�
�
�v�/�/�
0�
0��I�I�d�E�<�I�8�1�
�	�	��
�����1�
0��
0�
0��
0�
0�s6�!D(�"D;�$E�(D8	�1D8	�;E	�E	�E	�E	c��PP	]
QQQ,QNQ]
Q]-1FD�oUO[U229^tt^2[O2oUO	U2UO2oUO
V12UO	U2UO2oUO
V12PPP2J�	P!)%fhJ�9h)N�spam�spam�a�b)rr��rr.r�)rB�reprr)r/rWr4r1r�)r�objrQ�obj2s&   r�test_put_full_fallback�#TestQueueOps.test_put_full_fallbackGs����������
�"�c�2��

�C����d�3�i�(�(��
�
����	�	�#���y�y�{��� � ��+��	�	�#���'�'�)��� � ��+�)�(�

�)�(�(�s�A:C	�C
�	C
c��[O2oUO[O29^tt^2UO	QQ5PPP2UO[O29^tt^2UO	[
Q2PPP2P!)%fhKX9h)%fhP!9h)r�r�)r)r/r2r�r4r�rPs& r�test_get_timeout�TestQueueOps.test_get_timeout^sw���
�
���
�
�
�v�0�0�
1�
1��I�I�c�I�"�2�
�
�
�v�0�0�
1�
1��I�I�l�C�(�2�
1�2�
1��
1�
1�
1�s#�B!�B4�!B1	�*B1	�4C	�=C	c�6�[O2oUO[O29^tt^2UO	2PPP2UO[O29^tt^2UOP
2PPP2UO[O29^tt^2UOP
[Q5PPP2P!)%fhK�9h)%fhKl9h)%fhP!9h)Nr�)r)r/r2r�r�r4r�rPs& r�test_get_nowait�TestQueueOps.test_get_nowaites����
�
���
�
�
�v�0�0�
1�
1�����2�
�
�
�v�0�0�
1�
1��I�I�e��2�
�
�
�v�0�0�
1�
1��I�I�e�\�I�2�2�
1�	2�
1��
1�
1��
1�
1�
1�s5�C!�>C4�?D�!C1	�*C1	�4D	�=D	�D	�D	c
�$�[[]22o[O2oQFD�oUO	UQ029^tt^2[V#2o[]2FDoUO
U2J	[]2Tt,tFD	pd2MJ	ooUOVq2,QNoUO
U2U2o	UOV�2UOV�2PPP2J�	P!ttoh)%fhJ�9h)r��()�r4r�r�)	r�r�r)r/rB�getattrrWr1�assertIsNot)
rrwrQ�methnamer4r�rrxr�r�s
&         r�test_put_get_full_fallback�'TestQueueOps.test_put_get_full_fallbackns�����b�	�?���
�
���-�H�����
�"�o�.�.��e�.���r��A��I�I�a�L�#�).�r��3��A�#�%���3�� � ��2����	�	�#���u��� � ��+�� � ��+�/�.�.��4�/�.�.�s%�
<C>	�	C9�AC>	�9C>	�>D
�D
c�(�[O2oUO[Q22QFDFoUO	UQ029^tt^2UO[QUQ022PPP2JH	P!)%fhJ]9h)zs
            from concurrent.interpreters import _queues as queues
            queue = queues.create()
            r�zh
                    orig = b'spam'
                    queue.put(orig)
                    obj = queue.z�()
                    assert obj == orig, 'expected: obj == orig'
                    assert obj is not orig, 'expected: obj is not orig'
                    r�)rr/rUrrB)rr[r�s&  r�test_put_get_same_interpreter�*TestQueueOps.test_put_get_same_interpreter�s����$�$�&�����F���	�.�H�����
�"�o�.�.����F�(!�"*�
�+�$���/�.�.�.�.�.�s�B	�B
�	B
c�~�[O2o[O2o[O2oUO[	[O
22]2Q	FCD1oUO
UQ029^tt^2QoUOU2[U[QUOQUOQUQ[U2Q0	22oUO[	[O
22]2UOUO2]2UOUO2]2[V42oU2oUOUQ2UO[U2[U22PPP2CJ4	P!)%fhCJJ9h)
r.r�r�z}
                        from concurrent.interpreters import _queues as queues
                        queue1 = queues.Queue(z0)
                        queue2 = queues.Queue(z{)
                        assert queue1.qsize() == 1, 'expected: queue1.qsize() == 1'
                        obj = queue1.a()
                        assert queue1.qsize() == 0, 'expected: queue1.qsize() == 0'
                        assert obj == b'spam', 'expected: obj == obj1'
                        # When going to another interpreter we get a copy.
                        assert id(obj) != aV, 'expected: obj is not obj1'
                        obj2 = b'eggs'
                        print(id(obj2))
                        assert queue2.qsize() == 0, 'expected: queue2.qsize() == 0'
                        queue2.put(obj2)
                        assert queue2.qsize() == 1, 'expected: queue2.qsize() == 1'
                        seggsr�)rr/r)r1r
rrBrWr	rrVr�r�r:rY)	rr[rZr\r��obj1r_r4r�s	&        r�#test_put_get_different_interpreters�0TestQueueOps.test_put_get_different_interpreters�s\���$�$�&����������������V�_�_�.�/��3�-�H�����
�"�o�.�.����
�
�4� �!��� /�/5�y�y�k�:/�/5�y�y�k�:&�&.�Z�0+�,.�d�8�*�5�����$� � ��V�_�_�%6�!7��;�� � ������3�� � ������3��f�/���u��� � ��w�/��#�#�B�t�H�c�#�h�7�;/�.�.�.�.�.�s�D	F*	�*F<
�3F<
c	�`�QU1QkkoROQ29^tt^2[O2oUU2o=UO2oRO	U[O
2RO
UO2]2RO[O29^tt^2UO2PPP2PPP2ROQ29^tt^2[O2oUU[O
2o=UO2oRO	U[O
2RO
UO2]2RO[O29^tt^2UO2PPP2PPP2ROQ29^tt^2[O2oUU[O2o=RO
UO2]2RO[O29^tt^2UO2PPP2RO
UO2]2RO[O29^tt^2UO2PPP2PPP2ROQ29^tt^2[O2oUU[O2o=RO
UO2]2RO[O29^tt^2UO2PPP2UOQ[OQ5RO
UO2]2UU[O]2oRO
UO2]2UO]*[OQ5RO
UO2]2=RO
UO2]2UO2oUO2oRO
UQ2RO
U]*2RO
UO2]2RO[O29^tt^2UO2PPP2PPP2P!)%fhCK79h)%fhCKC9h)%fhCK�9h)%fhCK�9h)%fhCK�9h)%fhCK�9h)%fhCK�9h)%fhCK&9h)%fhK�9h)%fhP!9h)	Nc�<:�U%fPoLYU[OIcQoLBU[OIcQoL+U[OIcQoL[	[U22g[O2o[U[QUOQUQUQ022ROUO2U]*2U]6XcJUO2oROUQ2ROUO2U]*2U!)	�z, unbounditems=queues.UNBOUNDz#, unbounditems=queues.UNBOUND_ERRORz$, unbounditems=queues.UNBOUND_REMOVEzl
                from concurrent.interpreters import _queues as queues
                queue = queues.Queue(z^)
                obj1 = b'spam'
                obj2 = b'eggs'
                queue.put(obj1z )
                queue.put(obj2z)
                r�)r)�UNBOUND�
UNBOUND_ERROR�UNBOUND_REMOVE�NotImplementedErrorr�rr/r	rrVr1r�r4)rQ�unbound�presize�	extraargsr[r�rs&&&   �r�common�ATestQueueOps.test_put_cleared_with_subinterpreter.<locals>.common�s������	��F�N�N�*�;�	��F�0�0�0�A�	��F�1�1�1�B�	�)�$�w�-�8�8�!�(�(�*�F����,&�&+�h�h�Z�0� )�k�*�(�k�*�
(�!�
�
���U�[�[�]�G�a�K�8��!�|��y�y�{��� � ��w�/�� � ������!��<��Mr�defaultr�r�r�sham)�unbounditems)Nr)rBr)r/r4rXr�r1r�r2r�r�r��ItemInterpreterDestroyedr�rW)rr�rQr[r�r�sf     r�$test_put_cleared_with_subinterpreter�1TestQueueOps.test_put_cleared_with_subinterpreter�s����	�<�\�\�)�
$�
$��M�M�O�E��E�]�F���9�9�;�D��M�M�$����/����U�[�[�]�A�.��"�"�6�#4�#4�5�5�� � �"�6�%��\�\�)�
$�
$��M�M�O�E��E�6�>�>�2�F���9�9�;�D��M�M�$����/����U�[�[�]�A�.��"�"�6�#4�#4�5�5�� � �"�6�%��\�\�/�
*�
*��M�M�O�E��E�6�#7�#7�8�F�����U�[�[�]�A�.��"�"�6�#B�#B�C�C��	�	��D�
���U�[�[�]�A�.��"�"�6�#4�#4�5�5�� � �"�6�+��\�\�*�
+�
+��M�M�O�E��E�6�#8�#8�9�F�����U�[�[�]�A�.��"�"�6�#4�#4�5�5�� � �"�6�
�I�I�f�6�+@�+@�I�A����U�[�[�]�A�.��E�6�#8�#8�!�<�F����U�[�[�]�A�.��I�I�b�v�'<�'<�I�=����U�[�[�]�A�.�����U�[�[�]�A�.��9�9�;�D��9�9�;�D����T�6�*����T�2�&����U�[�[�]�A�.��"�"�6�#4�#4�5�5�� � �"�6�-,�
+�56�5�5��%�
$�
$��"6�5�5��%�
$�
$�� D�C�C��6�5�5��+�
*�
*��&6�5�5�� 6�5��-,�
+�
+�s�BT
�:S9	�T
�4B%T5�T!	�*T5�A5U1�U		�AU1�(U	�9U1�"A5V,�V	�(E.V,�V	�'V,�9T

�T

�	T
�
T	�T	�!T2
�*T2
�,	T5�5U	�>U	�	U
�U
�	U1�U.
�&U.
�(	U1�1V	�:V	�V
�V
�	V,�V)
�"V)
�$V,�,V=	�5V=	c���[O2o[O2o[U[	QUO
Q022UO
UO2]2=UO
UO2]2UO2oUOU[O2UO
UO2]2UO[O29^tt^2UO2PPP2UO
UO2]2UO2oUOU[O2UO
UO2]2UO2oUOU[O2UO
UO2]2P!)%fhK�9h)�d
            from concurrent.interpreters import _queues as queues
            queue = queues.Queue(a)
            queue.put(1, unbounditems=queues.UNBOUND)
            queue.put(2, unbounditems=queues.UNBOUND_ERROR)
            queue.put(3)
            queue.put(4, unbounditems=queues.UNBOUND_REMOVE)
            queue.put(5, unbounditems=queues.UNBOUND)
            )
r)r/rr	rrVr1r�r4rXr�r2r�)rrQr[r�r��obj3s&     r�*test_put_cleared_with_subinterpreter_mixed�7TestQueueOps.test_put_cleared_with_subinterpreter_mixedsT���
�
����$�$�&���F�F�("�"'�(�(��,
�$��	�	
��������*����������*��y�y�{���
�
�d�F�N�N�+���������*�
�
�
�v�>�>�
?�
?��I�I�K�@���������*��y�y�{���
�
�d�F�N�N�+���������*��y�y�{���
�
�d�F�N�N�+���������*�@�
?�s�G"�"G2	�+G2	c�*�[O2o[O2o[O2oUO]2[	U[QUOQ022[	U[QUOQ022UOUO2]2UO]2[	U[Q22[	U[Q22[	U[Q22UOUO2]
2UO2oUOU]2UOUO2]	2UO2oUOU]2UOUO2]2=UOUO2]2UO2oUOU[O2UOUO2]2UO2oUOU]2UOUO2]2=UOUO2]2UO[O29^tt^2UO2PPP2UOUO2]2UO2oUOU[O2UOUO2]2UO2o	UOU	[O2UOUO2]2P!)%fhK�9h)rr�z�)
            obj1 = queue.get()
            queue.put(2, unbounditems=queues.UNBOUND)
            queue.put(obj1, unbounditems=queues.UNBOUND_REMOVE)
            zL)
            obj2 = queue.get()
            obj1 = queue.get()
            z�
            queue.put(4, unbounditems=queues.UNBOUND)
            # interp closed here
            queue.put(5, unbounditems=queues.UNBOUND_REMOVE)
            queue.put(6, unbounditems=queues.UNBOUND)
            a
            queue.put(7, unbounditems=queues.UNBOUND_ERROR)
            # interp closed here
            queue.put(obj1, unbounditems=queues.UNBOUND_ERROR)
            queue.put(obj2, unbounditems=queues.UNBOUND_REMOVE)
            queue.put(8, unbounditems=queues.UNBOUND)
            z�
            queue.put(9, unbounditems=queues.UNBOUND_REMOVE)
            queue.put(10, unbounditems=queues.UNBOUND)
            )r)r/rrWr	rrVr1r�r4rXr�r2r�)
rrQ�interp1�interp2r��obj4�obj6�obj7�obj8�obj10s
&         r�-test_put_cleared_with_subinterpreter_multiple�:TestQueueOps.test_put_cleared_with_subinterpreter_multiple0s����
�
����%�%�'���%�%�'��
�	�	�!���G�V�)"�"'�(�(��,
�%��	�	�G�V�)"�"'�(�(��,
�%��	�	
��������*�
�	�	�!���G�V�%��	�	�G�V�%��	�	�G�V�%��	�	
��������+��y�y�{������q�!���������*��y�y�{������q�!���������*����������*��y�y�{���
�
�d�F�N�N�+���������*��y�y�{������q�!���������*����������*��
�
�v�>�>�
?�
?��I�I�K�@���������*��y�y�{���
�
�d�F�N�N�+���������*��	�	����
�
�e�V�^�^�,���������*�@�
?�s�'N�N	�N	c�f``�[O2n[O2nUU1Qko[OUQ5oUO	2QoROU2RO
2oUO2UOVC2UOVC2P!)c�:�ROQQ5oROU2P![OcJ@h9h)Tr�r�)r4r)r�rW)r�rZr\s ��r�f�6TestQueueOps.test_put_get_different_threads.<locals>.f�sE����� �*�*�S�*�1�C��
�J�J�s�O���(�(����s�+�A�A�A)�targetr�)
r)r/�	threading�Thread�startrWr4�joinr1r�)rr��t�origr�rZr\s&    @@r�test_put_get_different_threads�+TestQueueOps.test_put_get_different_threads�sz�������������	�
���A�&��	���	����
�
�4���j�j�l��	��������#�����#rr)rrrrr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rr r!r"s@rr�r��sa����
#�:=�x+�,+�	��,�.)�3�,�$� $8�LW#�r+�BO+�b$�$rr��__main__)r'r�r��textwrapr�unittest�test.supportrr�
import_moduler�
concurrentr�concurrent.interpretersr)r�utilsr	r
�	_TestBaser��_UNBOUND_CONSTANT_TO_FLAGr�r0rr%rIr�r�mainrrr�<module>r
s����
����0�
�
%�
%�o�
6��#�C�5���
�
0�
0��1E�1E�
F��#��y��?%�H�?%�Db3��b3�JP$�8�P$�f�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit