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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python313/Lib/test/test_interpreters/__pycache__/test_queues.cpython-313.pyc
�

��i a��X�SSKrSSKrSSKrSSKJr SSKrSSKrSSKJrJ	r	 \R"S5rSSKJr SSK
JrJr SSKJrJr \R(\R*rS	r"S
S\5r"SS
\5r"SS\5r"SS\5r\S:Xa\R8"5 gg)�N)�dedent)�
import_helper�Py_DEBUG�
_interpqueues)�interpreters)�queues�_crossinterp�)�_run_output�TestBasec�<�[[R55$�N)�len�_queues�list_all���7C:\Python313\\Lib\test\test_interpreters\test_queues.py�get_num_queuesrs���w���!�"�"rc��\rSrSrSrSrg)r�c��[R5Hun n[RU5 M g![a M/f=fr)rr�destroy�	Exception)�self�qid�_s   r�tearDown�TestBase.tearDowns@�� �)�)�+�I�C��A�
�����$�,���
��
�s�7�
A�ArN)�__name__�
__module__�__qualname__�__firstlineno__r�__static_attributes__rrrrrs��rrc�,�\rSrSrSrSrSrSrSrg)�
LowLevelTests� c�8�[R"[5 gr)�	importlib�reloadr�rs r�test_highlevel_reloaded�%LowLevelTests.test_highlevel_reloaded)s������ rc���[RSS[5n[RU5 UR	[5S5 UR
[R5 [RU5 SSS5 UR
[R5 [RU5 SSS5 g!,(df   NL=f!,(df   g=f)N�r)
r�create�REPLACEr�assertEqualr�assertRaisesr�QueueNotFoundError�get�rrs  r�test_create_destroy�!LowLevelTests.test_create_destroy-s����n�n�Q��7�+�����������)�1�-�
�
�
�v�8�8�
9��K�K���:�
�
�
�v�8�8�
9��O�O�C� �:�
9�:�
9��
9�
9�s�*C�'C�
C�
C%c
���URS[S[RS[S355upURUS5 [(aURUS5 gURUS5 g)Nz-cz
                import z1 as _queues
                _queues.create(2, 0, �)
                �)�assert_python_okrrr r1r2r�assertNotEqual)r�stdout�stderrs   r�test_not_destroyed� LowLevelTests.test_not_destroyed6s{���.�.�����(�(�)�*&�&-�Y�/��
�
���	
�����$��8������+����V�R�(rc��URS5 [RSS[5n[R	U5 [RU5 UR
[5S5 SSS5 URS5 [RSS[5n[R	U5 [R	U5 [RU5 [RU5 UR
[5S5 SSS5 URS5 [RSS[5n[R	U5 [R	U5 [RU5 [RU5 UR
[5S5 SSS5 URS5 [RSS[5nUR[R5 [RU5 SSS5 SSS5 g!,(df   GN�=f!,(df   GN7=f!,(df   N�=f!,(df   NL=f!,(df   g=f)N�typicalr/rz
bind too much�nestedzrelease without binding)�subTestrr0r1�bind�releaser2rrr3r�
QueueErrorr6s  r�test_bind_release�LowLevelTests.test_bind_releaseEs���
�\�\�)�
$��.�.��A�w�/�C��L�L����O�O�C� ����^�-�q�1�	%��\�\�/�
*��.�.��A�w�/�C��L�L����L�L����O�O�C� ��O�O�C� ����^�-�q�1�
+��\�\�(�
#��.�.��A�w�/�C��L�L����L�L����O�O�C� ��O�O�C� ����^�-�q�1�
$��\�\�3�
4��.�.��A�w�/�C��"�"�6�#4�#4�5�����$�6�5�
4�-%�
$��+�
*��$�
#��6�5��5�
4�sJ�A H3�B
I�.B
I�;I9�I(�"I9�3
I�
I�
I%�(
I6	�2I9�9
JrN)	r r!r"r#r,r7r@rIr$rrrr&r& s��!�!�
)�%rr&c�J�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
g)
�
QueueTests�bc��URS5 [R"5nURURS5 SSS5 URS5 [R"S5nURURS5 SSS5 URS5 [R"S5nURURS5 SSS5 URS5 [R"S5nURURS5 SSS5 URS5 [R"S	5nURURS	5 SSS5 URS
5 UR[5 [R"S5 SSS5 SSS5 g!,(df   GN�=f!,(df   GNT=f!,(df   GN=f!,(df   N�=f!,(df   N�=f!,(df   No=f!,(df   g=f)N�vanillarz
small maxsize�zbig maxsize�dz
no maxsizeznegative maxsize���zbad maxsize�1)rErr0r2�maxsizer3�	TypeError�r�queues  r�test_create�QueueTests.test_createds{��
�\�\�)�
$��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_�2G�3G�)3G/�53H�3H�
H4�#H#�:H4�
G�
G,�/
G>�
H�
H �#
H1	�-H4�4
Ic��[R"5n[R"5nUR[	SUR
S355 UR
S5 [R"5nURUSS9 UR5nURXC5 SSS5 UR
S5 [R"5nURUSS9 [U[	S55n[U5nURXuR
5 SSS5 UR
S5 [U[	S	55n[U5nUR5nURUR
U5 SSS5 g!,(df   N�=f!,(df   N�=f!,(df   g=f)
Nz\
            from test.support.interpreters import queues
            queue1 = queues.Queue(z)
            zsame interpreterT��syncobjzfrom current interpreterzX
                queue4 = queue1.get()
                print(queue4.id)
                zfrom subinterpreterz�
                queue5 = queues.create()
                queue1.put(queue5, syncobj=True)
                print(queue5.id)
                )
rr0r�execr�idrE�putr5�assertIsr�intr2)	r�queue1�interp�queue2�queue3�queue4�outr�queue5s	         r�test_shareable�QueueTests.test_shareable}sd��������$�$�&�����F� #�#)�9�9�+�.
���	�
�\�\�,�
-��]�]�_�F��J�J�v�t�J�,��Z�Z�\�F��M�M�&�)�	.��\�\�4�
5��]�]�_�F��J�J�v�t�J�,��f�f�.�'��C��c�(�C����S�)�)�,�6��\�\�/�
0��f�f�.�'��C�
�c�(�C��Z�Z�\�F����V�Y�Y��,�1�
0�!.�
-��6�
5��1�
0�s'�$AF�A!F%�>A
F6�
F"�%
F3�6
Gc�n�[R"5nURUR[5 gr)rr0�assertIsInstancer^rarVs  r�test_id_type�QueueTests.test_id_type�s!���
�
������e�h�h��,rc��UR[R5 [R"S5 SSS5 g!,(df   g=f�N�@B)r3rr4�Queuer+s r�test_custom_id�QueueTests.test_custom_id�s.��
�
�
�v�8�8�
9��L�L��#�:�
9�
9�s�A�
Ac��[R"5nUR[5 SUlSSS5 g!,(df   g=frp)rr0r3�AttributeErrorr^rVs  r�test_id_readonly�QueueTests.test_id_readonly�s.���
�
���
�
�
�~�
.� �E�H�/�
.�
.�s	�<�
A
c��[R"S5nUR[5 SUlSSS5 g!,(df   g=f)N�
rq)rr0r3rvrTrVs  r�test_maxsize_readonly� QueueTests.test_maxsize_readonly�s1���
�
�b�!��
�
�
�~�
.�%�E�M�/�
.�
.�s	�=�
Ac��[R"5n[UR5n[U5nUR	X25 gr)rr0�hashr^r2)rrW�expected�actuals    r�
test_hashable�QueueTests.test_hashable�s1���
�
�������>���e�������*rc��[R"5n[R"5nURX5 URX5 gr)rr0r2r=)rrbrds   r�
test_equality�QueueTests.test_equality�s4����������������(����F�+rc��[R"5n[R"U5n[R"U5nURX15 gr)rr0�pickle�dumps�loadsr2)rrW�data�	unpickleds    r�test_pickle�QueueTests.test_pickle�s7���
�
����|�|�E�"���L�L��&�	�����*rrN)r r!r"r#rXrirmrsrwr{r�r�r�r$rrrrLrLbs0��#�2!-�F-�$�!�
&�
+�,�+rrLc��\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
SrS
rSrSrSrSrSrSrSrg)�TestQueueOps��c�:�[R"5nUR5nURSSS9 UR5nUR	5 UR5nURUS5 URUS5 URUS5 g)NTr[F)rr0�emptyr_r5r`)rrW�before�during�afters     r�
test_empty�TestQueueOps.test_empty�sq���
�
��������
�	�	�$��	�%������
�	�	�����
���
�
�f�d�#��
�
�f�e�$��
�
�e�T�"rc��SGHnURSU35 UnS/US-S--nSX1'SX1S-'[R"U5n/nUR5/n[	U5H3nURUR
55 URS5 M5 URUR
55 UR[R5 URS5 SSS5 URUR55 [	U5H2nURUR
55 UR5 M4 URUR
55 UR[R5 UR5 SSS5 URUR
55 URUR55 URXS5 URU/SQ5 SSS5 GM S	GH�nURU(aSUS
3OS5 SnS/US-S--n[R"U6n/nUR5/n[	U5H3nURUR
55 URS5 M5 URUR
55 URUR55 [	U5H2nURUR
55 UR5 M4 URUR
55 UR[R5 UR5 SSS5 URUR
55 URUR55 URXS5 URU/SQ5 SSS5 GM� g!,(df   GN=f!,(df   GNu=f!,(df   GM4=f!,(df   N�=f!,(df   GM:=f)
N)r
rP�zmaxsize=Fr/rPTr
)TFT)r)r)���)rRrz	<default>�
)
rErr0r��range�append�full�
put_nowaitr3�	QueueFull�
get_nowait�
QueueEmptyr2)	rrT�
num_to_addrrWr�r�r�argss	         r�	test_full�TestQueueOps.test_full�s2��!�G������	�2�3�$�
�!�7�j�1�n�q�&8�9��$(��!�(,��1��%��
�
�g�.�����������z�*�A��M�M�%�*�*�,�/��$�$�T�*�+��
�
�e�j�j�l�+��&�&�v�'7�'7�8��$�$�T�*�9����U�[�[�]�+��z�*�A��M�M�%�*�*�,�/��$�$�&�+��
�
�e�j�j�l�+��&�&�v�'8�'8�9��$�$�&�:��
�
�e�j�j�l�+����U�[�[�]�+�� � ��2�� � ��(;�<�94�3�"�@.�D����d���a��	�2��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��$�$�&�:��
�
�e�j�j�l�+����U�[�[�]�+�� � ��2�� � ��(;�<�1M�L�.�#9�8��:�9��-4�3��d:�9��%M�L�sd�CP'�P�0B&P'�P�'A+P'�D4Q�9P:�
A+Q�
P�
P'�
P$�P'�'
P7	�:
Q�Q�
Q	c��/SQn/n[R"5n[S5H2nURUR	55 URSSS9 M4 URUR	55 UR
5 URUR	55 URSSS9 URUR	55 [S5H2nUR
5 URUR	55 M4 URSSS9 URUR	55 UR
5 URUR	55 URX!5 g)N)rr
r/rPr/rPr/r
rr
rrPTr[)rr0r�r��qsizer_r5r2)rrr�rWrs     r�
test_qsize�TestQueueOps.test_qsizes��4�����
�
����q��A��M�M�%�+�+�-�(��I�I�d�D�I�)��	�
�
�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��[[S55nSH�n[US9nURSU35 [R
"5n[S5HnUR"U40UD6 M [S5Vs/sHodR5PM nnURXq5 SSS5 M� gs snf!,(df   M�=f)N��TFr[�syncobj=)	�listr��dictrErr0r_r5r2)rrr\�kwdsrW�irr�s        r�test_put_get_main�TestQueueOps.test_put_get_main%s�����b�	�?��$�G���(�D������	�2�3��
�
����r��A��I�I�a�(�4�(�#�/4�R�y�9�y�!�)�)�+�y��9�� � ��2�
4�3�%��:�	4�3�s�AB=�?B8�B=�8B=�=
C	c���SH�n[US9nURSU35 [R"S5nUR"S0UD6 UR"S0UD6 UR[R5 UR"SSS0UD6 SSS5 UR5 UR"S0UD6 SSS5 M� g!,(df   N==f!,(df   M�=f)Nr�r[r�r/�timeout皙�����?r)r�rErr0r_r3r�r5�rr\r�rWs    r�test_put_timeout�TestQueueOps.test_put_timeout1s���$�G���(�D������	�2�3��
�
�a�(���	�	�'�$�'��	�	�'�$�'��&�&�v�'7�'7�8��I�I�8�C�8�4�8�9��	�	���	�	�'�$�'�4�3�%�9�8��	4�3�s$�AC�=C	�*C�	
C�C�
C)	c���SH�n[US9nURSU35 [R"S5nUR"S0UD6 UR"S0UD6 UR[R5 UR"S0UD6 SSS5 UR5 UR"S0UD6 SSS5 M� g!,(df   N==f!,(df   M�=f)Nr�r[r�r/r)r�rErr0r�r3r�r5r�s    r�test_put_nowait�TestQueueOps.test_put_nowait=s���$�G���(�D������	�2�3��
�
�a�(��� � �.��.�� � �.��.��&�&�v�'7�'7�8��$�$�2�T�2�9��	�	��� � �.��.�4�3�%�9�8��	4�3�s$�AC�=C�*C�
C�C�
C'	c��SH�nUR[U55 [R"5nUR	USS9 UR5nUR
X15 UR	USS9 UR5nUR
X15 SSS5 M� /SQSSS.4HsnUR[U55 [R"5nUR[R5 UR	USS9 SSS5 SSS5 Mu g!,(df   GM2=f!,(df   N.=f!,(df   M�=f)N)NTrz�spam�spam�r�aTr[�r
r/rPr���r��b)rE�reprrr0r_r5r2r�r3r�NotShareableError�r�objrW�obj2s    r�test_put_syncobj�TestQueueOps.test_put_syncobjIs��
�C����d�3�i�(��
�
����	�	�#�t�	�,��y�y�{��� � ��+��	�	�#�t�	�,��'�'�)��� � ��+�)�(�
�(
��2��
�C����d�3�i�(��
�
����&�&�|�'E�'E�F��I�I�c�4�I�0�G�)�(�	
�)�(��"G�F��)�(�s0�A8D%�
5E	�?D8�E	�%
D5	�8
E�E	�	
E	c
��SSSSSS/SQSSS	.4H�nUR[U55 [R"5nUR	US
S9 UR5nUR
X15 UR	US
S9 UR5nUR
X15 SSS5 M� g!,(df   M�=f)NTrzr�r�r�r�r�r�r�Fr[)rEr�rr0r_r5r2r�r�s    r�test_put_not_syncobj�!TestQueueOps.test_put_not_syncobjfs�����������2��

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

�)�(�s�A8B2�2
C	c��[R"5nUR[R5 UR	SS9 SSS5 g!,(df   g=f)Nr��r�)rr0r3r�r5rVs  r�test_get_timeout�TestQueueOps.test_get_timeout}s;���
�
���
�
�
�v�0�0�
1��I�I�c�I�"�2�
1�
1�s�A�
Ac��[R"5nUR[R5 UR	5 SSS5 g!,(df   g=fr)rr0r3r�r�rVs  r�test_get_nowait�TestQueueOps.test_get_nowait�s9���
�
���
�
�
�v�0�0�
1�����2�
1�
1�s�A�
Ac�&�[[S55n[R"SS9nSH~nUR	US35 [X#5n[S5HnUR
U5 M [S5Vs/sH	od"5PM nnURXq5 SSS5 M� /SQnUR[R5 UR
U5 SSS5 gs snf!,(df   M�=f!,(df   g=f)Nr�Tr[�r5r��()r�)r�r�rr0rE�getattrr_r2r3rr�)	rrrW�methnamer5r�rr�r�s	         r�test_put_get_default_syncobj�)TestQueueOps.test_put_get_default_syncobj�s�����b�	�?���
�
�d�+��-�H�����
�"�o�.��e�.���r��A��I�I�a�L�#�).�r��3��A�#�%���3�� � ��2�/�.�.���
�
�
�|�=�=�
>��I�I�c�N�?�
>��	4�	/�.��?�
>�s*�<C0�>C+�C0�D�+C0�0
C?	�
Dc��[[S55n[R"SS9nSH�nUR	US35 [X#5n[S5HnUR
U5 M [S5Vs/sH	od"5PM nnURXq5 /SQnUR
U5 U"5n	URX�5 URX�5 SSS5 M� gs snf!,(df   M�=f)Nr�Fr[r�r�r�)	r�r�rr0rEr�r_r2�assertIsNot)
rrrWr�r5r�rr�r�r�s
          r� test_put_get_default_not_syncobj�-TestQueueOps.test_put_get_default_not_syncobj�s�����b�	�?���
�
�e�,��-�H�����
�"�o�.��e�.���r��A��I�I�a�L�#�).�r��3��A�#�%���3�� � ��2����	�	�#���u��� � ��+�� � ��+�/�.�.��4�/�.�s�<C1�>C,�AC1�,C1�1
D	c	��[R"5nUR[S55 SH>nUR	US35 UR[SUS355 SSS5 M@ g!,(df   MR=f)Nzj
            from test.support.interpreters import queues
            queue = queues.create()
            r�r�zv
                    orig = b'spam'
                    queue.put(orig, syncobj=True)
                    obj = queue.z�()
                    assert obj == orig, 'expected: obj == orig'
                    assert obj is not orig, 'expected: obj is not orig'
                    )rr0r]rrE)rrcr�s   r�test_put_get_same_interpreter�*TestQueueOps.test_put_get_same_interpreter�s~���$�$�&�����F���	�.�H�����
�"�o�.����F�(!�"*�
�+�$���/�.�.�.�.�s�	A5�5
B	c�b�[R"5n[R"5n[R"5nUR[	[R
"55S5 SGH(nUR
US35 SnURUSS9 [U[SURSURS	US
[U5S3	55nUR[	[R
"55S5 URUR5S5 URUR5S
5 [X45nU"5nURUS5 UR[U5[U55 SSS5 GM+ g!,(df   GM>=f)Nr/r�r�r�Tr[zt
                        from test.support.interpreters import 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) != ad, 'expected: obj is not obj1'
                        obj2 = b'eggs'
                        print(id(obj2))
                        assert queue2.qsize() == 0, 'expected: queue2.qsize() == 0'
                        queue2.put(obj2, syncobj=True)
                        assert queue2.qsize() == 1, 'expected: queue2.qsize() == 1'
                        rr
seggs)rr0rr2rrrEr_rrr^r�r�r=ra)	rrcrbrdr��obj1rgr5r�s	         r�#test_put_get_different_interpreters�0TestQueueOps.test_put_get_different_interpreters�sZ���$�$�&����������������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
�DF�
F.	c�
^�SU4SjjnTRS5 [R"5nU"U5nAUR5nTR	U[R
5 TR
UR5S5 TR[R5 UR5 SSS5 SSS5 TRS5 [R"5nU"U[R
5nAUR5nTR	U[R
5 TR
UR5S5 TR[R5 UR5 SSS5 SSS5 TRS5 [R"5nU"U[R5nATR
UR5S5 TR[R5 UR5 SSS5 TR
UR5S5 TR[R5 UR5 SSS5 SSS5 TRS5 [R"5nU"U[R5nATR
UR5S5 TR[R5 UR5 SSS5 URS[RS	9 TR
UR5S5 U"U[RS5nTR
UR5S
5 URS[RS	9 TR
UR5S5 ATR
UR5S
5 UR5nUR5nTR
US5 TR
US5 TR
UR5S5 TR[R5 UR5 SSS5 SSS5 g!,(df   GN�=f!,(df   GN�=f!,(df   GNC=f!,(df   GNM=f!,(df   GN�=f!,(df   GN�=f!,(df   GN�=f!,(df   GN=f!,(df   N�=f!,(df   g=f)Nrc� >�U(dSnOVU[RLaSnO@U[RLaSnO*U[RLaSnO[	[U55e[R"5n[U[SURSUSUS355 TRUR5US	-5 US
:XaEUR5nTRUS5 TRUR5US-5 U$)
Nr;z, unbound=queues.UNBOUNDz, unbound=queues.UNBOUND_ERRORz, unbound=queues.UNBOUND_REMOVEzc
                from test.support.interpreters import queues
                queue = queues.Queue(zl)
                obj1 = b'spam'
                obj2 = b'eggs'
                queue.put(obj1, syncobj=Truez.)
                queue.put(obj2, syncobj=Truer:r/rr�r
)r�UNBOUND�
UNBOUND_ERROR�UNBOUND_REMOVE�NotImplementedErrorr�rr0rrr^r2r�r5)rW�unbound�presize�	extraargsrcr�rs      �r�common�ATestQueueOps.test_put_cleared_with_subinterpreter.<locals>.common�s������	��F�N�N�*�6�	��F�0�0�0�<�	��F�1�1�1�=�	�)�$�w�-�8�8�!�(�(�*�F����,&�&+�h�h�Z�0-�.7�K�8-�-6�K�8�
(�!�
�
���U�[�[�]�G�a�K�8��!�|��y�y�{��� � ��w�/�� � ������!��<��Mr�defaultr�r�r
r�sham)r�rP�*�r/)Nr)rErr0r5r`r�r2r�r3r�r�r��ItemInterpreterDestroyedr�r_)rr�rWrcr�r�s`     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�� � �"�6�%��\�\�)�
$��M�M�O�E��E�6�>�>�2�F���9�9�;�D��M�M�$����/����U�[�[�]�A�.��"�"�6�#4�#4�5�� � �"�6�%��\�\�/�
*��M�M�O�E��E�6�#7�#7�8�F�����U�[�[�]�A�.��"�"�6�#B�#B�C��	�	��D�
���U�[�[�]�A�.��"�"�6�#4�#4�5�� � �"�6�+��\�\�*�
+��M�M�O�E��E�6�#8�#8�9�F�����U�[�[�]�A�.��"�"�6�#4�#4�5�� � �"�6�
�I�I�f�f�&;�&;�I�<����U�[�[�]�A�.��E�6�#8�#8�!�<�F����U�[�[�]�A�.��I�I�b�&�"7�"7�I�8����U�[�[�]�A�.�����U�[�[�]�A�.��9�9�;�D��9�9�;�D����T�6�*����T�2�&����U�[�[�]�A�.��"�"�6�#4�#4�5�� � �"�6�-,�
+�56�5��%�
$��"6�5��%�
$�� D�C��6�5��+�
*��&6�5�� 6�5��-,�
+�s��BR3�)R!�:R3�BS�8S�	S�*A-T
�S)�(AT
�/S;�T
�!A-U�T�E U�?T1�U�!
R0	�+R3�3
S�
S	�S�
S&�)
S8	�3T
�;
T
	�T
�
T�
T.	�)U�1
T?	�;U�
Uc���[R"5n[R"5n[U[	SUR
S355 UR
UR5S5 AUR
UR5S5 UR5nURU[R5 UR
UR5S5 UR[R5 UR5 SSS5 UR
UR5S5 UR5nURU[R5 UR
UR5S5 UR5nURU[R5 UR
UR5S5 g!,(df   N�=f)	N�[
            from test.support.interpreters import queues
            queue = queues.Queue(a>)
            queue.put(1, syncobj=True, unbound=queues.UNBOUND)
            queue.put(2, syncobj=True, unbound=queues.UNBOUND_ERROR)
            queue.put(3, syncobj=True)
            queue.put(4, syncobj=True, unbound=queues.UNBOUND_REMOVE)
            queue.put(5, syncobj=True, unbound=queues.UNBOUND)
            �r�rPr/r
r)
rr0rrrr^r2r�r5r`r�r3r�)rrWrcr�r��obj3s      r�*test_put_cleared_with_subinterpreter_mixed�7TestQueueOps.test_put_cleared_with_subinterpreter_mixed7sQ���
�
����$�$�&���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�
G&c��[R"5n[R"5n[R"5nURSSS9 [	U[SURS355 [	U[SURS355 URUR5S5 URS5 [	U[S	55 [	U[S
55 [	U[S55 URUR5S5 UR5nURUS5 URUR5S
5 UR5nURUS5 URUR5S5 AURUR5S5 UR5nURU[R5 URUR5S5 UR5nURUS5 URUR5S5 AURUR5S5 UR[R5 UR5 SSS5 URUR5S5 UR5nURU[R5 URUR5S5 UR5n	URU	[R5 URUR5S5 g!,(df   N�=f)Nr
Tr[r�z�)
            obj1 = queue.get()
            queue.put(2, syncobj=True, unbound=queues.UNBOUND)
            queue.put(obj1, syncobj=True, unbound=queues.UNBOUND_REMOVE)
            zL)
            obj2 = queue.get()
            obj1 = queue.get()
            rrPz�
            queue.put(4, syncobj=True, unbound=queues.UNBOUND)
            # interp closed here
            queue.put(5, syncobj=True, unbound=queues.UNBOUND_REMOVE)
            queue.put(6, syncobj=True, unbound=queues.UNBOUND)
            aC
            queue.put(7, syncobj=True, unbound=queues.UNBOUND_ERROR)
            # interp closed here
            queue.put(obj1, syncobj=True, unbound=queues.UNBOUND_ERROR)
            queue.put(obj2, syncobj=True, unbound=queues.UNBOUND_REMOVE)
            queue.put(8, syncobj=True, unbound=queues.UNBOUND)
            z�
            queue.put(9, syncobj=True, unbound=queues.UNBOUND_REMOVE)
            queue.put(10, syncobj=True, unbound=queues.UNBOUND)
            rz�	r���r��r/)rr0rr_rrr^r2r�r5r`r�r3r�)
rrW�interp1�interp2r��obj4�obj6�obj7�obj8�obj10s
          r�-test_put_cleared_with_subinterpreter_multiple�:TestQueueOps.test_put_cleared_with_subinterpreter_multipleXs����
�
����%�%�'���%�%�'��
�	�	�!�T�	�"��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�M7�7
Nc�Z^^�[R"5m[R"5mUU4Sjn[R"US9nUR	5 SnTRUSS9 TR
5nUR5 URXC5 URXC5 g)Nc�>�TRSS9nTRUSS9 g![Ra M:f=f)NTr�r�r[)r5rr�r_)r�rbrds ��r�f�6TestQueueOps.test_put_get_different_threads.<locals>.f�sJ����� �*�*�S�*�1�C��
�J�J�s�D�J�)���(�(����s�%�=�=)�targetr�Tr[)
rr0�	threading�Thread�startr_r5�joinr2r�)rr�t�origr�rbrds     @@r�test_put_get_different_threads�+TestQueueOps.test_put_get_different_threads�s~�������������	*�
���A�&��	���	����
�
�4��
�&��j�j�l��	��������#�����#rrN)r r!r"r#r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r
rr$rrrr�r��sc��
#�:=�x+�,
3�
(�
/�1�:,�.#�
�

�,�$� $8�LW#�r+�BO+�b$rr��__main__)r)r�r�textwrapr�unittest�time�test.supportrr�
import_modulerr�test.support.interpretersrr	�utilsrr�	_TestBase�_UNBOUND_CONSTANT_TO_FLAGr�r1rr&rLr�r �mainrrr�<module>r's����
�����0�
�
%�
%�o�
6��%�:�5��
0�
0��1E�1E�
F��#��y��?%�H�?%�D`+��`+�Fy$�8�y$�x�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit