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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/test/__pycache__/test_bytes.cpython-315.opt-2.pyc
R
>lqj�c���]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PH s]PH$s	]PH(s
]PH,s]PH0s
]QH4Gs]QH0Gs]QH0Gs]QH0Gs]PHHs
]PHLs
]QH0GsGs]QHXGs\O0O2%cQsLQsQ	Q
2sQQ2sQ
Q\\O:2sQQ\\O:2sQQ\O:2s QQ\O:2s!QQ\
ODOF2s$QQ\$\O:2s%QQ\$\O:2s&QQ2s'QQ\(2s)QQ \(2s*Q!Q"\+2s,Q#Q$\+2s-Q%Q&2s.Q'Q(\'\O:2s/Q)Q*\'\O:2s0Q+Q,\'\O:2s1Q-Q.\O:2s2\3Q/6Xc\Oh2P!P!)0�)�support)�
import_helper)�threading_helper)�warnings_helper)�bigaddrspacetest�MAX_Py_ssize_t)�assert_python_failurec�H`�[OR2U1Qk2oU!)c�:�[OP[129^tt^2RU-U@ttPPP2!)%fhP!9h���r�check_warnings�BytesWarning)�args�kw�funcs*,��$C:\Python315\\Lib\test\test_bytes.py�wrapper�%check_bytes_warnings.<locals>.wrapper!s6��� �/�/��\�0B�C�C��T�(�R�(�D�C�C�C�s�	;�A	�A	)�	functools�wraps)rrsf r�check_bytes_warningsr s%���	����	�	)�
�	)���c��U!�N�)rs&rrr(s���rc�2`�\sQs],snQQksQsQsUsP!)�	Indexablec��VmP!r��value��selfr!s&&r�__init__�Indexable.__init__-����
rc��UO!rr �r#s&r�	__index__�Indexable.__index__/����z�z�rr �r��__name__�
__module__�__qualname__�__firstlineno__r$r)�__static_attributes__�__classdictcell__��
__classdict__s@rrr,s������rrc�`�\sQs]3snQsQsQsQsQsQs	Qs
QsQ	sQ
s
QsQsQ
s\Q2sQsQs\Q2sQsQsQsQsQsQsQsQsQsQs Qs!Qs"Qs#Qs$Q s%Q!s&Q"s'Q#s(Q$s)Q%s*Q&s+Q's,Q(s-Q)s.Q*s/Q+s0Q,s1Q-s2Q.s3Q/s4Q0s5Q1s6Q2s7Q3s8Q4s9Q5s:Q6s;Q7s<Q8s=Q9s>Q:s?Q;s@Q<sAQ=sBQ>sCQ?sDQ@sEQAsFQBsGQCsHQDsIQEsJQFsKQGsLQHsMQIsNQJsOQKsPQLsQQMsRUsSP!)N�
BaseBytesTestc�r�UO[U2[U22UOV2P!r)�assertIs�type�assertEqual)r#�actual�expecteds&&&r�assertTypedEqual�BaseBytesTest.assertTypedEqual5s&���
�
�d�6�l�D��N�3�����*rc��UO2oUO[U2UO2UOUOUO2P!r)�	type2testr;r:�	__class__�r#�bs& r�test_basics�BaseBytesTest.test_basics9s>���N�N�������a��$�.�.�1�������d�n�n�5rc���UOQ2o[O[O1FD@oUU2oUOV2UO[	U2[	U22JB	P!��abcd)rA�copy�deepcopyr;r:�r#�a�copy_methodrDs&   r�	test_copy�BaseBytesTest.test_copy>sV���N�N�7�#�� �I�I�t�}�}�5�K��A��A����Q�"����T�!�W�d�1�g�.�6rc�`�UO2nUO[R2]2UO[U1Qk2UO[U1Qk2UO[U1Qk2UO[U1Qk2UO[U1Qk2UO[U1Qk2UO[U1Qk2UO[U1Qk2UO[U1Q	k2UO[U1Q
k2UO[U1Qk2P!)rc�:�R]*!r,r�rDs�r�<lambda>�3BaseBytesTest.test_empty_sequence.<locals>.<lambda>H�	���a��drc�:�R]*!��rrSs�rrTrUIrVrc�4:�R[O*!r��sys�maxsizerSs�rrTrUJs
���a����nrc�B:�R[O]**!rXr[rSs�rrTrUKs���a����A�
�.>rc�&:�R]
]d**!��
rrSs�rrTrULs
���a��C��jrc�:�RP*!rXrrSs�rrTrUM�	���a��erc�:�RQ*!)����rrSs�rrTrUNrcrc�6:�R[O'*!rr[rSs�rrTrUOs���a�����orc�D:�R[O']*
*!rXr[rSs�rrTrUP����a�����Q��.?rc�D:�R[O']*
*!�rer[rSs�rrTrUQrirc�(:�R]
]d*'*!r`rrSs�rrTrURs���a��S���kr)rAr;�len�assertRaises�
IndexErrorrCs&@r�test_empty_sequence�!BaseBytesTest.test_empty_sequenceEs�����N�N�������Q���#����*�l�3����*�l�3����*�&<�=����*�&>�?����*�&8�9����*�m�4����*�m�4����*�&=�>����*�&?�@����*�&?�@����*�&9�:rc��UO[Q22oUO[U2Q2UO[	U2[	[Q222UO]*.2oUOUQ2UO]+]-.2oUO[
U2QQ.2UO[[Q222oUO[U2Q2UO[	U2[	[Q222UOQ[Q222oUO[U2]�2UO[	U2[	[Q22Q*2QQ2oUOU22oUOUQ2P!)	��*c3�R�SF �Dp]*%fJUw�	J	P!3hrkr)�.0�is& r�	<genexpr>�3BaseBytesTest.test_from_iterable.<locals>.<genexpr>es��j���j���E�E�1�1�j�s�'�':rYNrec�(`�\sQs]jsnQsQsUsP!)�+BaseBytesTest.test_from_iterable.<locals>.Sc��QU*!�rY�rYre�r)r#rws&&r�__getitem__�7BaseBytesTest.test_from_iterable.<locals>.S.__getitem__ks�� ��|�#rr)r.r/r0r1r�r2r3r4s@r�Sr{js����
$�
$rr��)�+�-)r�r�)rA�ranger;rm�list�assertIn�tuple�iter)r#rDr�s&  r�test_from_iterable� BaseBytesTest.test_from_iterableTsV���N�N�5��:�&������Q���%�����a��$�u�S�z�"2�3�
�N�N�B�4� ������D�!��N�N�B��8�$���
�
�e�A�h��8� 4�5�
�N�N�4��c�
�+�,������Q���%�����a��$�u�S�z�"2�3�
�N�N�:�e�C�j�:�:������Q���%�����a��$�u�S�z�"2�4�"8�9�	$�	$�
�N�N�1�3�������O�,rc�$�UO[[Q222oUO[	U2Q2UO[U2[[Q222UOQ2oUOUQ2P!�rsr�r~)rAr�r�r;rmr�rCs& r�test_from_tuple�BaseBytesTest.test_from_tuplepsh���N�N�5��s��,�-������Q���%�����a��$�u�S�z�"2�3��N�N�9�%������O�,rc�(�UO[[Q222oUO[	U2Q2UO[U2[[Q222UO,QN2oUOUQ2P!r�)rAr�r�r;rmrCs& r�test_from_list�BaseBytesTest.test_from_listxsh���N�N�4��c�
�+�,������Q���%�����a��$�u�S�z�"2�3��N�N�9�%������O�,rc��`�U1QkQ2oU2U2,nUO[R2Q2U1QkQ2oU2,nUO[R2Q2P!)c�0:`�\sQs]�snU1QksQsUsP!)�0BaseBytesTest.test_from_mutating_list.<locals>.Xc�*:�RO2]*!��*��clear�r#rMs&�rr)�:BaseBytesTest.test_from_mutating_list.<locals>.X.__index__�s������	�rr�r.r/r0r1r)r2r3�r5rMs@�r�Xr��s����
�
rr�rtc�0:`�\sQs]�snU1QksQsUsP!)�0BaseBytesTest.test_from_mutating_list.<locals>.Yc�L:�[R2Q6cROU2]*!���)rm�appendr�s&�rr)�:BaseBytesTest.test_from_mutating_list.<locals>.Y.__index__�s����q�6�D�=��H�H�T�N�rrr�r�s@�r�Yr�������
�
rr�s�****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************�r;�bytes)r#r�r�rMs&  @r�test_from_mutating_list�%BaseBytesTest.test_from_mutating_list�sY���	�	��S�!�#�J������q��4�(�	�	�
�S�E������q��;�/rc�^�UO[2[]2[]�2[]�2,2oUO[U2,QN2UO	[
UO[P2,2UO	[
UO[Q2,2P!)rYrs�rrY��)rArr;r�rn�
ValueErrorrCs& r�test_from_index�BaseBytesTest.test_from_index�sz���N�N�I�K��1��y��~�%�c�N�,�
-������a��"2�3����*�d�n�n�y��}�o�F����*�d�n�n�y��~�6F�Grc�.�UO[OQ,QN22oUOUQ2UOQ2oUOUQ2QQ[2oUOUOUQ22Q2P!)�Br�c�(`�\sQs]�snQsQsUsP!)�)BaseBytesTest.test_from_buffer.<locals>.Bc��[gr)�	TypeErrorr(s&rr)�3BaseBytesTest.test_from_buffer.<locals>.B.__index__�s���rrr�r4s@rr�r��s����
 �
 rsfoobarr~)rA�arrayr;r�)r#rMr�s&  r�test_from_buffer�BaseBytesTest.test_from_buffer�st���N�N�5�;�;�s�I�6�7������O�,��N�N�?�+������O�,�	 ��	 �	
�������)��5�y�Arc��UOUO]2Q2UOUO]2Q2UOUO]2Q2UO[UOP2UOUOQQ2Q2UOUOQ2Q2UO[UO[
O]*2P!)rr�s�0�ascii�0)r;rArnr��
OverflowErrorr\r]r(s&r�test_from_ssize�BaseBytesTest.test_from_ssize�s����������*�C�0��������*�G�4��������*�,C�D����*�d�n�n�b�9��������W�5�t�<��������-�t�4����-�������q��Irc�&�UO[UOQ2QQ2oUO[UOQ,2UO[UOQ,2UO[UOP,2UO[UOU2,2UO[UOQQ5UO[UOQQ5UO[UO]Q2UO[UOQQ2UO[UO]QQ5UO[UOQQQ5UO[UOP2UO[UOPQQ5UO[UOPQ	2UO[UOPQQ
2P!)gc��\sQs]�sQsP!)�5BaseBytesTest.test_constructor_type_errors.<locals>.Cr�r.r/r0r1r2rrr�Cr�����rr�r�r�)�encoding�ignore)�errorsrsasciisignore)rnr�rA)r#r�s& r�test_constructor_type_errors�*BaseBytesTest.test_constructor_type_errors�s�����)�T�^�^�S�9�	�	����)�T�^�^�c�U�;����)�T�^�^�c�U�;����)�T�^�^�d�V�<����)�T�^�^�a�c�U�;����)�T�^�^�g��F����)�T�^�^�H��E����)�T�^�^�Q��@����)�T�^�^�S�'�B����)�T�^�^�Q�x��H����)�T�^�^�S���J����)�T�^�^�R�8����)�T�^�^�R���I����)�T�^�^�R��B����)�T�^�^�R��)�Lrc��UO[UOP,2UO[UO[O',2UO[UO[O']*
,2UO[UO[O']*
,2UO[UO]
]d*',2UO[UOQ,2UO[UOQ,2UO[UO[O,2UO[UO[O]*,2UO[UO]
]d*,2P!)rYrs�)rnr�rAr\r]r(s&r�test_constructor_value_errors�+BaseBytesTest.test_constructor_value_errors�s$�����*�d�n�n�r�d�;����*�d�n�n����|�n�E����*�d�n�n����|�A�~�6F�G����*�d�n�n����|�A�~�6F�G����*�d�n�n��C��x�j�A����*�d�n�n�s�e�<����*�d�n�n�s�e�<����*�d�n�n�s�{�{�m�D����*�d�n�n�s�{�{�1�}�o�F����*�d�n�n�r�3�w�i�@rc��[oUO[[1UOU2[U]*
2P![[1cP!h9h��)rrnr��MemoryErrorrA�	bytearray)r#�sizes& r�test_constructor_overflow�'BaseBytesTest.test_constructor_overflow�sL�������=�+�6�����M�	�
�d�Q�h����{�+�	��	�s�A�A�A�Ac��QQ2oUO[UOU22UO[UOU2,2QQ2oUO[UOU22P!)c�(`�\sQs]�snQsQsUsP!)�9BaseBytesTest.test_constructor_exceptions.<locals>.BadIntc��]]*P!rXrr(s&rr)�CBaseBytesTest.test_constructor_exceptions.<locals>.BadInt.__index__�����!��rrr�r4s@r�BadIntr�������
�
rr�c�(`�\sQs]�snQsQsUsP!)�>BaseBytesTest.test_constructor_exceptions.<locals>.BadIterablec��]]*P!rXrr(s&r�__iter__�GBaseBytesTest.test_constructor_exceptions.<locals>.BadIterable.__iter__�r�rr)r.r/r0r1r�r2r3r4s@r�BadIterabler��r�rr�)rn�ZeroDivisionErrorrA)r#r�r�s&  r�test_constructor_exceptions�)BaseBytesTest.test_constructor_exceptions�sg��	�	�	
���+�T�^�^�V�X�F����+�T�^�^�f�h�Z�H�	�	�	
���+�T�^�^�[�]�Krc���UO,QN2oUO,QN2oUO]],2oUOV2UOV#6g2UOV6*2UOV6*2UOV62UOV6�2UOV26�2UOV26�2UOV6g2UOV#6H2UOV6�2UOV6�2UOV6�2UOV62UOV262UOV26*2P!r})rAr;�
assertTrue�assertFalse)r#�b1�b2�b3s&   r�test_compare�BaseBytesTest.test_compare�s ��
�^�^�I�
&��
�^�^�I�
&��
�^�^�Q��F�
#������ ������!������!������!������!������!������!������!������"������"������"������"������"������"������"������"rc���UOUOQ2Q6HP
2UOUOQ2Q6HP
2UOUOQ2Q6HP
2UOUOQ2Q6HP
2UOUO2[26HP
2UOUO2[26gP	2P!)sabc�abcsabcsabcsabc)r;rA�strr(s&r�test_compare_to_str�!BaseBytesTest.test_compare_to_str�s���
	
�������5��>��F�������(@�A�U�J�!�	#��������5��>��F�������(@�A�U�J�!�	#�������)�S�U�2�E�:�������)�S�U�2�D�9rc���[[[Q22oUOU2o[[	U22oUO2UO
V12P!)�Hello)r��map�ordrA�reversed�reverser;)r#�inputrD�outputs&   r�
test_reversed�BaseBytesTest.test_reversed
sF���S��g�&�'���N�N�5�!���h�q�k�"��
�
�
������'rc�`�U1QkoUQ2oROUQ*UQ22ROUQ*UQ22ROUQ*UQ22ROUQ*UQ	22ROUQ
*UQ	22ROUQ*UQ	22ROUPQUQ22ROUQ
QUQ22ROUQQUQ22ROUQPUQ	22ROUQ]UQ	22ROUQ]dUQ	22ROUQ]UQ22P!)c�D:�RO[[U22!r)rAr�r�)�sr#s&�r�by�'BaseBytesTest.test_getslice.<locals>.bys����>�>�#�c�1�+�.�.r�Hello, world:N�Nr�:rYrN�ello:r�Nz, :rNN�world:r�N:r�dN���i����������)r;�r#r	rDsf  r�
test_getslice�BaseBytesTest.test_getslicesX���	/��~�������2���7��,�����3���F��,�����3���D��*�����2���7��,�����4��"�W�+�.�����5��2�g�;�/�����3�B���G��-�����3�r��B�v�J�/�����2�b��2�d�8�,�����2�3���G��-�����2�b��2�g�;�/�����2�c��B�w�K�0�����4���B�w�K�0rc�4�[[]�22oUOU2o]P]]]]d[OPQQQ1oSFDOoSFDEoUQ*FD4oUOV$VV/*UOVVV/*22J6	JG	JQ	P!)r��rYNNrf���r)r�r�rAr\r]r;)r#�LrD�indices�start�stop�steps&      r�test_extended_getslice�$BaseBytesTest.test_extended_getslice(s�����s�����N�N�1����d�A�q�"�c�3�;�;��B��T�J���E���#�B�K�K�D��$�$�Q�T��%7�����PT�/�HZ�9[�\�(� �rc
�R�QoQFDCoUOV2oUOV0OUOU222JE	UO[UOUQ2UOUQQ2oUOV0OUPQQ22P!)�Hello world
ሴ噸骼�utf-8�latin-1r��r$zutf-16���)rAr;�encodern�UnicodeEncodeError�r#�sample�encrDs&   r�
test_encoding�BaseBytesTest.test_encoding3s���2��&�C����v�+�A����Q���v�}�}�S�/A� B�C�'�	
���,�d�n�n�f�i�P��N�N�6�9�h�7������N�N�6�#�2�;��@�Arc���QoQ	FD5oUOV2oUOUOU2U2J7	QoUOUQ2oUO[UOQ2UOUOQQ2Q2UOUOQQQ5Q2UOUOQ2O2Q2P!)
r#r$uHello world
€þÿr%r�zHello world
)r�r�s☃u☃r&)rAr;�decodern�UnicodeDecodeErrorr*s&   r�test_decode�BaseBytesTest.test_decode<s���2��&�C����v�+�A����Q�X�X�c�]�F�3�'�1���N�N�6�9�-�����,�a�h�h��@�������'�8�4�o�F��������G��D�(�	*�	
�������8�?�?�A�8�Lrc���QoQo[OQUOOQU8QU8QU8QU8QU8QU8Q02o[	Q	Q
QU2oUOUO]
U2P!)
zBoom, Shaka Laka, Boom!z0
            import sys
            type2test = z
            encodings = zr

            for data in ('', 'short string'):
                try:
                    type2test(data, encoding=z�)
                except LookupError:
                    pass
                else:
                    sys.exit(21)

                for encoding in encodings:
                    try:
                        type2test(data, encoding=encoding, errors=a>)
                    except LookupError:
                        pass
                    else:
                        sys.exit(22)

            for data in (b'', b'short string'):
                data = type2test(data)
                print(repr(data))
                try:
                    data.decode(encoding=z�)
                except LookupError:
                    sys.exit(10)
                else:
                    sys.exit(23)

                try:
                    data.decode(errors=z�)
                except LookupError:
                    pass
                else:
                    sys.exit(24)

                for encoding in encodings:
                    try:
                        data.decode(encoding=encoding, errors=z�)
                    except LookupError:
                        pass
                    else:
                        sys.exit(25)

            sys.exit(10)
        z-X�devz-c)r��utf8�latin1)�textwrap�dedentrAr.rr;�rc)r#�invalid�	encodings�code�procs&    r�test_check_encoding_errors�(BaseBytesTest.test_check_encoding_errorsJs���,��/�	����$����0�0�1�2�"�
�&.�/6�[�9C�DK�+�
N*�+2��5(�)0�{�3?�@G�k�J	�Q/ �/
��`%�T�5�$��=��������"�d�+rc�L�UO]2oUOVO22UO]
2oUOVO],]
*22UOQ2oUOVO],Q*22P!)ri')rAr;rCs& r�
test_from_int�BaseBytesTest.test_from_int�s{���N�N�1�������N�N�,�-��N�N�2�������N�N�A�3�r�6�2�3��N�N�5�!������N�N�A�3�u�9�5�6rc�r``�UOQ2nUOQ2nUORR*Q2UOR[Q2*Q2UO[Q2R*Q2UO[U1Qk2UO[U1Qk2P!)�abc�def�abcdefsdefabcc�:�RQ*!)�defr)r�s�rrT�+BaseBytesTest.test_concat.<locals>.<lambda>�s	���R�%�Zrc�:�QR*!)r�r)r�s�rrTrJ�s	���U�R�Zr)rAr;r�rnr�)r#r�r�s&@@r�test_concat�BaseBytesTest.test_concat�s����
�^�^�F�
#��
�^�^�F�
#������b��)�,�����e�F�m�+�Y�7�����v���+�Y�7����)�%7�8����)�%7�8rc	�`�QUOQ21FCD	nUOR]*Q2UOR]*Q2UORP*Q2UO[U1Qk2UO[U1Qk2UO[[
129^tt^2R[O*oPPP2UO[[
129^tt^2R[O*nPPP2CJ	P!)%fhKZ9h)%fhCJ59h)rE�	abcabcabcrc�:�RQ*!����Q�	@rrSs�rrT�+BaseBytesTest.test_repeat.<locals>.<lambda>�s	����T�rc�:�QR*!rQrrSs�rrTrS�s	�����r)rAr;rnr�r�r�r\r]�r#�crDs& @r�test_repeat�BaseBytesTest.test_repeat�s���������/�/�A����Q��U�L�1����Q��U�C�(����Q��V�S�)����i�)9�:����i�)9�:��"�"�M�;�#?�@�@�����O��A��"�"�M�;�#?�@�@��S�[�[� ��A�@�0�A�@��@�@�@�s$�=D'	�D:	�'D7
�0D7
�:E
�E
c��UOUOQ2]d*UO[Q2,]d*22P!)�x�x)r;rAr�r(s&r�test_repeat_1char�BaseBytesTest.test_repeat_1char�s3���������-�c�1�4�>�>�3�s�8�*�S�.�3Q�Rrc�B`�UOQ2nUO[Q2R2UO[[Q22R2UO	]�R2UO[U1Qk2UO[U1Qk2UO[U1Qk2UO[U1Qk2UO[U1Qk2UO[U1Qk2[[1FCDoUOUQ2R2UOUQ	2R2UOUQ
2R2UOUQ2R2UOUQ2R2UOUQ
2R2UOUQ2R2UO	UQ2R2UO	UQ2R2UO	UQ2R2UO	UQ2R2CJ	P!)rErMc�:�QR7!)�,rrSs�rrT�-BaseBytesTest.test_contains.<locals>.<lambda>�s	���c�Q�hrc�:�PR7!rXrrSs�rrTra�s	���b�A�grc�::�[O]*R7!rXr[rSs�rrTra�s���c�k�k�!�m�q�.@rc�:�PR7!rrrSs�rrTra�s	���T�Q�Yrc�4:�[[Q22R7!�rM)�floatr�rSs�rrTra�s���U�3�s�8�_��-Arc�:�QR7!rfrrSs�rrTra�s	���S�A�Xrr�a�b�c�ab�bc�ac�dsdabsabd)
rAr�r��int�assertNotInrnr�r�r�r�)r#�frDs& @r�
test_contains�BaseBytesTest.test_contains�s�����N�N�6�"���
�
�c�#�h��"��
�
�c�#�c�(�m�Q�'�����a� ����*�&6�7����*�o�6����*�&@�A����)�%6�7����)�%A�B����)�%5�6��	�!�A��M�M�!�C�&�!�$��M�M�!�D�'�1�%��M�M�!�D�'�1�%��M�M�!�D�'�1�%��M�M�!�E�(�A�&��M�M�!�E�(�A�&��M�M�!�F�)�Q�'����Q�u�X�q�)����Q�t�W�a�(����Q�v�Y��*����Q�v�Y��*�"rc��UO[UOO2UO[UOO]2UO	UOOP2UO22[,QN2oUO	UOOQ2U2UO	UOOQ2U2UO	UOOQ2U2UO	UOOQ2U2QFD<oUO	UOOU2UO22J>	QFD.oUO[UOOU2J0	Q[1Q[
1Q	[1Q
Q1,oSFDYvqEUOUQ59^tt^2UO	UOOUQ
22U2PPP2J[	QFD<o[]]U,2oUO[UOOU2J>	UO	UOOQ2Q2UO[Q29^tt^2UOOQ2PPP2UO[UOOQ2UO[UOOQ2UO[UOOQ2UO[UOOQ2UO[UOOQ2QFDioUO[29^tt^2oUOOU2PPP2UOQ[WO22Jk	QFDnvqyUO[29^tt^2oUOOU2PPP2UOQU	0[WO22Jp	QFDrvq�UO[29^tt^2oUOOU
2PPP2UOQU*[WO22Jt	P!)%fhCJV9h)%fhCK]9h)%fhCKS9h)%fhK�9h)%fhK�9h)rY�1a2B30z  1A 2B  30   z
 1A
2B	30s
 1A
2B	30z	

 u…   
r�r��
memoryviewzarray.arrayc�2�[OQU2!)r�)r�)�bss&rrT�,BaseBytesTest.test_fromhex.<locals>.<lambda>�s��u�{�{�3��';r)�names
 1A 2B 30 s���0000sz9fromhex\(\) argument must be str or bytes-like, not tuplerM�rtz1a b cd�z12      34z?fromhex() arg must contain an even number of hexadecimal digitsz:non-hexadecimal number found in fromhex() arg at position zat position %s��r��0r)rM�aaa�deadbee))za rY)z aa a r)z aa a a r))z12 x4 56r)z12 3x 56r�)z12 xy 56r)u	12 3ÿ 56r�)rnr�rA�fromhexr;r�r�r�rw�subTest�assertRaisesRegexr�r��	exception)r#rDrV�testsr{�factory�u8r!�cm�position�data�poss&           r�test_fromhex�BaseBytesTest.test_fromhex�s�����)�T�^�^�%;�%;�<����)�T�^�^�%;�%;�Q�?�������/�/��3�T�^�^�5E�F��(�)��������/�/��9�1�=�������/�/�0@�A�1�E�	
������/�/��@�!�D�������/�/�0@�A�1�E�+�A����T�^�^�3�3�A�6����8H�I�,�=�A����j�$�.�.�*@�*@�!�D�>�
�e��
�)�$�
�:�&�
�;�<�	
��#�M�D����4��(�(�� � ����!7�!7��
�8N�!O�QR�S�)�(�#�
0�B��r�2�r�l�#�A����j�$�.�.�*@�*@�!�D�0�	
������/�/��7��A�
�
#�
#��H�
�
�
�N�N�"�"�2�&�	
�
	
���*�d�n�n�&<�&<�c�B����*�d�n�n�&<�&<�d�C����*�d�n�n�&<�&<�i�H����*�d�n�n�&<�&<�f�E����*�d�n�n�&<�&<�>N�O�-�E��"�"�:�.�.�"����&�&�u�-�/��M�M�[�]`�ac�am�am�]n�o�-� K�O�E��"�"�:�.�.�"����&�&�u�-�/��M�M�V�W_�V`�a�cf�gi�gs�gs�ct�u� K�
	
�I�D��"�"�:�.�.�"����&�&�t�,�/��M�M�*�S�0�#�b�l�l�2C�D�	
�=)�(�(��
�
�
��/�.�.��/�.��/�.�sZ�>2T#	�T8�&U	�U 	�
U3	�#T5
�,T5
�8U		�U		�U
�U
� U0
�)U0
�3V
�<V
c��UO[UOO2UO[UOO]2UO	UOQ2O2P2UO	[,QN2O2Q2UO	UOQ2O2Q2UO	[
Q2O2Q2P!)rYr�1a2b30�+0r)rnr�rA�hexr;r�rwr(s&r�test_hex�BaseBytesTest.test_hex�s������)�T�^�^�%7�%7�8����)�T�^�^�%7�%7��;��������,�0�0�2�B�7�����#5�6�:�:�<�h�G��������8�<�<�>��I�����O�4�8�8�:�H�Erc
��UOQ2oUOUO2Q2UO[29^tt^2UOP2PPP2UO[29^tt^2UOQ2PPP2UOUOQ]2Q2UO[
29^tt^2UOP]2PPP2UO[29^tt^2UOQ2PPP2UO[29^tt^2UOQ2PPP2UO[29^tt^2UOQ2PPP2UO[29^tt^2UO[
Q22PPP2UOUOQ]2Q2UOUOQ2Q	2UOUOQ
2Q	2UOUOQ2Q2UOUOQ
2Q2UOUOQ]2Q2UOUOQ]2Q2UOUOQQ2Q2UOUOQ2Q2UOUOQ2Q2UOUOQ]2Q2UOUOQP2Q2UOUOQ]2Q2UOUOQ]2Q2UOUOQQ2Q2UOUOQ]Q5Q2UOUOQQQ5Q2]Q[O[O'1FDHoUOUQ59^tt^2UOUOQU2Q2PPP2JJ	[O]*[O']*
]Q*]Q*'1FDIoUOUQ59^tt^2UOUOQU2Q2PPP2JK	QoUOUOQ]2Q2P!)%fhCK�9h)%fhCK�9h)%fhCK�9h)%fhCK]9h)%fhCK:9h)%fhCK9h)%fhCK�9h)%fhCJ�9h[cK�h9h)%fhCJ79h)s���b901ef�xx�:�ÿ����rsr�zb901efr~�zb901ef�zb9:01:ef�$zb9$01$efzb9:01ef�*zb901*ef)�sep�
bytes_per_sep)r�r�s {sworldishelloi0�.zC7b7305000000776f.726c646902000000.730500000068656c.6c6f690100000030���rfr')rAr;r�rnr�r��chrr\r]r�r�)r#�three_bytesr�r!s&   r�test_hex_separator_basics�'BaseBytesTest.test_hex_separator_basicssS���n�n�_�5��������*�H�5�
�
�
�z�
*�
*��O�O�B��+�
�
�
�z�
*�
*��O�O�D�!�+��������a�0�(�;�
�
�
�y�
)�
)��O�O�D�!�$�*�
�
�
�z�
*�
*��O�O�F�#�+�
�
�
�z�
*�
*��O�O�G�$�+�
�
�
�z�
*�
*��O�O�G�$�+�
�
�
�z�
*�
*��O�O�C��J�'�+��������a�0�(�;��������1�3C�D��������0�2B�C��������1�3C�D��������0�2B�C��������a�0�(�;��������a�0�(�;��������b�1�8�<��������-�z�:��������.�
�;��������a�0�*�=��������b�1�:�>��������a�0�)�<��������a�0�*�=��������b�1�9�=�������S���B�I�N�������S���C�Y�O���C�K�K�#�+�+��=�M����M��:�:�� � �����m�!D�h�O�;�:�>�!�[�[��]�S�[�[�L��N�A�t�G�a��g�X�M�M����M��:�:���$�$�[�_�_�S�-�%H�(�S�;�:�N�d��������3��*�,q�r�W+�
*�
*��
*�
*�
*��*�
)�
)��
*�
*�
*��
*�
*�
*��
*�
*�
*��
*�
*�
*��(;�:�:��%�����;�:�:�s��U�U� U*�U>�V�V&�=V:�#W	�,W4	�."W#�U	�U	�U'	�U'	�*U;	�3U;	�>V	�V	�V#	�V#	�&V7	�/V7	�:W	�W	�W 
�W 
�#	W1�-W1�.W4	�0W1�1W4	�4X
�=X
c�~�UO[]Z]_22oUOUO2Q2P!)�Z�
5a5b5c5d5e�rAr�r;r�)r#�
five_bytess& r�test_hex_separator_five_bytes�+BaseBytesTest.test_hex_separator_five_bytes7s-���^�^�E�"�R�L�1�
�������)�<�8rc��UOQ[]]222oUOUO2Q2UOUOQ]2Q2UOUOQ]2Q2UOUOQ]2Q2UOUOQ]2Q	2UOUOQ]2Q
2UOUOQ]2Q2UOUOQ]_2Q2UOUOQQ2Q2UOUOQQ2Q
2UOUOQQ2Q2UOUOQQ2Q2UOUOQQ2Q2P!)c3�>�SF �Dp]*w�	J	P!3h�rr�rvr[s& rrx�=BaseBytesTest.test_hex_separator_six_bytes.<locals>.<genexpr><s������1�Q�3�3��s��0306090c0f12r�z03.06.09.0c.0f.12� z0306 090c 0f12�-z
030609-0c0f12r�z
0306:090c0f12z
03:06090c0f12�_�
030609_0c0f12z
0306090c:0f12�@z
0306090c0f@12r'r�ri����i����r�)r#�	six_bytess& r�test_hex_separator_six_bytes�*BaseBytesTest.test_hex_separator_six_bytes;sx���N�N�"<��a���"<�<�	��������.�9�������s�A�.�0C�D�������s�A�.�0@�A�������s�A�.��@�������s�A�.��@�������s�A�.��@�������s�A�.��?�������s�B�/��@�������s�B�/��A�������s�B�/��A�������t�R�0�/�B�������s�B�/��@�������s�C�0�.�Arc	�P�QFD�oUO[[U222oPOQ[U222oUO	UQ59^tt^2UOUO
2U2PPP2J�	P!)%fhJ�9h)�c3�4�SF �D	pQ
w�	J	P!3h)�02xr)rvrDs& rrx�9BaseBytesTest.test_hex_simd_boundaries.<locals>.<genexpr>Ps��=���=�a�C��z�=�s�)�length)	r������ �!�@�A)rAr�r��joinr�r;r�)r#r�r�r=s&   r�test_hex_simd_boundaries�&BaseBytesTest.test_hex_simd_boundariesKsx��;�F��>�>�%��f�
�"6�7�D��w�w�A�5��=�A�A�H����V��,�,�� � �����X�6�-�,�;�-�,�,�s�%!B	�B%
�B%
c���UO[,QN22oUOUO2Q2UOU]*2oUOUO2Q2P!)�	�090a90999aa0a9aa00ff)
r�ra������rr��(090a90999aa0a9aa00ff090a90999aa0a9aa00ff)rAr�r;r�)r#�boundary_bytes�
simd_boundarys&  r�test_hex_nibble_boundaries�(BaseBytesTest.test_hex_nibble_boundariesTsi������/
�)���	
����+�+�-�/E�F����~��'9�:�
�����*�*�,�.H�Irc	�x�UOUOQ2O,2Q2UOUOQ2OQ,2Q2Q,QQ,QQ,,QN1FD�o[[	UOU22oUOUOQ2OU2Q2UOUOQ2O[U22Q2UOUOQ2O[
U22Q2J�	UOQ2OoUOUQQ,2Q2UOU[Q2Q,2Q2UOUQ[Q2,2Q2UOU[Q2Q,2Q2UOUQ[Q2,2Q2Q,Q	*oQQ
Q**oUOUU2U2Q,Q	*oQQ	*oUOUOQ2OU2U2UO[UOQ2OP2UO[29^tt^2U[Q2Q
Q,2PPP2UO[29^tt^2U[Q2Q
Q,2PPP2P!)%fhKL9h)%fhP!9h)rrErirmrlrks.:�cdsab.:cdi��s.:abci��� �cd�ef)rirjrk)r;rAr�r�r�r�r�rwr�rnr�)r#�lst�dot_join�seqr=s&    r�	test_join�BaseBytesTest.test_joinjs����������,�1�1�"�5�s�;��������,�1�1�3�%�8�#�>��H�t�U�m�e�T�]�<N�O�C��s�4�>�>�3�/�0�C����T�^�^�C�0�5�5�c�:�F�C����T�^�^�C�0�5�5�e�C�j�A�6�J����T�^�^�C�0�5�5�d�3�i�@�&�I�	P�
�>�>�%�(�-�-������5�%�.�1�9�=�����:�e�#4�e�"<�=�y�I�����5�*�U�*;�"<�=�y�I�����9�U�#3�U�";�<�i�H�����5�)�E�*:�";�<�i�H��h�����H�u�,�,������#���1��h�����F�?���������,�1�1�#�6��A����)�T�^�^�D�%9�%>�%>��E��
�
�y�
)�
)��i��&��e�4�5�*�
�
�
�y�
)�
)��j��'��u�5�6�*�
)�*�
)��
)�
)�
)�s$�<L�6L(�L%	�L%	�(L9	�1L9	c��QoUOQ2UOQ21FD�oUOUQ59^tt^2UQ2oUO[UOU2QoUU2oUOUO	U2UO	,QN22PPP2J�	P!)%fhJ�9h)c�<``�UU1QkQ2oQU2Q,nR!)c�2:`�\sQsQsnUU1QksQsUsP!)�RBaseBytesTest.test_join_concurrent_buffer_mutation.<locals>.make_seq.<locals>.Item�c�,:�RR2[Q2!)rZ�rw)r#�flags�mutater�s&&��r�
__buffer__�]BaseBytesTest.test_join_concurrent_buffer_mutation.<locals>.make_seq.<locals>.Item.__buffer__�s����3�K�%�d�+�+rr)r.r/r0r1r�r2r3)r5r�r�s@��r�Itemr��s����,�,rr�rirkr)r�r�r�sf @r�make_seq�DBaseBytesTest.test_join_concurrent_buffer_mutation.<locals>.make_seq�s"���
,�
,�����&�C��Jrrs::)r�c�$�UO2!rr��r�s&rrT�DBaseBytesTest.test_join_concurrent_buffer_mutation.<locals>.<lambda>�s
��3�9�9�;rc��QU]$P!)�zrr�s&r�replace�CBaseBytesTest.test_join_concurrent_buffer_mutation.<locals>.replace�s��!�C��Fr)rirZrk)rAr�rn�RuntimeErrorr�r;)r#r�r�r�r�s&    r�$test_join_concurrent_buffer_mutation�2BaseBytesTest.test_join_concurrent_buffer_mutation�s���	��N�N�3�'�����)>�?�C����#��&�&��6�7���!�!�,����#�>�"��w�'��� � ����#�����9K�0L�M�'�&�@�&�&�&�s�A(B;	�;C
�C
c��UOQ2o]io]po]woUOUOQ2]2UOUOQ2]2UOUOQ2]2UOUOU2]2UOUOU2]2UOUOQ]2]2UOUOQ]2]2UOUOQ]]2]2UOUOQ]]	2]2UOUOU]2]2UOUOU]2]2UOUOU]]2]2UOUOU]]	2]2P!)�mississippi�i�ss�w�p)rAr;�count)r#rDrw�p�ws&    r�
test_count�BaseBytesTest.test_count�su���N�N�>�*�����������������*����������+����������*���������Q�'���������Q�'��������q�)�1�-��������q�)�1�-��������q�!�,�a�0��������q�!�,�a�0��������A���*��������A���*��������A�q�)�1�-��������A�q�)�1�-rc���UOQ2oUOUO2OQ22UOUOQ22UOUOQ22UOUOQ22UOUOQ22UOUOQ22UO	[
29^tt^2oUOQ,2PPP2[
WO2oUOQU2UOQU2P!)%fhKK9h)�hello�anythingshel�hshellowshar�r�)	rAr��
startswithr�rnr�r�r�r��r#rDr��excs&   r�test_startswith�BaseBytesTest.test_startswith�s����N�N�8�$��������)�4�4�[�A�B�������X�.�/�������V�,�-�������T�*�+�������i�0�1�������e�,�-�
�
�
�y�
)�
)�R�
�L�L�$�� �*��"�,�,����
�
�g�s�#��
�
�g�s�#�	*�
)�s�>E�E$	�E$	c���UOQ2oUO[2OQ22UO	UOQ22UO	UOQ22UO	UOQ22UOUOQ22UOUOQ22UO[29^tt^2oUOQ,2PPP2[WO2oUOQU2UOQU2P!)%fhKK9h)rr
sllo�oswhellosnor�r�)
rAr�r��endswithr�rnr�r�r�r�rs&   r�
test_endswith�BaseBytesTest.test_endswith�s����N�N�8�$�������-�-�k�:�;�����
�
�8�,�-�����
�
�6�*�+�����
�
�4�(�)�������I�.�/�������E�*�+�
�
�
�y�
)�
)�R�
�J�J��v��*��"�,�,����
�
�g�s�#��
�
�g�s�#�	*�
)�s�8E�E	�E	c��UOQ2o]io]woUOUOQ2]2UOUOQ2P2UOUOQ2P2UOUOU2]2UOUOU2P2UOUOQ]2]2UOUOQ]]2]2UOUOQ]]2P2UOUOU]2]2UOUOU]]2]2UOUOU]]2P2PQ[O]*1FD%oUO[QUOU2J'	P!)rrr�
mississippianrszbyte must be in range\(0, 256\))rAr;�findr\r]r�r�)r#rDrwr�indexs&    r�	test_find�BaseBytesTest.test_find�sq���N�N�>�*���������������*���������r�*������� 0�1�2�6���������A�&���������B�'��������q�)�1�-��������q�!�,�a�0��������q�!�,�b�1��������1��q�)��������1�a��!�,��������1�a��"�-��#�s�{�{�Q��/�E��"�"��>�����
�0rc���UOQ2o]io]woUOUOQ2]2UOUOQ2P2UOUOQ2P2UOUOU2]
2UOUOU2P2UOUOQ]2]2UOUOQ]]2]2UOUOU]]2]2UOUOU]]	2]2UOUOU]]2P2P!�rrrr)rAr;�rfind�r#rDrwrs&   r�
test_rfind�BaseBytesTest.test_rfind�s#���N�N�>�*���������������+����������+�������!1�2�B�7���������R�(���������R�(���������*�A�.���������1�-�q�1��������A�q�)�1�-��������A�q�)�1�-��������A�q�)�2�.rc��UOQ2o]io]woUOUOQ2]2UO[UOQ2UO[UOQ2UOUOU2]2UO[UOU2UOUOQ]2]2UOUOQ]]2]2UO[UOQ]]2UOUOU]2]2UOUOU]]2]2UO[UOU]]2P!r )rAr;rrnr�r"s&   r�
test_index�BaseBytesTest.test_indexs0���N�N�>�*���������������+����*�a�g�g�t�4����*�a�g�g�/?�@���������Q�'����*�a�g�g�q�1���������*�A�.���������1�-�q�1����*�a�g�g�u�a��;��������A���*��������A�q�)�1�-����*�a�g�g�q�!�Q�7rc���UOQ2o]io]woUOUOQ2]2UO[UOQ2UO[UOQ2UOUOU2]
2UO[UOU2UOUOQ]2]2UOUOQ]]2]2UOUOU]]2]2UOUOU]]	2]2UO[UOU]]2P!r )rAr;�rindexrnr�r"s&   r�test_rindex�BaseBytesTest.test_rindexs���N�N�>�*������������%��!�,����*�a�h�h��5����*�a�h�h�0@�A�������!��b�)����*�a�h�h��2�������%��+�Q�/�������%��A�.��2�������!�Q��*�A�.�������!�Q��*�A�.����*�a�h�h��1�a�8rc
��`�ROQ2oSoUQ*oROUQ2ROUQ2ROVI2ROQ2oUQ"*oROUQ2RO[	U2RO2ROQ2oUQ*oROUQ2RO[	U2RO2U1QkoUQQ	Q
-Q2UQQ
Q
Q	Q-Q2UQQ	Q
Q]{-Q2UQQ#Q2UQQ$Q2UQQ%Q2UQQ&Q2UQQ'Q2UQQ(Q2UQQQ2QQ2oUQ2oQ)Q*Q+QQU1Q,Q-Q.Q/Q0Q1Q QU1,oSFDJvq�o
RO[Q!U*29^tt^2[OV�2PPP2JL	P!)%fhJa9h)2�
hello, %b!�world�
hello, world!�%s / 100 = %d%%�seventy-nine / 100 = 79%�
hello,%b!�
hello,world!c�:�ROU2oV1*oROV22RO[U2RO2P!r)rAr;r9r:)�fmt�vals�resultrDr#s&&& �r�check�%BaseBytesTest.test_mod.<locals>.check9s<������s�#�A���A����Q�'��M�M�$�q�'�4�>�>�2rs
...%(foo)b...�foorEs	...abc...s...%(f(o)o)b...sf(o)osbarrF�%*bs  abcsabc  s%*.*bs   abs%i %*.*bs10   abcs
%i%b %*.*bs	103   abc�%cric�.`�\sQsQsnQsQsQsUsP!)�+BaseBytesTest.test_mod.<locals>.PseudoFloat�Kc�(�[U2UmP!r)rgr!r"s&&rr$�4BaseBytesTest.test_mod.<locals>.PseudoFloat.__init__Ls
��"�5�\��
rc�.�[UO2!r)rpr!r(s&r�__int__�3BaseBytesTest.test_mod.<locals>.PseudoFloat.__int__Ns���4�:�:��&rr )r.r/r0r1r$rCr2r3r4s@r�PseudoFloatr>Ks����
*�
'�
'rrEgo���!	@�%xz+%x requires an integer, not .*\.PseudoFloatzL%c requires an integer in range\(256\) or a single byte, not .*\.PseudoFloatzformat argument: �sseventy-nine�O)rrE)rrE)rrerE)rrrE)rarrrE)ra�3rrrE)z!%x requires an integer, not floatrFrR)z!%X requires an integer, not float�%Xg�z�G�@)z!%o requires an integer, not float�%og�p=
ף�?)z#%x requires an integer, not complexrF�@)z#%X requires an integer, not complexrJ�@)z#%o requires an integer, not complexrKy�?)z&%u requires a real number, not complexs%urL)z&%i requires a real number, not complexs%irM)z&%d requires a real number, not complex�%drM)	rAr;r�r9r:r�r��operator�mod)r#rD�origrMr8rE�pi�exceptions_params�msg�format_bytesr!sf          r�test_mod�BaseBytesTest.test_mod(s����N�N�=�)����
��L������,�-�����}�-������#��N�N�-�.��
�%�%������7�8��
�
�d�1�g�t�~�~�.��N�N�+�,��
��L������/�0��
�
�d�1�g�t�~�~�.�	3�	������>�
� �8�F�F�6�"B�L�Q�
����v�c� :�L�I�
�f�l�H�-�
�f�m�X�.�
�h���2�
�h���2�
�k�.��<�
�m�6��E�
�e�T�4� �	'�	'���
 ��
?�>�>�
;�U�B�G�>�>�>�A�A�A�:��r�
�
��$):�$�C�u��'�'�	�3F��3L�M�M����\�1�N�M�):�M�M�M�s�>G#	�#G4
�,G4
c���[OQ2oUO[29^tt^2UO	Q2oV!O
Q1*PPP2P!)%fhP!9h)�	_testcapir;rE)r�
import_modulernr�rA�PY_SSIZE_T_MAX)r#rYrDs&  r�test_memory_leak_gh_140939�(BaseBytesTest.test_memory_leak_gh_140939isQ��!�/�/��<�	�
�
�
�{�
+�
+����v�&�A�
�)�)�6�2�2�,�
+�
+�
+�s�&A%�%A6	�.A6	c���UOQ2oSoUQ*oUOUQ2UOUQ2UOVI2UOQ2oUQ*oUOUQ2UO[	U2UO2UOQ2oUQ*oUOUQ2UO[	U2UO2P!)r-r.r/r0r1r2r3rG)rAr;r�r9r:)r#rDrQs&  r�	test_imod�BaseBytesTest.test_imodps����N�N�=�)����	�X�
������,�-�����}�-������#��N�N�-�.��	�
"�"������7�8��
�
�d�1�g�t�~�~�.��N�N�+�,��	�X�
������/�0��
�
�d�1�g�t�~�~�.rc�"�UO[29^tt^2[2UOQ2*PPP2UO	UOQ2OQ2[2P!)%fhKF9h)rEz%r)rnr��objectrAr9�__rmod__�NotImplementedr(s&r�	test_rmod�BaseBytesTest.test_rmod�sV��
�
�
�y�
)�
)��H�t�~�~�f�-�-�*��
�
�d�n�n�V�,�5�5�d�;�^�L�*�
)�s�!A>�>B	�B	c��UOQ2oUOUOQQ2Q2UOUOQQ2Q2P!)rrrismassassapparrZs	mixixippi�rAr;r�rCs& r�test_replace�BaseBytesTest.test_replace�sF���N�N�>�*��������4��.��?�������5�$�/��>rc�J�UOQ2oUOUOQQ]Q5Q2UOUOQQ]Q5Q2UOUOQQ]Q5Q2UOUOQQ]Q5Q2P!)saarirj)rsbasbbrhrCs& r�test_replace_count_keyword�(BaseBytesTest.test_replace_count_keyword�s����N�N�5�!��������4��Q��7��?�������4��Q��7��?�������4��Q��7��?�������4��Q��7��?rc�j�UO[UOQ2O] Q2P!)�a br)rnr�rAr�r(s&r�test_replace_int_error�$BaseBytesTest.test_replace_int_error�s%�����)�T�^�^�F�%;�%C�%C�R��Mrc���UO[UOQ2OQ2UO[UOQ2OQ2P!�ror��rnr�rA�split�rsplitr(s&r�test_split_string_error�%BaseBytesTest.test_split_string_error�sD�����)�T�^�^�F�%;�%A�%A�3�G����)�T�^�^�F�%;�%B�%B�C�Hrc���UO[UOQ2O] 2UO[UOQ2O] 2P!�rortr(s&r�test_split_int_error�"BaseBytesTest.test_split_int_error�sD�����)�T�^�^�F�%;�%A�%A�2�F����)�T�^�^�F�%;�%B�%B�B�Grc���QFD5oUOU2oUOUO2U,2J7	UOQ2oUOUO2Q,2P!)�ab�		

�)r~sabsabsab)rAr;rurCs& r�test_split_unicodewhitespace�*BaseBytesTest.test_split_unicodewhitespace�s]��=�A����q�!�A����Q�W�W�Y���,�>�
�N�N�B�C���������%8�$9�:rc�l�UOQ2oUOUO2Q,2P!)rr�)rAr;rvrCs& r�test_rsplit_unicodewhitespace�+BaseBytesTest.test_rsplit_unicodewhitespace�s+���N�N�B�C���������&9�%:�;rc��UOQ2oUOUOQ2Q2UOUOQ2Q2P!)rrr)smirsissippi)rrr)rAr;�	partitionrCs& r�test_partition�BaseBytesTest.test_partition�sD���N�N�>�*��������U�+�-G�H�������T�*�,F�Grc���UOQ2oUOUOQ2Q2UOUOQ2Q2UOUOQ2Q2P!)rrrr)smissirsippi)s
mississipprr)rrr)rAr;�
rpartitionrCs& r�test_rpartition�BaseBytesTest.test_rpartition�s^���N�N�>�*��������e�,�.H�I�������d�+�-G�H�������d�+�-G�Hrc���UO[UOQ2OQ2UO[UOQ2OQ2P!rs�rnr�rAr�r�r(s&r�test_partition_string_error�)BaseBytesTest.test_partition_string_error�sD�����)�T�^�^�F�%;�%E�%E�s�K����)�T�^�^�F�%;�%F�%F��Lrc���UO[UOQ2O] 2UO[UOQ2O] 2P!rzr�r(s&r�test_partition_int_error�&BaseBytesTest.test_partition_int_error�sD�����)�T�^�^�F�%;�%E�%E�r�J����)�T�^�^�F�%;�%F�%F��Krc��[[O]*2FD[oQFDQoUOU2o[OV!2o[O
U2oUO
V$2JS	J]	P!)rY�rrirEs�ab�s�)r��pickle�HIGHEST_PROTOCOLrA�dumps�loadsr;)r#�protorD�ps�qs&    r�
test_pickling�BaseBytesTest.test_pickling�s_���6�2�2�Q�6�7�E�F���N�N�1�%���\�\�!�+���L�L��$��� � ��&�	G�8rc
��[[O]*2FCD)oQFCDo[UO	U229q4[UO	U22o[OV12o[OU2oUO[U2[U22UO[U2U2[OU2oU%fJ�[U2[OV12o[OU2oUO[U2UQ*2CJ 	CJ,	P!)rYrr�)r�r�r�r�rAr�r�r�r;r:�next)r#r�rD�it�itorgr��ds&      r�test_iterator_pickling�$BaseBytesTest.test_iterator_pickling�s����6�2�2�Q�6�7�7�E�F��!�$�.�.��"3�4�4���D�N�N�1�-�.���L�L��+���\�\�!�_��� � ��e��d�2�h�7�� � ��b��4�0��\�\�!�_�����R���L�L��+���\�\�!�_��� � ��b��4��8�4�G�8rc�^�UOUOQ2O[Q22Q2UOUOQ2O	[Q22Q2UOUOQ2O[Q22Q2P!)rErnrjrmrl)r;rA�striprw�lstrip�rstripr(s&r�test_strip_bytearray�"BaseBytesTest.test_strip_bytearray�s}���������/�5�5�j��6G�H�$�O��������/�6�6�z�%�7H�I�5�Q��������/�6�6�z�%�7H�I�5�Qrc�(�UO[UOQ2OQ2UO[UOQ2OQ2UO[UOQ2O
Q2P!)rE�ac�rnr�rAr�r�r�r(s&r�test_strip_string_error�%BaseBytesTest.test_strip_string_error�se�����)�T�^�^�F�%;�%A�%A�4�H����)�T�^�^�F�%;�%B�%B�D�I����)�T�^�^�F�%;�%B�%B�D�Irc�(�UO[UOQ2O] 2UO[UOQ2O] 2UO[UOQ2O
] 2P!)s abc r�r(s&r�test_strip_int_error�"BaseBytesTest.test_strip_int_error�se�����)�T�^�^�H�%=�%C�%C�R�H����)�T�^�^�H�%=�%D�%D�b�I����)�T�^�^�H�%=�%D�%D�b�Irc
��UOQ2o[[1FD:oUOUO	]UQ22UOQ22J<	P!)rE�-s--abc--)rAr�r�r;�center�r#rD�	fill_types&  r�test_center�BaseBytesTest.test_center�sJ���N�N�6�"����+�I����Q�X�X�a��4��9�!�^�^�J�7�
9�,rc
��UOQ2o[[1FD:oUOUO	]UQ22UOQ22J<	P!)rEr�sabc----)rAr�r�r;�ljustr�s&  r�
test_ljust�BaseBytesTest.test_ljust��J���N�N�6�"����+�I����Q�W�W�Q�	�$��8�!�^�^�J�7�
9�,rc
��UOQ2o[[1FD:oUOUO	]UQ22UOQ22J<	P!)rEr�s----abc)rAr�r�r;�rjustr�s&  r�
test_rjust�BaseBytesTest.test_rjust�r�rc�.�UO[UOQ2O]] 2UO[UOQ2O]] 2UO[UOQ2O
]] 2P!)rE)rnr�rAr�r�r�r(s&r�test_xjust_int_error�"BaseBytesTest.test_xjust_int_error�sk�����)�T�^�^�F�%;�%B�%B�A�r�J����)�T�^�^�F�%;�%A�%A�1�b�I����)�T�^�^�F�%;�%A�%A�1�b�Irc���UOQ2oSO[[U22Tt,tFDo[	VU]*2MJ	to,QN2P!ttoh)sA��)rr���r�)rAr;r�rmr�)r#rDrws&  r�test_ord�BaseBytesTest.test_ord�sJ���N�N�-�.������s�1�v��?��A�#�a�!�A�#�h�-��?�/�	1��?s�Ac�p�QoUOUOOQQ2U2QoUOUOOQQ2U2UO[UOOQQ2UO[
UOOQQ2P!)s	

 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`xyzdefghijklmnopqrstuvwxyz{|}~�����������������������������������������������������������������������������������������������������������������������������rE�xyzs	

 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~��������������������������������������������������������������������������������������������������������������������������xyzs���sxyzqr�rI)r;rA�	maketransrnr�r�)r#�
transtables& r�test_maketrans�BaseBytesTest.test_maketranss���~�
�������1�1�&�&�A�:�N�u�
�������1�1�/�6�J�J�W����*�d�n�n�&>�&>���P����)�T�^�^�%=�%=�u�e�Lrc�L�UOQ2oUOQ2oUOQ2oUOQ2oUOQ2oUO]UOUP22UO]UOUQP22UO]UOUPQ22UO]UOUPP22UO]UOUP22UO]UOUQP22UO]UOUPQ22UO]UOUPP22UO]UO	UP22UO]UO	UQP22UO]UO	UPQ22UO]UO	UPP22UO]UOUP22UO]UOUQP22UO]UOUPQ22UO]UOUPP22UO]UO
UP22UO]UO
UQP22UO]UO
UPQ22UO]UO
UPP22UOP	UOUP22UOP	UOUQP22UOP	UOUPQ22UOP
UOUPP22UOP	UOUP22UOP	UOUQP22UOP	UOUPQ22UOP
UOUPP22P!)r�lrrZrrf)	rAr;rr!rr)rrr)r#rD�l�hr[�os&     r�test_none_arguments�!BaseBytesTest.test_none_argumentsse���N�N�8�$���N�N�4� ���N�N�4� ���N�N�4� ���N�N�4� ������A�F�F�1�d�O�,�����A�F�F�1�b�$�/�0�����A�F�F�1�d�B�/�0�����A�F�F�1�d�D�1�2�����A�G�G�A�t�,�-�����A�G�G�A�r�4�0�1�����A�G�G�A�t�R�0�1�����A�G�G�A�t�T�2�3�����A�G�G�A�t�,�-�����A�G�G�A�r�4�0�1�����A�G�G�A�t�R�0�1�����A�G�G�A�t�T�2�3�����A�H�H�Q��-�.�����A�H�H�Q��D�1�2�����A�H�H�Q��b�1�2�����A�H�H�Q��d�3�4�����A�G�G�A�t�,�-�����A�G�G�A�r�4�0�1�����A�G�G�A�t�R�0�1�����A�G�G�A�t�T�2�3�����q�z�z�!�T�2�3�����q�z�z�!�R��6�7�����q�z�z�!�T�2�6�7������
�
�1�d�D� 9�:�����q�|�|�A�t�4�5�����q�|�|�A�r�4�8�9�����q�|�|�A�t�R�8�9��������Q��d� ;�<rc�6�UOQ2oUOUOUOUOUO
1FDHoUO
[UP2UO
[UQ2UO
[UQ2JJ	P!)rrsi')rArrrr!r)rnr�)r#rD�methods&  r�(test_integer_arguments_out_of_byte_range�6BaseBytesTest.test_integer_arguments_out_of_byte_range6sp���N�N�8�$���w�w����������!�(�(�C�F����j�&�"�5����j�&�#�6����j�&�$�7�Drc	�R�UOQ2oUOQ2oUO[QUOUPPP2UO[QUOUPPP2UO[QUO
UPPP2UO[QUOUPPP2UO[QUOUPPP2UO[QUOUPPP2UO[QUOUPPP2P!)	rrZz\bfind\bz	\brfind\bz	\bindex\bz
\brindex\bz	\bcount\bz\bstartswith\bz\bendswith\b)
rAr�r�rr!rr)rrr)r#rDr[s&  r�*test_find_etc_raise_correct_error_messages�8BaseBytesTest.test_find_etc_raise_correct_error_messages>s���N�N�8�$���N�N�4� �����y�+�q�v�v� !�4��t�	5����y�,���� !�4��t�	5����y�,���� !�4��t�	5����y�-���� !�4��t�	5����y�,���� !�4��t�	5����y�*;�Q�\�\� !�4��t�	5����y�/�1�:�:� !�4��t�	5rc���[OOU[UO2[OOU[
UO2P!r)�testr�check_free_after_iteratingr�rArr(s&r�test_free_after_iterating�'BaseBytesTest.test_free_after_iteratingQs6�����/�/��d�D�N�N�K����/�/��h����Orc	���UOQ2o[[Q22o[Q2U[Q2$UO	[
UO2UO	[
UOPP2UO	[UO[[]�222UO
UQ2oUOUQ2UOV0O2UO
U2oUO
UQ2oUOV42UOUQ2UO
UQ2oUOUQ2UO
PQ2oUOUQ	2UO
UQQ
5oUOUQ2UO
UQQ
5oUOUQ2UO
PQQ
5oUOUQ	2P!)rrs�er�rsheller�shee�eshllo)�delete)rAr�r�r�rnr��	translater�r�r;�assertIsInstance)r#rD�rosettarVr�s&    r�test_translate�BaseBytesTest.test_translateUs����N�N�8�$���E�#�J�'����H���C������)�Q�[�[�1����)�Q�[�[�$��=����*�a�k�k�5��s��3D�E�
�K�K���*������H�%����a���0�
�K�K�� ��
�K�K���%�����������H�%�
�K�K���&������F�#�
�K�K��d�#������G�$�
�K�K���K�,������H�%�
�K�K���K�-������F�#�
�K�K��T�K�*������G�$rc���[OQ2oUOQ2oUO[29^tt^2UOUQ2PPP2UO[29^tt^2UOU]2PPP2UO
UOU]2]*2P!)%fhKl9h)%fhKG9h)�_testlimitedcapir�rf)rrZrArnro�sequence_getitemr;)r#r��objs&  r�test_sq_item�BaseBytesTest.test_sq_itemts���(�6�6�7I�J���n�n�U�#��
�
�
�z�
*�
*��-�-�c�2�6�+�
�
�
�z�
*�
*��-�-�c�1�5�+����)�:�:�3��B�B�G�	+�
*��
*�
*�s$�B=�>C�=C
	�C
	�C 	�C 	r)Tr.r/r0r1r>rErOrpr�r�r�r�r�r�r�r�r�rr�r�r�rr�rrr r-r2r?rBrLrWr\rsr�r�r�r�r�r�r�r�r�r	rrrr#r&r*rVr\r_rerirlrprwr{r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r2r3r4s@rr7r73s�����+�6�
/�
;�-�8-�-�0�"H�B�J�M�&
A�����L�#�.�:��:�(�1�(	]�B�M�6,�p7�9�!�S�+�0BE�HF�.s�`9�B� 7�J�,7�<N�4.�.$�$��2/�&8�(9�&?2�B3�/�"M�
?�
@�N�I�H�;�<�H�
I�M�L�'�5�$R�
J�
J�
9�9�9�J�
1�
M�)=�V8�5�&P�%�>H�Hrr7c�P`�\sQsQsn\sQsQsQsQs	Qs
QsQsQ	s
UsP!)
�	BytesTesti~c��QoUOUO2U2UO[UO22UO2QQ[2oUQ2oUOUO2U2UO[UO22UO2P!)sfoobarc��\sQsQsQsP!)�/BytesTest.test__bytes__.<locals>.bytes_subclassi�rr�rrr�bytes_subclassr��r�rr�sbarfoo)r;�	__bytes__r:rAr�)r#�foor��bars&   r�
test__bytes__�BytesTest.test__bytes__�s������������#�.�����c�m�m�o�.����?�	�U�	��]�+���������#�.�����c�m�m�o�.����?rc��QoQoUO[U29^tt^2UQ*PPP2P!)%fhP!9h)�pythonz'byte indices must be integers or slicesrM)r�r��r#rDrTs&  r�test_getitem_error�BytesTest.test_getitem_error�s5����7��
�
#�
#�I�s�
3�
3�
�c�F�4�
3�
3�
3�s�
8�A		�A		c��[O[[O2o[UQ]Q59^tt^2oUO	[
UOQ2PPP2P!)%fhP!9h)�rb)�	bufferingr)�os�open�__file__�O_RDONLYrnr��readinto)r#�fdrrs&  r�test_buffer_is_readonly�!BytesTest.test_buffer_is_readonly�sL��
�W�W�X�r�{�{�
+��
�"�d�a�
(�
(�A����i����S�9�)�
(�
(�
(�s�"A-�-A>	�6A>	c	��UO[[Q22Q2UO[[Q22[Q22UO[[	Q22Q2UO[[	Q22[Q22QQ2oUO[[U22UO[[[	Q22UO[[[	P22QQ2oUO[U22Q2QQ[2oUO[UQ22Q2UO[UQ2Q	2Q
2UO[U[Q222Q2UO[UQ22[Q22UO[UQ2Q	2[Q
22UO[U[Q222[Q22UO[U[Q222[Q22UO[[	[Q222[Q22UO[[	[Q222[Q22UO[[	[Q222[Q22QQ[2oUO[UQ22Q2UO[UQ22[Q22UO[U[Q222[Q22UO[U[Q222[Q22UO[U[Q222[Q22P!)
rEc��\sQsQsQsP!)�&BytesTest.test_custom.<locals>.NoBytesi�rr�rrr�NoBytesr�s��trrr�c�.`�\sQsQsnQsQsQsUsP!)�-BytesTest.test_custom.<locals>.IndexWithBytesi�c��Q!)rirr(s&rr��7BytesTest.test_custom.<locals>.IndexWithBytes.__bytes__�s��rc��]*!r�rr(s&rr)�7BytesTest.test_custom.<locals>.IndexWithBytes.__index__�s��rr)r.r/r0r1r�r)r2r3r4s@r�IndexWithBytesr�s����
�
�
rrric�.`�\sQsQsnQsQsQsUsP!)�+BytesTest.test_custom.<locals>.StrWithBytesi�c�@�[OUQ2oVmU!)u€)r��__new__r!��clsr!r#s&& rr�3BytesTest.test_custom.<locals>.StrWithBytes.__new__�s���{�{�3��1��"�
��rc��UO!rr r(s&rr��5BytesTest.test_custom.<locals>.StrWithBytes.__bytes__�����z�z�!rr �r.r/r0r1rr�r2r3r4s@r�StrWithBytesr������
�
"�
"rr&z
iso8859-15��c�.`�\sQsQsnQsQsQsUsP!)�-BytesTest.test_custom.<locals>.BytesWithBytesi�c�@�[OUQ2oVmU!)r()r�rr!rs&& rr�5BytesTest.test_custom.<locals>.BytesWithBytes.__new__�s���}�}�S�'�2��"�
��rc��UO!rr r(s&rr��7BytesTest.test_custom.<locals>.BytesWithBytes.__bytes__�r$rr r%r4s@r�BytesWithBytesr*�r'rr/)	r;r��
BytesSubclass�OtherBytesSubclass�	WithBytesrnr�r�r>)r#rrr&r/s&    r�test_custom�BytesTest.test_custom�s������}�V�4�5�v�>�����'9�&�'A�B�&�v�.�	0�����y��0�1�6�:�����y��'8�9�=��;P�Q������)�U�G�I�6����)�U�I�e�,<�=����)�U�I�d�O�<�	�	�
	
����~�/�0�$�7�	"�3�	"�	
����|�F�3�4�f�=�����|�F�3�\�B�G�L�����|�M�&�,A�B�C�V�L�����|�F�';�<�m�F�>S�T�����|�F�';�\�J�&�w�/�	1�����|�M�&�4I�'J�K�&�v�.�	0�����|�4F�v�4N�'O�P�&�v�.�	0�	
���e�I�m�F�.C�$D�E�}�U[�G\�]����m�I�m�F�6K�,L�M�+�F�3�	5����m�I�6H��6P�,Q�R�+�F�3�	5�	"�U�	"�	
���e�N�6�$:�;�V�D����m�N�6�,B�C�+�F�3�	5����e�N�=��3H�$I�J�+�F�3�	5����m�N�=��;P�,Q�R�+�F�3�	5����m�N�;M�f�;U�,V�W�+�F�3�	5rc�f	`�[OQ2o[OQ2o]QH
GoGo]QH
GoGoGoGoG	o	G
o
GoUOoU1Um
VLmUOUQ2Q2UOUQQ2Q2UOUQU]22Q	2UOUQU[!Q
222Q2UOUQU]�22Q2UOUQ
U]2U]2U	]22Q2UOUQ
UP2UQ>2U	Q?22Q2UOUQU]{2UQ2U	Q22Q2UOUQU]{22Q2UOUQUQ@22Q2UOUQUQ22Q2UO#U2o
[$O&Q6Xc QO)]U
*2nU1QkoLQoQoUOUQUU22Q UU2*O+Q!22UOUQ"UQ#22Q$2U	P2O,oQ%VRO.[01Q%VRO2[01Q&VrO4[01Q&VrO6[01Q'V�O8[01Q(V�O:[01Q(V�O<[01Q)U	U[01Q*UUU11	FD=vooooUOUUUU22UU2O+Q!221J?	UOUQ+Q,2Q,2UOUQ-Q.2Q/2UOUQ02Q12UOUQ22Q32UOUQ4U[!Q5222Q62UOUQ72Q82UOUQ12Q12UOUQ9U]2U]22Q:2UO?[@UQ;UP22UO?[@UQ;UQ<22UOUQ=2Q=2UOUQ8Q=2Q=2P!)A�ctypesrY)�	pythonapi�	py_object)�c_int�c_uint�c_long�c_ulong�c_size_t�	c_ssize_t�c_char_psformats
Hello %s !r.s
Hello world !sc=%csc=�@sc=@sc=�sd=%d ld=%ld zd=%zds
d=1 ld=2 zd=3sd=-1 ld=-2 zd=-3su=%u lu=%lu zu=%zu���su=123 lu=456 zu=789si=%isi=123si=-123sx=%xi�
sx=abc�ntz0x%0{}Xc�:�RU*!rr)�ptr�
ptr_formats&�r�
ptr_formatter�1BytesTest.test_from_format.<locals>.ptr_formatters���"�S�(�)rc��QU*!)z%#xr)rEs&rrGrHs���s�{�"ri�ͫsptr=%pzptr=r�ss=%sscstrss=cstrrNs%lds%lus%zds%zus%ps%5sris%.3srGrEs%%�%s[%%]s[%]s%%%cr�s%_s%%s�%ssx=%i y=%sx=2 y=%r<rsrrfr'i����)!rrZr6r7r8r9r:r;r<r=r>r?�PyBytes_FromFormat�argtypes�restyper;r��sizeofrr{�formatr(r!�INT_MINr��INT_MAX�LONG_MIN�LONG_MAX�	ULONG_MAX�PY_SSIZE_T_MINr[rnr�)r#r6rYr7r8r9r:r;r<r=r>r?rL�
sizeof_ptrrGrE�size_max�	formatstr�ctypes_typer!�py_formatterrFs&                    @r�test_from_format�BytesTest.test_from_format�s�����,�,�X�6��!�/�/��<�	�/�	�	�	�'�9�9��'/�k��#�%.�"�	
���+�I�6�"�	$����+�M�8�D�)�	+�	
���+�G�U�1�X�>� �	"����+�G�U�3�s�8�_�E��	!����+�G�U�3�Z�@�"�	$����+�,A�,1�!�H�f�Q�i�,4�Q�K�9�*�	+�	
���+�,A�,1�"�I�v�b�z�,4�R�L�:�-�	.�	
���+�,A�,2�3�K����,4�S�M�;�0�	1�	
���+�G�U�3�Z�@�!�	#����+�G�U�4�[�A�"�	$����+�G�U�5�\�B�!�	#��]�]�8�,�
�
�7�7�d�?�"�)�)�!�j�.�9�J�
*�
#������+�I�x��}�E� �=��#5�5�=�=�g�F�	H����+�G�X�g�5F�G�"�	$��B�<�%�%��
�E�,�,�c�2�
�E�,�,�c�2�
�V�/�/��5�
�V�/�/��5�
�W�1�1�3�7�
�Y� 8� 8�#�>�
�Y� 8� 8�#�>�
�X�x��-�
�H�h�
�6�
<
�7�I�{�E�<�
���/�	�;�u�;M�N�)�%�0�7�7��@�
B�
C�
<
�	
���+�F�D�9��	����+�G�Y�?��	!�	
���+�E�2��	����+�G�4��	!����+�G�U�3�s�8�_�E��	 ����+�F�3��	 �	
���+�D�1�4�8����+�K��q��5��8�L�#�	%�
	
���-�,�e�U�2�Y�	@����-�,�e�U�3�Z�	A�	
���+�C�0��	����+�E�3�7��	rc��QQ[2o,QNoUO[U2Q2UO[[UU22QQ[
2oUO[]2Q2UO[[U]22QQ[2oUO[Q2Q2UO[[UQ22Q	Q
[2o[
Q2UQ2qvUO[U2Q2UO[[U2P!)c��\sQsQsPsQsP!)�7BytesTest.test_bytes_blocking.<locals>.IterationBlockediGr�r.r/r0r1r�r2rrr�IterationBlockedr`G����Irrbsc��\sQsQsPsQsP!)�1BytesTest.test_bytes_blocking.<locals>.IntBlockediPrrarrr�
IntBlockedrePrcrrfsc��\sQsQsPsQsP!)�;BytesTest.test_bytes_blocking.<locals>.BytesSubclassBlockediYrrarrr�BytesSubclassBlockedrhYrcrrirlc��\sQsQsPsQsP!)�4BytesTest.test_bytes_blocking.<locals>.BufferBlockedi^rrarrr�
BufferBlockedrk^rcrrl)rrYrer)r�r;r�rnr�rpr�)r#rbrwrfrirl�ba�bbs&       r�test_bytes_blocking�BytesTest.test_bytes_blockingFs���	�t�	�������q��#6�7����)�U�,<�Q�,?�@�
	��	�����q��9�-����)�U�J�q�M�:�	�5�	�����u��u�-����)�U�,@��,G�H�	�I�	��5�!�=��#7�B�����r��E�*����)�U�B�/rc�r�QoQoUO[U2[U22UO[U2[U22UO[U2[UQ*22UO[U2[U]*22UO[U2[U]*22UO[U2[]U*22UO[U2[U]*22QQ[2oUQ2oUO[U2[U22UO[U2[UQ*22UO[U2[U]*22UO[U2[U]*22UO[U2[]U*22UO[U2[U]*22P!)s123abc1@s456zyx-+c��\sQsQsQsP!)�5BytesTest.test_repeat_id_preserving.<locals>.SubBytesiorr�rrr�SubBytesrsor�rrtsqwerty()r�)r;�id�assertNotEqualr�)r#rMrDrtrs&    r�test_repeat_id_preserving�#BytesTest.test_repeat_id_preservingds�����������A���1��&����B�q�E�2�a�5�)����B�q�E�2�a�"�f�:�.����B�q�E�2�a�!�e�9�-�����A���1�q�5�	�*�����A���1�q�5�	�*����B�q�E�2�a�!�e�9�-�	�u�	�
�[�!������A���1��&����B�q�E�2�a�"�f�:�.����B�q�E�2�a�!�e�9�-����B�q�E�2�a�!�e�9�-����B�q�E�2�a�!�e�9�-����B�q�E�2�a�!�e�9�-rr)r.r/r0r1r�rAr�rrr3r\rorwr2r3r4s@rr�r�~s6�����I�
@��:�
95�xp�d0�<.�.rr�c��`�\sQsQsn\s\OQ2sQs	Qs
QsQsQs
QsQ	sQ
sQsQsQ
s\O*Q2sQsQsQsQsQsQsQsQsQsQs Qs!Qs"Qs#Qs$Qs%Qs&Qs'Q s(Q!s)Q"s*Q#s+Q$s,Q%s-\.O(O*Q&2s/Q's0\.ObOdOfs3Q(s4Q)s5Q*s6Q+s7Q,s8Q-s9Q.s:Q/s;Q0s<Q1s=Q2s>Us?P!)3�
ByteArrayTesti{r�c��[Q2oQoUO[U29^tt^2UQ*PPP2P!)%fhP!9h)r�,bytearray indices must be integers or slicesrM�r�r�r�rs&  rr� ByteArrayTest.test_getitem_error�s:���i� ��<��
�
#�
#�I�s�
3�
3�
�c�F�4�
3�
3�
3�s�
A�A	�
A	c��[Q2oQoUO[U29^tt^2QUQ$PPP2P!)%fhP!9h)rr|�pythonrMr}rs&  r�test_setitem_error� ByteArrayTest.test_setitem_error�s<���i� ��<��
�
#�
#�I�s�
3�
3��A�c�F�4�
3�
3�
3�s�=�A	�A	c�N�UO[[[22P!r)rnr��hashr�r(s&r�test_nohash�ByteArrayTest.test_nohash�s�����)�T�9�;�7rc���QoUQ][U2*
**o[O2o[UQ29^tt^2oUO	U2PPP2[UQ29^tt^2o[]2oUO
U2oPPP2UOW[U22UO[W2[U22[UQ29^tt^2oUO	U2PPP2[UQ29^tt^2oUOUO2U2PPP2[OU2P!)%fhCK
9h)%fhK�9h)%fhK�9h)%fhKc9h[cP!h9h[OS2h[chh9h9h)sHello world
r��wbr)
rm�tempfile�mktempr	�writer�rr;r��readr�remove�OSError)r#�short_sampler+�tfnrrrD�ns&      r�test_bytearray_api� ByteArrayTest.test_bytearray_api�sR��'����r�C��,=�'=� >�>���o�o���	��c�4���A�����%�!��c�4���A��b�M���J�J�q�M��!�
���Q��L� 1�2����T�!�W�d�6�l�3��c�4���A�����
�!��c�4���A�� � �����6�2�!�
��	�	�#��!!����!���!��� ����
��
��
��	�	�#����
��
�s��G�E$� G�<E8�AG�4F�G�"!F�G�F1�$E5	�-E5	�/	G�8F	�F	�G�F	�F	�G�F.	�'F.	�)G�1	G�;G�?G�G-�G�G-�	G*�&G*�'G-�)G*�*G-c�`�[Q2nU1QkQ2oUO[ROU22P!)s%a endc�0:`�\sQsQsnU1QksQsUsP!)�5ByteArrayTest.test_mod_concurrent_mutation.<locals>.Si�c�*:�RO2Q!)�Er�)r#r5s&�r�__repr__�>ByteArrayTest.test_mod_concurrent_mutation.<locals>.S.__repr__�s����	�	��rr)r.r/r0r1r�r2r3)r5r5s@�rr�r��s����
�
rr�)r�rn�BufferError�__mod__)r#r�r5s& @r�test_mod_concurrent_mutation�*ByteArrayTest.test_mod_concurrent_mutation�s3����	�"��	�	�
	
���+�s�{�{�A�C�8rc�2�[Q2oUOUO2P2UOUQ2[Q2oUO2UOUQ2[2oUO2UOU2P!)rsollehshello1s1olleh)r�r;rr�rCs& r�test_reverse�ByteArrayTest.test_reverse�ss���h����������d�+�����H�%��i� ��	�	�	������I�&��K��	�	�	������rc�(�[Q2oUO2UOUQ2[Q2oUO2UOUQ2[Q2oUO[	Q22UO2UO[	Q22UOUQ2[Q2oUO2UOUO2]2[O[22oUO[OU2U2UO2oUOUO2]2UO[OU2U2P!)rr�rrrrE)	r�r�r;r�r��	__alloc__r\�	getsizeofrJ)r#rD�	base_sizerVs&   r�
test_clear�ByteArrayTest.test_clear�s���i� ��	���	�����C� ��c�N��	���	�����C� ��c�N��	����S���	���	�	����S�������D�!�
�f���	���	���������*��M�M�)�+�.�	�������q�)�9�5�
�F�F�H����������*�������q�)�9�5rc��[Q2oUO2oUOUQ2[Q2oUO2oUOUQ2[Q2oUO2oUOV2UOV2UO	[Q22UOUQ2UOUQ2P!)rErr�rI)r�rJr;�assertIsNotr�r�)r#rDrns&  rrO�ByteArrayTest.test_copy�s����f���
�V�V�X������V�$��c�N��
�V�V�X������S�!�
�f���
�V�V�X������������
�	�	�#�c�(������W�%�����F�#rc��QoUQ2oUO[OQU2UQ2UQ2,2P!)c�6�[[[U22!r)r�r�r�)rs&rr	�&ByteArrayTest.test_regexps.<locals>.by�s���S��a�[�)�)rrs\w+r�r)r;�re�findallrs&  r�test_regexps�ByteArrayTest.test_regexps�s9��	*��~���������G�Q�/�"�W�+�r�'�{�1K�Lrc���[Q2oUOUO]22UOU[Q22UOUO]
22UO[	U2]
2UOU[Q22QUQ$UOU[Q22UOUOQ22UO[	U2Q2UOU[QQQ	**22UOUO]22UOU[22UOUO]
22UOU[Q
22[Q2oUOUO]22UOU[Q22UO
[[2O2UO
[[2OQ2UO
[[2OP2UO
[[2OQ2UO
[[2O[O2UO
[[Q2O[O2P!)
rGrEs
abcsdefghij:rraNs
abcdefghijr�r�ii��s
)rarai8���)r��assertIsNone�resizer;rm�ByteArraySubclassrnr�r�r�r\r]�r#rms& r�test_resize�ByteArrayTest.test_resize�s��
�y�
!�����"�)�)�A�,�'�����Y�v�.�/����"�)�)�B�-�(�����R��"�%�����Y�';�<�=���4������Y�}�5�6����"�)�)�G�,�-�����R��%�(�����Y�}�u��7M�'M�N�O����"�)�)�A�,�'�����Y�[�)����"�)�)�B�-�(�����Y�z�2�3��y�
)�����"�)�)�A�,�'�����Y�v�.�/�	
���)�Y�[�%7�%7�8����)�Y�[�%7�%7��B����*�i�k�&8�&8�"�=����*�i�k�&8�&8�$�?����+�y�{�'9�'9�3�;�;�G����+�y���'=�'=�s�{�{�Krc��[Q2oUOUO2Q2UO[U2]2UOU[Q22UOUO	2]2[
O[22oUO[
OU2U2[Q2oUOUO]2Q2UOU[Q22UO[U2]2UOUOQ
2Q2UOU[Q22UO[U2]2UOUOQ2Q2UOU[Q22UO[U2]2UOUO]2Q2UOU[Q22UO[U2]2UOUO]2Q2UOUO2Q2UOUOP2Q2UO[UOP2UO[UOQ2[Q2oUO[UO]2[Q2oUQ	UOU[Q
22UOUO2Q
2[Q2oUQP/UOU[Q22UOUO2Q2[Q2oUO]2UOUO2Q2[Q2o[U29^tt^2oUO[UO2PPP2UOUO2Q2P!)%fhK29h)rlrrGrisbcdefrmrFrRsabcde�NreN�cderErIrr'rf)
r�r;�
take_bytesrmr�r\r�rnror�r�rwr�)r#rmr��mvs&   r�test_take_bytes�ByteArrayTest.test_take_bytess+��
�u�
���������%�0�����R��!�$�����Y�s�^�,���������+��M�M�)�+�.�	�������r�*�I�6��y�
!��������q�)�4�0�����Y�x�0�1�����R��!�$�������r�*�C�0�����Y�x�0�1�����R��!�$�������r�*�E�2�����Y�v�.�/�����R��!�$�������q�)�6�2�����Y�s�^�,�����R��!�$�	
������q�)�3�/��������#�.�������t�,�c�2�	
���*�b�m�m�R�8����)�R�]�]�D�9�
�y�
!�����*�b�m�m�Q�7��x�
 ���r�F�����Y�v�.�/��������&�1��x�
 ���r�s�G�����Y�v�.�/��������&�1�
�x�
 ��
�	�	�!���������'�2��v�
��
��^�^�r����k�2�=�=�9���������&�1��^�s�,!P7�7Q	�Q	c��[Q2oUO2oUOUO]2Q2UOUO2U2UO[	U2Q	2UOUO]2Q2UOUO2U2UO[	U2Q
2UOUO]2Q2UOUO2U2UO[	U2Q2UOUO2U2UOUOQ2Q2UO[	U2Q2[
OQ2oUOUO2QU*2P!)rGr�rlr�r����rs�abcdef0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000����s�000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)r�r�r;r�rmr\r�)r#rm�start_alloc�bytes_header_sizes&   r�test_take_bytes_optimization�*ByteArrayTest.test_take_bytes_optimizationNsU��
�.�
/���l�l�n��	
������q�)�5�1���������5�����R��(�+�������q�)�5�1���������5�����R��(�+�������q�)�5�1���������5�����R��(�+���������5�	
������s�+�Z�8�����R��#�&��M�M�#�.����������/@�)@�Arc��Qo[Q2oUO[29^tt^2UUQ]2PPP2UOUQ2[Q2oUO[29^tt^2UUQ]2PPP2UOUQ2[Q2oUOUUQ]2Q2UOUQ2P!)%fhK�9h)%fhKo9h)c�T```�UUU1QkQ2oROU22!)c�4:`�\sQsQsnUUU1QksQsUsP!)�JByteArrayTest.test_take_bytes_reentrant_resize.<locals>.take.<locals>.Evilinc�:�RR2R!rr)r#r�r��targets&���rr)�TByteArrayTest.test_take_bytes_reentrant_resize.<locals>.take.<locals>.Evil.__index__os����6�N��Hrrr�)r5r�r�r�s@���r�Evilr�ns�����rr�)r�)r�r�r�r�sfff r�take�<ByteArrayTest.test_take_bytes_reentrant_resize.<locals>.takems"���
�
��$�$�T�V�,�,rsabcdefghc�$�UO2!rr�rSs&rrT�@ByteArrayTest.test_take_bytes_reentrant_resize.<locals>.<lambda>ws
��q�w�w�yrrc�:�UO[]P22!r�)�__delitem__�slicerSs&rrTr�}s��q�}�}�U�1�d�^�<rrIc�&�UOQ2!)�efgh)�extendrSs&rrTr��s
��A�H�H�W�,=r)r�rnror;)r#r�rms&  r� test_take_bytes_reentrant_resize�.ByteArrayTest.test_take_bytes_reentrant_resizehs���
	-��{�
#��
�
�
�z�
*�
*���(�!�,�+�����S�!��{�
#��
�
�
�z�
*�
*���<�a�@�+�����W�%��w�
������b�"=�q�A�;�O�����S�!�+�
*��+�
*�s#�C�;C.�C+	�$C+	�.C>	�7C>	c�`�QoU1QkoU1QkoROQ29^tt^2UU2PPP2ROQ29^tt^2UU2PPP2P!)%fhK<9h)%fhP!9h)c��V U$P!rr)rDrw�vals&&&r�setitem_as_mapping�6ByteArrayTest.test_setitem.<locals>.setitem_as_mapping�s	���a�Drc�B:�ROOVU2P!r)r��sequence_setitem)rDrwr�r#s&&&�r�setitem_as_sequence�7ByteArrayTest.test_setitem.<locals>.setitem_as_sequence�s����!�!�2�2�1��=rc�:�[,QN2oUU]]d2ROU[,QN22UUP]�2ROU[,QN22UU][]
22ROU[,QN22UU]]2ROQ2UUQ	]2ROQ2UU]Q2ROQ2UU][P22ROQ2UU][
22ROQ2P![cK�h9h[cK�h9h[
cKzh9h[
cKfh9h[cP!h9h)
rYzDidn't raise IndexErrorrszDidn't raise ValueErrorzDidn't raise TypeErrorr~)rYrr)rYr��)rarr�i����)r�r;r�failror�rbr�)�setitemrDr#s& �r�do_tests�,ByteArrayTest.test_setitem.<locals>.do_tests�sp����)�$�A��A�q�#�����Q�	�+� 6�7��A�r�3�����Q�	�-� 8�9��A�q�)�B�-�(����Q�	�.� 9�:�
���1�a� ��	�	�3�4�
���3��"��	�	�3�4�
���1�c�"��	�	�3�4�
���1�i��m�,��	�	�3�4�
���1�f�h�'��	�	�2�3��'�
��
��
�
��
��
�
��
��
�
��
��
�
��
�sx�D-�+D>�E�#$E �#E1�-	D;�7D;�:D;�>	E�E�E�	E�E�E� 	E.�*E.�-E.�1	F�;F�?F�
tp_as_mapping�tp_as_sequence�r�)r#r�r�r�sf   r�test_setitem�ByteArrayTest.test_setitem�sj���	�	>� 	�D�\�\�/�
*�
*��'�(�+��\�\�*�
+�
+��(�)�,�
+�+�
*��,�
+�
+��#�	A(�	A;�(A8	�1A8	�;B	�B	c�`�QoU1QkoU1QkoROQ29^tt^2UU2PPP2ROQ29^tt^2UU2PPP2P!)%fhK<9h)%fhP!9h)c��VP!rr)rDrws&&r�del_as_mapping�2ByteArrayTest.test_delitem.<locals>.del_as_mapping�s���rc�@:�ROOV2P!r)r��sequence_delitem)rDrwr#s&&�r�del_as_sequence�3ByteArrayTest.test_delitem.<locals>.del_as_sequence�s����!�!�2�2�1�8rc	�6:�[[]
22oUU]2ROU[[]]
222UUP2ROU[[]]	222UU]2ROU[,QN22P!)ra)rYrerr��r�)r�r�r;)r�rDr#s& �rr��,ByteArrayTest.test_delitem.<locals>.do_tests�sx����%��)�$�A��1�a�L����Q�	�%��2�,� 7�8��1�b�M����Q�	�%��1�+� 6�7��1�a�L����Q�	�*?� @�Arr�r�r�)r#r�r�r�sf   r�test_delitem�ByteArrayTest.test_delitem�sh���	�	9�	B��\�\�/�
*�
*��^�$�+��\�\�*�
+�
+��_�%�,�
+�+�
*��,�
+�
+�r�c	��[[]
22oUO[U2[[]
222[,QN2UQ$UOU[,QN22U]Q/UOU[,QN22[,QN2UQ$UOU[[]
222[]d]e,2UQQ#UOU[,QN22,QNUQ$UOU[[]
222,QNUQ$UOU[,QN22QUQ$UOU[,QN22[	Q2UQ$UOU[,QN22,UQ$UOU[,QN22]Q][Q	2Q
QQQ
,QQ,,,1	FD-oUO
[29^tt^2V!Q$PPP2J/	,QNQ Q,1FD-oUO
[29^tt^2V!Q$PPP2J/	P!)%fhJ~9h)%fhJX9h)!ra:rrN:rrN:rrN:rrNr::rNN:NrN:rr�NgP����KDr�gffffff@rMrDrirji(#)rYrYrYrYrY)
rYrYrYrYrYrr�rr�r�r)rr�rr�r�)rrYrerr�rr')rrYrer�err�r�)rr�rr�)r�r�r�)
rrYrer�r�r�rr�rr�rr�r�)rrYre�f�or)rrrrrr)rrrrr)r�r�rsi���)	r�r�r;r�rwrprnr�r�)r#rD�elems&  r�
test_setslice�ByteArrayTest.test_setslice�s����e�B�i� ������a��$�u�R�y�/�2��?�+��#������I�&D�E�F�
�a��d�G�����I�o�6�7��?�+��#������I�e�B�i�0�1��c�3�Z�(��"�R������I�&B�C�D���#������I�e�B�i�0�1���#������I�&P�Q�R���"������I�&>�?�@��6�"��"������I�&D�E�F���#������I�&?�@�A���A�s�5�z�5�#��3�Z�$����t�5�D��"�"�9�-�-��#��.�-�5�
%�t�T�l�3�D��"�"�:�.�.��#��/�.�4�.�-�-��/�.�.�s$�+H8	�%I	�8I	
�I	
�I
�I
c	�~�[[]d22oUO[U2[[]d222UQUO[U2[[]
]d222UO	[]d]n22UO[U2[[]
]n222P!)r:NraN)r�r�r;r�r�rCs& r�test_setslice_extend�"ByteArrayTest.test_setslice_extend�s����e�C�j�!������a��$�u�S�z�"2�3�
�c�F�����a��$�u�R��~�"6�7�	����s�C��!�����a��$�u�R��~�"6�7rc�j�[]
2oUO2UQU[]2*
o=P!�ra:NrYN)r��popr�rCs& r�test_fifo_overrun�ByteArrayTest.test_fifo_overrun�s-��
�b�M��	����
�b�E�	�U�1�X�
��
rc��[]
2o[OU2oUQUO[OU2U2P!r)r�r\r��assertLessEqual)r#rDr�s&  r�test_del_expand�ByteArrayTest.test_del_expands9���b�M���}�}�Q���
�b�E����S�]�]�1�-�t�4rc��]P]]]Q]Q*[OPQQQ1oSFD�oSFD�oUQ*FD�o[[]�22o[	U2oVRV4/*oUO2VuV#U/$VvV#U/$UO
U[	U22VRV4/VbV4/UO
U[	U22J�	J�	J�	P!)rr`�Mrrfri���)r\r]r�r�r�rr;)r#rrrrrrDr�s&       r�test_extended_set_del_slice�)ByteArrayTest.test_extended_set_del_slices����d�A�q�"�c�1�c�6�3�;�;���C�����E���#�B�K�K�D��U�3�Z�(�A�!�!��A��4�_�-�D��L�L�N�)-�e��o�&�)-�e��o�&��$�$�Q�	�!��5���/�*���/�*��$�$�Q�	�!��5�(� �rc���[[Q22oVQ$UOU[[[]22[[Q22*22P!)rs:r�NN)r�r�r;r�rCs& r�test_setslice_trap� ByteArrayTest.test_setslice_trap sD��
�e�C�j�!���"������I�d�5��8�n�t�E�#�J�7G�&G�H�Irc�,�[Q2oSoUQ*
oUOUQ2UOV2UOV2UQ*
oUOUQ2UP*
oUOQ2P![cP!h9h)rErFrGr�s	abcdefxyzz'bytes += unicode didn't raise TypeError)r�r;r9r�r��r#rDr�s&  r�test_iconcat�ByteArrayTest.test_iconcat's����f���
��	�V�������I�&�������
�
�a��	�V�������L�)�	A�
��G�A�
�I�I�?�@���	��	�s�(	B�	B�B�Bc��[Q2oSoU]*oUOUQ2UOV2UOV2P!)rErO�r�r;r9rs&  r�test_irepeat�ByteArrayTest.test_irepeat7sD���f���
��	�Q�������L�)�������
�
�a�rc��[Q2oSoU]d*oUOUQ2UOV2UOV2P!)rZsdxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxr rs&  r�test_irepeat_1char� ByteArrayTest.test_irepeat_1char?sC���d�O��
��	�S�������H�%�������
�
�a�rc�&�[2oUO2oUOU]2U,o[]d2FDPoUQ*
oUO2oUO	U[U22V#7fJ?UO
U2JR	P!)rrZ)r�r��assertGreaterEqualr��
assertGreaterrmr�)r#rD�allocr�rws&    r�
test_alloc�ByteArrayTest.test_allocGss���K�����
������q�)��g���s��A�
��I�A��K�K�M�E����u�c�!�f�-����
�
�5�!�rc	�B``�[2nUU1QkoROU22RO[R2[[	]]d222RO[R2]c2RO
2oROU[R22P!)c
3�: �[]]d2FD�oUw�	[R2oROU[[][U2]*222RO[R2[U22RO	[R2U2RO2oRO
U[R22J�	P!3hrX)r�r�r;rmrr�r()rwrMr)rDr#s   ��r�g�(ByteArrayTest.test_init_alloc.<locals>.gUs������1�c�]������G��� � ��D��q�#�a�&��(�);�$<�=�� � ��Q���Q��0��$�$�S��V�Q�/����
���"�"�5�#�a�&�1�#�s�CC
)r�r$r;r�r�rmr�r()r#r.r)rDsf  @r�test_init_alloc�ByteArrayTest.test_init_allocSsp����K��	2�	
�
�
�1�3������a��$�u�Q��}�"5�6�����Q���$����
�����5�#�a�&�)rc	�2�Qo[U2oUOU2UOV!U*2UOUQ*U2[Q2oUO[[U]*22UOQU]*22UOV!]2*2UOUQPU2[Q2oUO[[[U]2*222UOV!]2*2UOUQPU2[Q2oUO[
[[U]2*222UOV!]2*2UOUQPU2[Q2oUO[UO,QN2UO[UO,Q
N2UO[U2]2[Q2oUO[[Q22,2UOUQ2[Q2oUO[QUOQ2UO[Q	UOQ
2P!)r:rNNrc3�D�SF �Do[U2w�	J	P!3hr)rpr�s& rrx�,ByteArrayTest.test_extend.<locals>.<genexpr>ms������A��Q����s� rMrirEz)expected iterable of integers; got: 'str'rIz!can't extend bytearray with floatg�?r)rrYrers)rrYre���)r�r�r;r�rpr�r�rnr�rmrr�r�r�)r#rQrMs&  r�test_extend�ByteArrayTest.test_extendds������d�O��	���������4�K�(�����2���%��c�N��	����S�$��)�$�%�	���+����+�+�����2�I�&�����2�3���&��c�N��	����c�#�t�b�y�)�*�+�����2�I�&�����2�3���&��c�N��	����c�#�t�b�y�)�*�+�����2�I�&�����2�3���&��c�N�����*�a�h�h��?����*�a�h�h�
�>�����Q���#��c�N��	���)�C��H�%�&�'�����D�!��f������y�J� �x�x��	0�	
���y�B� �x�x��	.rc�h`�[Q2nRO[Q22UORQ2RO[Q22UORQ2UO	[
U1Qk2UO	[
U1Qk2UO	[U1Qk2RO[Q22RO[Q22UORQ	2UO	[U1Q
k2RO[[Q222UORQ2[,Q
N2oUO]2UOU[,QN22UO]�2UOU[]~]�,22P!)rr�shelosheoc�::�RO[Q22!)r�)r�r�rSs�rrT�+ByteArrayTest.test_remove.<locals>.<lambda>�s���a�h�h�s�3�x�.@rc�(:�ROQ2!)��r�rSs�rrTr:�s
���a�h�h�s�mrc�(:�ROQ2!)r�r=rSs�rrTr:�s
���Q�X�X�c�]rr�r�r�c�(:�ROQ2!)r�r=rSs�rrTr:��
���Q�X�X�d�^rr�r)�~r�r��)rAr�rB)	r�r�r�r;rnr�r�rr�rUs& @r�test_remove�ByteArrayTest.test_remove�s7����h���	����S�������G�$�	����S�������F�#����*�&@�A����*�&;�<����)�%:�;�	����S���	����S�������D�!����)�%;�<�	����3�s�8�$�%�����C� �
�*�+��	����
�����E�/�2�3�	����
�����E�3��*�-�.rc��`�[Q2nUORO2[Q22UORO]2[Q22UOROQ2[Q22UO	[
U1Qk2UO	[
Q2UO[Q2O2]�2P!)r.r�rr�c�(:�RO]
2!r`)r
rSs�rrT�(ByteArrayTest.test_pop.<locals>.<lambda>�s
���a�e�e�B�irc�4�[2O2!r)r�r
rrrrTrG�s
��i�k�o�o�.?rr�rf)r�r;r
r�rnrorCs&@r�test_pop�ByteArrayTest.test_pop�s�����h����������#�c�(�+�������q��3�s�8�,�������r��C��H�-����*�&7�8����*�&?�@�����7�+�/�/�1�4�8rc�6�UO[Q2P!)c�4�[2O2!r)r��sortrrrrT�+ByteArrayTest.test_nosort.<locals>.<lambda>�s��)�+�2B�2B�2Dr)rn�AttributeErrorr(s&r�test_nosort�ByteArrayTest.test_nosort�s�����.�*D�Erc��`�[Q2nRO[Q22UORQ2UORO]d2P2[2nRO[Q22UO[	R2]2UO[U1Qk2[2nRO[[Q222UORQ2P!)shellr�r�Ac�(:�ROQ2!)r)r�rSs�rrT�+ByteArrayTest.test_append.<locals>.<lambda>�r@r�A)r�r�r�r;rmrnr�rrCs&@r�test_append�ByteArrayTest.test_append�s�����g���	����S�������H�%�������#���-��K��	����S�������Q���#����)�%;�<��K��	����3�s�8�$�%�����D�!rc��`�[Q2nRO][Q22RO][Q22ROQ[Q22ROQ[Q22UORQ2UO	[
U1Qk2[2nRO][
[Q222UORQ2P!)smsssspprwr�rc�*:�RO]Q2!)r�1)�insertrSs�rrT�+ByteArrayTest.test_insert.<locals>.<lambda>�s���Q�X�X�a��->rrSrVrf)r�r\r�r;rnr�rrCs&@r�test_insert�ByteArrayTest.test_insert�s�����j�!��	����C��H��	����C��H��	����S��X��	����s�3�x� �����N�+����)�%>�?��K��	����I�c�#�h�'�(�����D�!rc�
�[Q2oUOVOQQ]22[[Q2Tt,tFDp"MJ	to2o[Q2oUOVDO	U22P!ttoh)rEr�rsr)r�r�r�r�r�)r#rDrw�tr[s&    r�test_copied�ByteArrayTest.test_copied�sj��
�f�������I�I�f�f�a�8�9��%��*�-�*�Q�q�*�-�.���c�N������K�K��N�+��.s�Bc��[Q2OQ2vqoUOUQ2UOUQ2UOV#2UQ*
oUOUQ2[Q2OQ2vqoUOUQ2UOUQ2[Q2O	Q2vq#oUOUQ2UOUQ2UOV#2UQ*
oUOUQ2[Q2O	Q2vq2oUOUQ2UOUQ2P!)rZ�yr�!)r�r�r;r�r�)r#rMrDrVs&   r�0test_partition_bytearray_doesnt_share_nullstring�>ByteArrayTest.test_partition_bytearray_doesnt_share_nullstring�s0���D�/�+�+�D�1���a�����C� �����C� ������	�T�	������C� ��D�/�+�+�D�1���a�����C� �����C� ��D�/�,�,�T�2���a�����C� �����C� ������	�T�	������C� ��D�/�,�,�T�2���a�����C� �����C� rc�h`�[]
2n[R2oU1QkoRO]
2RQ*oUO[RO]2UO[U]2UORU2UO[RO]	2UORU2UO[RO]2UORU2UO[RO]2UORU2UO[ROR]*2UORU2U1QkoUO[U2UORU2U1QkoUO[U2UORU2P!)rac�R:�[U]*]U*]*
2R]P#P!rX)r�)r�rDs&�r�
manual_resize�:ByteArrayTest.test_resize_forbidden.<locals>.manual_resize�s!����A��E�1�Q�3��7�+�A�a��Gr�NNNc�:�R]P!rXrrSs�r�delitem�4ByteArrayTest.test_resize_forbidden.<locals>.delitem�s
����!�rc�:�QR]P]/$P!�rrrSs�r�delslice�5ByteArrayTest.test_resize_forbidden.<locals>.delslices����A�a��1�f�Ir)r�rwr�rnr�r;r
r�)r#�vrkrQrorsrDs&     @r�test_resize_forbidden�#ByteArrayTest.test_resize_forbidden�sN���

�b�M���q�M��	,�	�������t�����+�q�x�x��4����+�}�b�9�����D�!����+�q�x�x��3�����D�!����+�q�x�x��3�����D�!����+�q�u�u�a�0�����D�!����+�q�x�x��1��6�����D�!�	����+�w�/�����D�!�	����+�x�0�����D�!rc��[OQ2oUO[UO[22P!)rY)rrZrnr��getbuffer_with_null_viewr�)r#rYs& r�test_obsolete_write_lock�&ByteArrayTest.test_obsolete_write_locks,��!�/�/��<�	����+�y�'I�'I�9�;�Wrc	��[Q2o[Q2o[[O]*2FCDo[U2o[OVA1U2o[OU2vqgV'Q$UO[U2[U22UO[U2U2[U2[OVA1U2o[OU2vqgV'Q$UO[U2[U22UO[U2UQ*2[][U22FDo[U2J	[OVA1U2o[OU2vqgV'Q$UO[U2[U22UO[U2U[U2P2UO[[U2[OVA1U2o[OU2vqgV'Q$UO[U2,2CJ	P!)rEsqwertyrmr)r�r�r�r�r�r�r�r�r;r:r�rmrn�
StopIteration)	r#rQr�r��itorigr�r�rDrws	&        r�test_iterator_pickling2�%ByteArrayTest.test_iterator_pickling2
s����� ���I����6�2�2�Q�6�7�7�E��$�Z�F����f�^�U�3�A��L�L��O�E�B��a�D����T�"�X�t�F�|�4����T�"�X�t�,�
��L����f�^�U�3�A��L�L��O�E�B��a�D����T�"�X�t�F�|�4����T�"�X�t�B�x�0��1�c�$�i�(���V��)����f�^�U�3�A��L�L��O�E�B��a�D����T�"�X�t�F�|�4����T�"�X�t�C��I�J�'7�8�
���m�T�6�:����f�^�U�3�A��L�L��O�E�B��a�D����T�"�X�r�*�?8rc��[Q2o[U2o[U2UO2UO	[U2,2P!)rl)r�r�r�r�r;r�)r#rmr�s&  r�test_iterator_length_hint�'ByteArrayTest.test_iterator_length_hint0s9��
�u�
��
�"�X���R��
���
�����b��2�&rc��[Q2oQUQ$U]*oU]*oUOUQ2UOV!2UOUQ2P!)rErZr�sxcsxcxcxc�r�r;)r#rDr�r�s&   r�test_repeat_after_setslice�(ByteArrayTest.test_repeat_after_setslice9sU���f�����"��
��U��
��U������U�#����������Y�'rc
�b`�U1QkQ2oUOQ29^tt^2[Q2nUO[29^tt^2U2R]$PPP2PPP2UOQ29^tt^2[Q2nUO[29^tt^2UOOR]U22PPP2PPP2P!)%fhK�9h)%fhK�9h)%fhK@9h)%fhP!9h)c�0:`�\sQsQsnU1QksQsUsP!)�/ByteArrayTest.test_mutating_index.<locals>.BoomiHc�*:�RO2]!r,r�rCs&�rr)�9ByteArrayTest.test_mutating_index.<locals>.Boom.__index__Is������	�rrr�)r5rDs@�r�Boomr�H�����
�
rr�r�sNow you see me...r�)r�r�rnror�r�)r#r�rDs& @r�test_mutating_index�!ByteArrayTest.test_mutating_indexCs����
	�	�
�\�\�/�
*�
*��.�/�A��"�"�:�.�.��v��!��/�+�
�\�\�*�
+�
+��.�/�A��"�"�:�.�.��%�%�6�6�q�!�T�V�D�/�,�
+�/�.��+�
*��/�.��,�
+�
+�s_�)C7�C$	�C7�)D�/#D
	�D�$C4
�-C4
�/C7�7D	�D	�
D
�D
�D�D.	�&D.	c	�l�QQ2oUOQ29^tt^2U2o[Q2UOU$UOUO]*[Q2Q2UOUO[Q2Q2PPP2UOQ29^tt^2U2o[Q2UOU$UOOUOU[Q22UOUO]*[Q2Q2UOUO[Q2Q2PPP2UOQ29^tt^2U2o[Q2,UOU]#UOUO]*[Q2Q2UOUO[Q2Q2PPP2P!)%fhCKl9h)%fhK�9h)%fhP!9h)	c�.`�\sQsQsnQsQsQsUsP!)�BByteArrayTest.test_mutating_index_inbounds.<locals>.MutatesOnIndexi[c�(�[Q2UmP!��)r�rmr(s&rr$�KByteArrayTest.test_mutating_index_inbounds.<locals>.MutatesOnIndex.__init__\s��#�E�*��rc��UOO2[Q2UmUOO	],Q*2]!r�)rmr�r��new_bar�r(s&rr)�LByteArrayTest.test_mutating_index_inbounds.<locals>.MutatesOnIndex.__index___s4�����
�
��'��.���������s�U�{�+�r)rmr�r-r4s@r�MutatesOnIndexr�[s����
+�
�
rr��skip_bounds_safety�?zAssigned bytearray not alteredr�zWrong object altered�skip_bounds_safety_capi�skip_bounds_safety_slice)r�r�rmr;r�r�r�r�)r#r��instances&  r�test_mutating_index_inbounds�*ByteArrayTest.test_mutating_index_inboundsWs���	�	��\�\�.�
/�
/�%�'�H�$'��H�H�K�K��!����X�[�[��^�S��X�7W�X����X�_�_�i��.>�@V�W�	0��\�\�3�
4�
4�%�'�H�$'��H�H�K�K��!��!�!�2�2�8�;�;��#�c�(�S����X�[�[��^�S��X�7W�X����X�_�_�i��.>�@V�W�5��\�\�4�
5�
5�%�'�H�'*�3�x�j�H�K�K���#����X�[�[��^�S��X�7W�X����X�_�_�i��.>�@V�W�	6�
5�0�
/�
/��5�
4��6�
5�
5�s8�A3G;�9B#H�=A4H"�;H	�H	�H	�H	�"H3	�+H3	c�`�QQ2nU1QkoQFDeoU2vq4UOU29^tt^2UO[29^tt^2[V22U2PPP2PPP2Jg	U2vq4UO[29^tt^2VC7PPP2UO[29^tt^2UO	U2PPP2UO[29^tt^2UOU2PPP2P!)%fhK�9h)%fhCJ19h)%fhK�9h)%fhK�9h)%fhP!9h)c�F`�\sQsQsnQsQsU1QkQksQsQsUs	P!)�MByteArrayTest.test_search_methods_reentrancy_raises_buffererror.<locals>.Evilizc��VmP!r�rmr�s&&rr$�VByteArrayTest.test_search_methods_reentrancy_raises_buffererror.<locals>.Evil.__init__{s���rc�b�UOO2[UO2!r)rmr�rw)r#r�s&&rr��XByteArrayTest.test_search_methods_reentrancy_raises_buffererror.<locals>.Evil.__buffer__}s�����
�
��!�$�'�'�*�*rc�&:�U]6�cPgQRZQP-!)re�view�returnr�)rPr5s"�r�__annotate__�mByteArrayTest.test_search_methods_reentrancy_raises_buffererror.<locals>.Evil.__release_buffer__.__annotate__�s���
�
�z�
�d�
rc�(�UO2P!r)�release)r#r�s&&r�__release_buffer__�`ByteArrayTest.test_search_methods_reentrancy_raises_buffererror.<locals>.Evil.__release_buffer__�s�����rc�N�UOO2[Q2!)rS)rmr�r�r(s&rr)�WByteArrayTest.test_search_methods_reentrancy_raises_buffererror.<locals>.Evil.__index__�s�����
�
���3�x�rr�)
r.r/r0r1r$r�r�r)r2r3r4s@rr�r�zs#����
�
+�
�
�
 �
 rr�c�0:�[Q2oURU21!)rV�r�)rmr�s �r�	make_case�RByteArrayTest.test_search_methods_reentrancy_raises_buffererror.<locals>.make_case�s����4��B��t�B�x�<�r)rrrr)r!)r�rnr��getattrrurv)r#r�r{rm�evilr�s&    @r�1test_search_methods_reentrancy_raises_buffererror�?ByteArrayTest.test_search_methods_reentrancy_raises_buffererrorxs����
	 �
	 �	 �B�D� �{�H�B����d�#�#��&�&�{�3�3��B�%�d�+�4�$�#�B��;���
�
�
�{�
+�
+��J�,�
�
�
�{�
+�
+��H�H�T�N�,�
�
�
�{�
+�
+��I�I�d�O�,�
+�4�3��$�#�#��
,�
+��
+�
+��
+�
+�
+�se�D5	�D"
�+D5	�%E
�E�E0�"D2�+D2�-D5	�5E
�>E
�
E	�E	�E-	�&E-	�0F	�9F	c�`�U1QkQ2o[Q2n[2oUOU22UO[[
[22P!)c�<:`�\sQsQsnQsU1QksQsQsUsP!)�AByteArrayTest.test_extend_empty_buffer_overflow.<locals>.EvilIteri�c��U!rrr(s&rr��JByteArrayTest.test_extend_empty_buffer_overflow.<locals>.EvilIter.__iter__�s���rc�:�[R2!r)r�)r#�sources&�r�__next__�JByteArrayTest.test_extend_empty_buffer_overflow.<locals>.EvilIter.__next__�s
����F�|�#rc��]!r,rr(s&r�__length_hint__�QByteArrayTest.test_extend_empty_buffer_overflow.<locals>.EvilIter.__length_hint__�s��rr)	r.r/r0r1r�r�r�r2r3)r5r�s@�r�EvilIterr��s����
�
$�
�
rr�s42)r�r�r�rnr�rg)r#r�rmr�s&  @r�!test_extend_empty_buffer_overflow�/ByteArrayTest.test_extend_empty_buffer_overflow�sA���	�	��e���
�[��
�	�	�(�*�����*�e�Y�[�9rc�`�[Q2nU1QkQ[2oUO[ROUQ22P!)��c�0:`�\sQsQsnU1QksQsUsP!)�0ByteArrayTest.test_hex_use_after_free.<locals>.Si�c�*:�RO2]!rXr�r�s&�r�__len__�8ByteArrayTest.test_hex_use_after_free.<locals>.S.__len__�s������
�rr)r.r/r0r1r�r2r3)r5rms@�rr�r��r�rr��:)r�r�rnr�r�)r#r�rms& @r�test_hex_use_after_free�%ByteArrayTest.test_hex_use_after_free�s7����w�
��	��	�
	
���+�r�v�v�q��w�7rc���QoU2O]]2U2OQ2U2O,QN2U2O]2U2O]2U2OQ2U2O	2U2O	]2U2oUO]2U2oUQ*
oU2oQUQ$P!)c�6�[O[2!r)r�rrrr�
bytearray_new�8ByteArrayTest.test_no_init_called.<locals>.bytearray_new�s���$�$�Y�/�/rrZr�rmr~)r\r�r�r$r�r�)r#r�rMs&  r�test_no_init_called�!ByteArrayTest.test_no_init_called�s���	0�	����q�!�$�����t�$�����y�)�����q�!��� � ��#��� � ��(���"�"�$���"�"�1�%��O��	������O��	�T�	���O����!�rc�b�[]2oUO2UOUQ2P!)rYr)r�r$r;r�s& r�test_reinit_length� ByteArrayTest.test_reinit_length�s&��
�a�L��	�
�
������C� rc���[2o[U29^tt^2UO[UOQQ2PPP2UOUQ2P!)%fhK$9h)r[r�r)r�rwrnr�r$r;r�s& r�test_reinit_with_view�#ByteArrayTest.test_reinit_with_view�sG���K��
��]�]����k�1�:�:�s�G�D������C� ��]�s�#A�A.	�'A.	r)@r.r/r0r1r�rArrZr�rr�r�r�r�r�r�rOr�r�r�r�cpython_onlyr�r�r�r�rr	rrrrrr!r$r*r0r6rCrIrPrWr^rbrgrvr�rzr�
list_tests�
CommonTest�test_exhausted_iteratorr�r�r�r�r�r�r�r�r�r�r2r3r4s@rrzrz{sf�����I�$�2�2�3E�F����8��4
9�	�6�2$�$M�#L�J62�p
���B��B�2"�:-*�^&�,&�P8��5�6�*J�A� ��
"�*�"!.�F/�09�F�"�
"�,�!�*"�B
�\�\���X��X�"+�H#�o�o�8�8�P�P��'�(�E�(X�B�@:�"
8��0!�!�!rrzc� `�\sQsQsn\1Qks\1Qks\Q2s\Q2s	\Q2s
Qs\OOQ2sQ	sQ
sQsQsQ
s\O,\O0O2Q2Q2sQsUsP!)�AssortedBytesTesti�c�T�UOUQ2Q2UOUQ2Q2UOU[]\,22Q2UOU[,QN22Q2UOUQ2Q2UOUQ2Q	2UOUQ
2Q2UOUQ2Q
2UOUQ2Q2UOUQ2Q2UOU[Q22Q2P!)rzb''rEzb'abc'zb'\\'zb'\x00\x01\xfe\xff's	

zb'\x07\x08\t\n\x0b\x0c\r'�"zb'"'�'zb"'"�'"zb'\'"'�"'"zb'"\'"'�'"'zb'\'"\''r�)r;r�r0�r#rrs&&r�test_bytes_repr�!AssortedBytesTest.test_bytes_repr�s�������3���'�����6��H�-�����5�"��;���2�����5�!1�2�3�5K�L�����,�-�/K�L�����4��*�-�����4��*�-�����6��M�2�����8��n�5�����7��_�5�����=��0�1�8�<rc��UOU[22Q2UOU[Q22Q2UOU[]\,22Q2UOU[,QN22Q2UOU[,QN22Q2UOU[Q22Q2UOU[Q22Q	2UOU[Q
22Q2UOU[Q22Q
2UOU[Q22Q2UOU[Q22Q2UOU[OQ22Q2UOU[O	Q22Q2P!)zbytearray(b'')rEzbytearray(b'abc')zbytearray(b'\\')zbytearray(b'\x00\x01\xfe\xff')z$bytearray(b'\x07\x08\t\n\x0b\x0c\r')r�zbytearray(b'"')r�zbytearray(b"'")r�zbytearray(b'\'"')r�zbytearray(b'"\'"')r�zbytearray(b'\'"\'')zByteArraySubclass(b'abc')zNested(b'abc')uŬñıçöđë(b'abc')r�)rr�r�ra�r�
)r;r�r��Nested�Ŭñıçöđër�s&&r�test_bytearray_repr�%AssortedBytesTest.test_bytearray_repr�sr������9�;��)9�:�����9�V�,�-�/B�C�����9�b�T�?�+�-@�A�����9�%5�6�7�=�	?�����9�%>�?�@�C�	E�����9�T�?�+�-B�C�����9�T�?�+�-B�C�����9�V�,�-�/G�H�����9�X�.�/�1J�K�����9�X�.�/�1K�L�����,�V�4�5�7R�S�����,�3�3�F�;�<�>N�O�����,�;�;�F�C�D�F^�_rc�2�UO[2P!r)r�r�r(s&r�test_bytes_str� AssortedBytesTest.test_bytes_str	s�����S�!rc�2�UO[2P!r)r�r�r(s&r�test_bytearray_str�$AssortedBytesTest.test_bytearray_str	s��� � ��%rc��Q[Q21FD�oUO[U2[U22UO[UP2[U22UO	[
Q[O[U2O2*29^tt^2[UQ2PPP2J�	P!)%fhJ�9h)rEz\b%s\br)
r�r;rPr�r�r�r��escaper:r.rCs& r�test_format�AssortedBytesTest.test_format		s�����6�*�*�A����V�A�Y��A��/����V�A�r�]�C��F�3��'�'�	�(1�B�I�I�d�1�g�>N�>N�4O�(O�Q�Q��q�#��Q�Q�+�Q�Q�Q�s�(
C	�C
�C
c��UOQ[Q26HP	2UOQ[Q26gP	2UOQ[Q26*P	2UOQ[Q26P	2UOQ[Q26�P	2UOQ[Q26�P	2UOQ[Q26gP
2UOQ[Q26HP
2UOQ[Q26�P
2UOQ[Q26�P
2UOQ[Q26P
2UOQ[Q26*P
2UO[Q2Q6HP	2UO[Q2Q6gP	2UO[Q2Q6*P	2UO[Q2Q6P	2UO[Q2Q6�P	2UO[Q2Q6�P	2UO[Q2Q6gP
2UO[Q2Q6HP
2UO[Q2Q6�P
2UO[Q2Q6�P
2UO[Q2Q6P
2UO[Q2Q6*P
2P!)rErlr�r(s&r�test_compare_bytes_to_bytearray�1AssortedBytesTest.test_compare_bytes_to_bytearray	sZ������5��=�0�$�7�����%��-�/��6�����%��-�/��6������v��.��5�����5��<�/��6�����%��,�.��5�����5��=�0�%�8�����%��-�/��7������v��.��6�����%��-�/��7�����%��,�.��6�����5��<�/��7�����v��&�0�$�7�����u���/��6�����u���/��6�����u���.��5�����v��%�/��6�����v���.��5�����v��&�0�%�8�����u���/��7�����u���.��6�����u���/��7�����v���.��6�����v��%�/��7rc��UO[O2UO[OQ2UO[O2UO[OQ2P!)z
bytearray(zbytes()�assertIsNotNoner��__doc__�assertStartsWithr�r(s&r�test_doc�AssortedBytesTest.test_doc/	sR�����Y�.�.�/����i�/�/��>����U�]�]�+����e�m�m�X�6rc��[Q2o[U2o[U2oUOU[U22P!)sHello world
����)r�rwr�r;)r#r+�bufrDs&   r�test_from_bytearray�%AssortedBytesTest.test_from_bytearray6	s5���7�8���� ���c�N������I�f�-�.rc
���,QNoSFD!vq#UOU[UQ22J#	[]�Q2FD.oUO[[
Q[
U2*2J0	P!)�Wonderful spamr%rszb"%s"))rzWonderful spam)sWonderful spam toozWonderful spam too)s��uª€)s\xaa\x00\000\200z\xaa\x00\000\200)r;r�r�rn�SyntaxError�evalr�)r#r�rDrrVs&    r�test_literal�AssortedBytesTest.test_literal<	s\��
���D�A����Q�	�!�Y� 7�8���s�C��A����k�4�%��A��.�
0�!rc�`�UOQO[Q22QQ,2P!�ror�rirj)r;rurwr(s&r�test_split_bytearray�&AssortedBytesTest.test_split_bytearrayI	s$��������j��&6�7�$���Frc�`�UOQO[Q22QQ,2P!r)r;rvrwr(s&r�test_rsplit_bytearray�'AssortedBytesTest.test_rsplit_bytearrayL	s$��������z�$�'7�8�4��,�Grc�`�[2oUOUOQQ2U2P!rr)r�r�r�rCs& r�test_return_self�"AssortedBytesTest.test_return_selfO	s$���K��������3��,�a�0rz4BytesWarning is needed for this test: use -bb optionc���QoU29^tt^2QP6HPPP2U29^tt^2PQ6HPPP2U29^tt^2QP6gPPP2U29^tt^2PQ6gPPP2U29^tt^2[Q2P6HPPP2U29^tt^2P[Q26HPPP2U29^tt^2[Q2P6gPPP2U29^tt^2P[Q26gPPP2U29^tt^2Q]6HPPP2U29^tt^2]Q6HPPP2U29^tt^2Q]6gPPP2U29^tt^2]Q6gPPP2P!)%fhCKv9h)%fhCKm9h)%fhCKd9h)%fhCK[9h)%fhCKI9h)%fhCK79h)%fhCK%9h)%fhCK9h)%fhCK
9h)%fhCK9h)%fhK�9h)%fhP!9h)c�<�[OP[12!rr
rrr�
bytes_warning�5AssortedBytesTest.test_compare.<locals>.bytes_warningW	s��"�1�1�2�|�2D�E�Errr�r�)r#r"s& rr��AssortedBytesTest.test_compareT	sb��	F�
�_�_��2�I��
�_�_��#�I��
�_�_��2�I��
�_�_��#�I��
�_�_��c�N�b� ��
�_�_��)�C�.� ��
�_�_��c�N�b� ��
�_�_��)�C�.� ��
�_�_��Q�J��
�_�_�
��J��
�_�_��Q�J��
�_�_�
��J��_�-�_�_��
�_�_��
�_�_��
�_�_��
�_�_��
�_�_��
�_�_��
�_�_��
�_�_��
�_�_��
�_��
�_�_�s��F�F�F/�+G�G�.G+�G?�:H� H'�=H;�I�7I"�F	�F	�F,	�$F,	�/G	�8G	�G	�G	�G(	� G(	�+G<	�4G<	�?H	�H	�H$	�H$	�'H8	�0H8	�;I	�I	�I	�I	�"I3	�+I3	r)r.r/r0r1�reprr�r�rr�r�rrr�r�requires_docstringsr
rrrrr�unittest�
skipUnlessr\r�r"r�r2r3r4s@rr�r��s�����
!%�=�%)�`�"�"��"��&��&�����8�:
�\�\�%�%�7�&�7�/�0�G�H�1�
������0�0�O�Q��Q�rr�c�.`�\sQsQsnQsQsQsUsP!)�BytearrayPEP3137Testi�	c��[U2!rr�)r#r[s&&r�marshal�BytearrayPEP3137Test.marshal�	s����|�rc��UOQ2oQFD@o[V2oU]2oUOV2UOVUQ*2JB	QFD8o[	U2oUOV2UOVUQ*2J:	UOQ2oUOU,2oUOV2UOV2P!)s1234z" returned self on a mutable objectz! returned val on a mutable objectr)�zfillr�r�r�)zval.split()[0]zval.rsplit()[0]zval.partition(b".")[0]zval.rpartition(b".")[2]zval.splitlines()[0]zval.replace(b"", b""))r,r�r;r�rr�)r#r��methnamer��newval�exprr�s&      r�test_returns_new_copy�*BytearrayPEP3137Test.test_returns_new_copy�	s����l�l�7�#��>�H��S�+�F��A�Y�F����S�)����S�$�%I�I�
K�	>�E�D��$�Z�F����S�)����S� �!D�D�
F�E��l�l�3������3�%�������%�����%rr)r.r/r0r1r,r3r2r3r4s@rr*r*�	s�����&�&rr*c�>``�\sQsQsnU1QksP	sQsQsUsU9s	!)�FixedStringTesti�	c�:�[U[2%c!UOUOQ22![RU_U2!)r$)�
isinstancer�rAr(�super�fixtype)r#r�rBs&&�rr:�FixedStringTest.fixtype�	s7����c�3����>�>�#�*�*�W�"5�6�6��w��s�#�#rc
�v�UOQ2o[[[[1FDwoUOUO29^tt^2UOVQ2]2UOVQ2]2UOVQ2P2PPP2Jy	P!)%fhJ�9h)rlrirn)rAr�r�r0r�r�r.�_assert_cmp)r#rMras&  r�test_mixed_cmp�FixedStringTest.test_mixed_cmp�	s����N�N�5�!���	�=�2C�C�A����a�j�j�)�)�� � ��A�e�H�a�0�� � ��A�d�G�Q�/�� � ��A�e�H�b�1�*�)�D�)�)�)�s�A	B'	�'B8
�0B8
r)
r.r/r0r1r:�contains_bytesr>r2r3�
__classcell__)rBr5s@@rr6r6�	s����$�
�N�2�2rr6c��\sQsQs\sQsP!)�ByteArrayAsStringTesti�	r)r.r/r0r1r�rAr2rrrrCrC�	s���IrrCc��\sQsQs\sQsP!)�BytesAsStringTesti�	r)r.r/r0r1r�rAr2rrrrErE�	s���IrrEc�@`�\sQsQsnQsQsQsQsQsQs	Us
P!)�SubclassTesti�	c���UOUOUO2UOUO2UO2QQq!UOU2UOU2qCUO	V36H2UO	V46g2UO	V462UO	V46*2UO	VC6�2UO	VC6�2UOV12UO
V*V4*2UO
V*V*2UO
V*V2*2UO	U]*U]*6H2P!)rIr�)�assertIsSubclassrA�basetyper�r�r�r;)r#rMrD�_a�_bs&    r�
test_basic�SubclassTest.test_basic�	s�����d�n�n�d�m�m�<����d�n�n�.��
�
�>���1�����"�D�N�N�1�$5�B�	
�����!������!������ ������!������!������ ������	
�������(��������'��������'�	
����!��r�!�t��$rc�X�UOQ2oUO2OU,2oUOV2UO	[U2UO[U22UOQ,2oUO	[U2UO2P!rH)rArJr�r�r9r:)r#�s1�s2�s3s&   rr��SubclassTest.test_join�	s|���^�^�G�
$��
�]�]�_�
!�
!�2�$�
'������ ��
�
�d�2�h��
�
�t�B�x�8��W�W�g�Y�
���
�
�d�2�h��
�
�.rc���UOQ2o]
UmUOQ2Um[[O
]*2FCDo[O[OV22oUO[U2[U22UOV2UOUOUO2UOUOUO2UO[U2[U22UO[UO2[UO22UOUQ2CJ 	P!�rIr��y)
rAr[�zr�r�r�r�r�rvrur;r:�assertNotHasAttr)r#rMr�rDs&   r�test_pickle�SubclassTest.test_pickle�	s����N�N�7�#������n�n�W�%����6�2�2�Q�6�7�7�E����V�\�\�!�3�4�A�����1��r�!�u�-����Q�"����Q�S�S�!�#�#�&����Q�S�S�!�#�#�&����T�!�W�d�1�g�.����T�!�#�#�Y��Q�S�S�	�2��!�!�!�S�)�8rc��UOQ2o]
UmUOQ2Um[O[O1FD�oUU2oUO[
U2[
U22UOV2UOUOUO2UOUOUO2UO[U2[U22UO[UO2[UO22UOUQ2J�	P!rU)
rAr[rWrJrKrvrur;r:rXrLs&   rrO�SubclassTest.test_copy�	s����N�N�7�#������n�n�W�%��� �I�I�t�}�}�5�K��A��A�����1��r�!�u�-����Q�"����Q�S�S�!�#�#�&����Q�S�S�!�#�#�&����T�!�W�d�1�g�.����T�!�#�#�Y��Q�S�S�	�2��!�!�!�S�)�6rc�v`�ROOQ2oROUQ2RO[	U2RO2U1QkQRO
2oUOQ2oROUQ2RO[	U2U2ROUOQ2U1QkQRO
2oUOQ2oROUQ2RO[	U2U2ROUOQ2P!)rvr�c�0:`�\sQsQsnU1QksQsUsP!)�%SubclassTest.test_fromhex.<locals>.B1i�	c�N:�ROOV2oQUmU!�r�)rJrr�)r r!�mer#s&& �rr�-SubclassTest.test_fromhex.<locals>.B1.__new__�	s#����]�]�*�*�3�6������	rr)r.r/r0r1rr2r3�r5r#s@�r�B1r_�	r�rrer�c�0:`�\sQsQsnU1QksQsUsP!)�%SubclassTest.test_fromhex.<locals>.B2i
c�:�RO[Ic"ROOU,UN3-U@QUmP!ra)rJr�r$r�)rbr�kwargsr#s&*,�rr$�.SubclassTest.test_fromhex.<locals>.B2.__init__
s2����=�=��-��M�M�*�*�2�?��?��?���rr�r.r/r0r1r$r2r3rds@�r�B2rg
s����
�
rrl)rAr�r;r9r:rJr�)r#rDrerlsf   rr��SubclassTest.test_fromhex�	s�����N�N�"�"�8�,������O�,��
�
�d�1�g�t�~�~�.�	����	�
�J�J�x� ������O�,��
�
�d�1�g�r�"��������&�	����	�
�J�J�x� ������O�,��
�
�d�1�g�r�"��������&rr)r.r/r0r1rMr�rYrOr�r2r3r4s@rrGrG�	s#����%�0/�*�*�'�'rrGc�D�\sQsQsQQ\2sQQ\2sQsP!)r�i
c��\sQsQsQsP!)�ByteArraySubclass.Nestedi
rr�rrrr�rp
���rr�c��\sQsQsQsP!)� ByteArraySubclass.Ŭñıçöđëi
rr�rrrr�rs
rqrr�r)r.r/r0r1r�r�r�r2rrrr�r�
s��
��
�
��
�
rr�c��\sQsQsQsQsP!)�ByteArraySubclassWithSlotsi
r)r[rV�__dict__)r.r/r0r1�	__slots__r2rrrruru
s��&�Irruc��\sQsQsQsP!)r0i
rr�rrrr0r0
���rr0c��\sQsQsQsP!)r1i
rr�rrrr1r1
ryrr1c�.`�\sQsQsnQsQsQsUsP!)r2i 
c��VmP!rr r"s&&rr$�WithBytes.__init__!
r&rc��UO!rr r(s&rr��WithBytes.__bytes__#
r+rr )r.r/r0r1r$r�r2r3r4s@rr2r2 
s������rr2c�0`�\sQsQsn\s\sQsQs	Us
P!)�ByteArraySubclassTesti&
c��QQ[2oU]Q2oU]QQ5oUOUQ2U]QQ5oUOUQ2P!)c�,`�\sQsQsnQQksQsUsP!)�:ByteArraySubclassTest.test_init_override.<locals>.subclassi+
c�>�[OU,UN3-U@P!r)r�r$)rb�newargrris&&*,rr$�CByteArraySubclassTest.test_init_override.<locals>.subclass.__init__,
s���"�"�2�7��7��7rrrXrkr4s@r�subclassr�+
s����
8�
8rr�rI)r�)r�r�r�)r#r�r[s&  r�test_init_override�(ByteArraySubclassTest.test_init_override*
sT��	8�y�	8�
�Q�� ���Q�w�'������G�$��A�g�.������G�$rr)r.r/r0r1r�rJr�rAr�r2r3r4s@rr�r�&
s�����H�!�I�%�%rr�c� �\sQsQs\s\sQsP!)�ByteArraySubclassWithSlotsTesti4
r)	r.r/r0r1r�rJrurAr2rrrr�r�4
s���H�*�Irr�c� �\sQsQs\s\sQsP!)�BytesSubclassTesti8
r)	r.r/r0r1r�rJr0rAr2rrrr�r�8
s���H��Irr�c��`�\sQsQsn\O
\OQ2\O\O2Q222s\O
\OQ2\O\O2Q222s\O
\OQ2\O\O2Q222s
QsUsP!)�FreeThreadingTesti=
z2this test can only possibly fail with GIL disabledc�P�QoQoQoQoQoQoQoQoQo	Q	o
Q
oQoQo
Q
oQoQoQoQoQoQoQoQoQoQoQoQoQoQoQoQoQoQo Q o!Q!o"Q"o#Q#o$Q$o%Q%o&Q&o'Q'o(Q(o)Q)o*Q*o+Q+o,Q,o-Q-o.Q.o/Q/o0Q0o1Q1o2Q2o3Q3o4Q4o5Q5o6Q6o7Q7o8Q8o9QIQ9ko:U:U,U	,]
**2U:U,U
,]
**2U:U,U,]
**2U:U,]
*2U:U,U,]
**2U:U,U
,]
**2U:U,U,]
**2U:U,U,]
**2U:U,U,]
**2U:U,U,]
**2U:U,U,]
**2U:U,U,]
**2U:U,U,]
**2U:U,U,]
**2U:U,U,]
**2U:V,U,]
**[[]�22[[]�222U:U,U,]
**P[O[[]�22[[]�2222U:U,U$,]
**2U:U,U&,]
**2U:U,U(,]
**2U:U,U,,]
**2U:U,U,]
**[Q:Q;*22U:U,U,]
**2U:U,U,]
**2U:U,U,]
**2U:U,U,]
**2U:U,U,]
**2U:U,U,]
**[Q<22U:U,U,]
**[Q<22U:U,U,]
**2U:U,U,]
**2U:U,U,]
**2U:U,U,]
**[Q<Q=*22U:U,U,]
**2U:U,U ,]
**[Q<Q=*22U:U,U!,]
**[QJ22U:U,U",]
**2U:U,U#,]
**2U:U,U7,]
**2U:U,U8,]
**2U:U9,]
*[Q?Q>*22U:U9,]
*[QK22U:U,U%,]
**2U:U,U',]
**2U:U,U),]
**P[Q<Q@*22U:U,U*,]
**[QAQB*22U:U,U+,]
**[QC2[Q<Q@*22U:U,U-,]
**[Q:Q;*22U:U,U.,]
**[Q:Q;*22U:U,U/,]
**[QDQB*22U:U,U0,]
**[Q<Q@*22U:U,U1,]
**[QEQ@*22U:U,U2,]
**[Q<Q@*22U:U,U3,]
**[QFQG*22U:U,U4,]
**[QFQG*22U:U,U5,]
**[Q:Q@*22U:U,U6,]
**[QHQG*22P!)Lc�l�UO2UO2P![cP!h9hr��waitr�r�)rDrMrs&&*rr��>FreeThreadingTest.test_free_threading_bytearray.<locals>.clearF
�!��
�F�F�H�������$��$���$�	3�3�3c�l�UO2UO2P![cP!h9hrr��rDrMrVs&&&r�clear2�?FreeThreadingTest.test_free_threading_bytearray.<locals>.clear2K
r�r�c�l�UO2UO2P![cP!h9hr)r�r
ro�rDrMs&&r�pop1�=FreeThreadingTest.test_free_threading_bytearray.<locals>.pop1P
s!��
�F�F�H�������#�t�#�r�c�J�UO2UO]2P!r,)r�r�r�s&&r�append1�@FreeThreadingTest.test_free_threading_bytearray.<locals>.append1U
s��
�F�F�H�
�H�H�Q�Krc�L�UO2UO]]2P!r,)r�r\r�s&&r�insert1�@FreeThreadingTest.test_free_threading_bytearray.<locals>.insert1Y
s��
�F�F�H�
�H�H�Q��Nrc�n�[QQ*2oUO2UOU2P!�r��@)r�r�r�r�s&& rr��?FreeThreadingTest.test_free_threading_bytearray.<locals>.extend]
s$���$��/�*�A�
�F�F�H�
�H�H�Q�Krc��[Q2oUO2UOU2P![cP!h9h)r�)r�r�r�r�r�s&& rr��?FreeThreadingTest.test_free_threading_bytearray.<locals>.removeb
s,���C��A�
�F�F�H����!����#�t�#�s�0�	?�?�?c�H�UO2UO2P!r)r�rr�s&&rr�@FreeThreadingTest.test_free_threading_bytearray.<locals>.reverseh
s��
�F�F�H�
�I�I�Krc�H�UO2UO2P!r�r��
__reduce__r�s&&r�reduce�?FreeThreadingTest.test_free_threading_bytearray.<locals>.reducel
s��
�F�F�H�
�L�L�Nrc�J�UO2UO]2P!rk�r��
__reduce_ex__r�s&&r�	reduceex2�BFreeThreadingTest.test_free_threading_bytearray.<locals>.reduceex2p
s��
�F�F�H�
�O�O�A�rc�J�UO2UO]2oP!r�r�r�s&& r�	reduceex3�BFreeThreadingTest.test_free_threading_bytearray.<locals>.reduceex3t
s��
�F�F�H�����"�Arc�J�UO2UO]2P!r,)r�rr�s&&r�count0�?FreeThreadingTest.test_free_threading_bytearray.<locals>.count0y
s��
�F�F�H�
�G�G�A�Jrc�H�UO2UO2P!r)r�r0r�s&&rr0�?FreeThreadingTest.test_free_threading_bytearray.<locals>.decode}
s��
�F�F�H�
�H�H�Jrc�n�[QQ*2oUO2UOU2P!)r��)r�r�rr�s&& rr�=FreeThreadingTest.test_free_threading_bytearray.<locals>.find�
s$���$��.�)�A�
�F�F�H�
�F�F�1�Irc�J�UO2UOQ2P!)r�)r�r�r�s&&rr��<FreeThreadingTest.test_free_threading_bytearray.<locals>.hex�
s��
�F�F�H�
�E�E�#�Jrc�N�UO2UO,QN2P!)r[)r[�2rI)r�r�r�s&&rr��=FreeThreadingTest.test_free_threading_bytearray.<locals>.join�
s��
�F�F�H�
�F�F�%�&rc�L�UO2UOQQ2P!)r�r)r�r�r�s&&rr��@FreeThreadingTest.test_free_threading_bytearray.<locals>.replace�
s��
�F�F�H�
�I�I�d�C� rc�n�UO2UOV2P![cP!h9hr)r�r�r�r�s&&&rr��BFreeThreadingTest.test_free_threading_bytearray.<locals>.maketrans�
s$��
�F�F�H����Q�"���#�t�#���%�	4�4�4c�J�UO2UOU2P!r)r�r�r�s&&&rr��BFreeThreadingTest.test_free_threading_bytearray.<locals>.translate�
s��
�F�F�H�
�K�K��Nrc�\�UO2UO2oU%cP!P!r)r�rJr�s&& rrJ�=FreeThreadingTest.test_free_threading_bytearray.<locals>.copy�
s��
�F�F�H�����A��qrc�(�UO2P!r�r�r�s&&rr�AFreeThreadingTest.test_free_threading_bytearray.<locals>.endswith�
���
�F�F�Hrc�n�UO2UOQ2P![cP!h9h���)r�rr�r�s&&rr�>FreeThreadingTest.test_free_threading_bytearray.<locals>.index�
s$��
�F�F�H�����!���%�v�%�r�c�(�UO2P!rr�r�s&&rr��?FreeThreadingTest.test_free_threading_bytearray.<locals>.lstrip�
r�rc�(�UO2P!rr�r�s&&rr��BFreeThreadingTest.test_free_threading_bytearray.<locals>.partition�
r�rc�(�UO2P!rr�r�s&&r�removeprefix�EFreeThreadingTest.test_free_threading_bytearray.<locals>.removeprefix�
r�rc�(�UO2P!rr�r�s&&r�removesuffix�EFreeThreadingTest.test_free_threading_bytearray.<locals>.removesuffix�
r�rc�(�UO2P!rr�r�s&&rr!�>FreeThreadingTest.test_free_threading_bytearray.<locals>.rfind�
r�rc�n�UO2UOQ2P![cP!h9hr�)r�r)r�r�s&&rr)�?FreeThreadingTest.test_free_threading_bytearray.<locals>.rindex�
s$��
�F�F�H����'�"���%�v�%�r�c�(�UO2P!rr�r�s&&rr��CFreeThreadingTest.test_free_threading_bytearray.<locals>.rpartition�
r�rc�(�UO2P!rr�r�s&&rrv�?FreeThreadingTest.test_free_threading_bytearray.<locals>.rsplit�
r�rc�(�UO2P!rr�r�s&&rr��?FreeThreadingTest.test_free_threading_bytearray.<locals>.rstrip�
r�rc�(�UO2P!rr�r�s&&rru�>FreeThreadingTest.test_free_threading_bytearray.<locals>.split�
r�rc�Z�UO2[UO22oP!r)r�rm�
splitlines)rDrMr�s&& rr��CFreeThreadingTest.test_free_threading_bytearray.<locals>.splitlines�
s��
�F�F�H��A�L�L�N�#�Arc�(�UO2P!rr�r�s&&rr�CFreeThreadingTest.test_free_threading_bytearray.<locals>.startswith�
r�rc�(�UO2P!rr�r�s&&rr��>FreeThreadingTest.test_free_threading_bytearray.<locals>.strip�
r�rc�:�UO2U]*P!rkr�r�s&&r�repeat�?FreeThreadingTest.test_free_threading_bytearray.<locals>.repeat�
s��
�F�F�H�
��E�Erc�(�UO2P!rr�r�s&&r�contains�AFreeThreadingTest.test_free_threading_bytearray.<locals>.contains�
r�rc�\�[QQ*2oUO2V*
oP!r��r�r�r�s&& r�iconcat�@FreeThreadingTest.test_free_threading_bytearray.<locals>.iconcat�
s ���$��/�*�A�
�F�F�H�
�F�Arc�L�UO2P![cP!h9hr)r�ror�s&&r�	subscript�BFreeThreadingTest.test_free_threading_bytearray.<locals>.subscript�
s��
�F�F�H�
$���#�t�#�s�	#�#�#c�T�[QQ*2oUO2V!Q$P!)r�r�rmr�r�s&& r�
ass_subscript�FFreeThreadingTest.test_free_threading_bytearray.<locals>.ass_subscript�
s ���$��/�*�A�
�F�F�H��a�Drc�0�UO2V!Q$P!)rmr�r�s&&&r�ass_subscript2�GFreeThreadingTest.test_free_threading_bytearray.<locals>.ass_subscript2�
s��
�F�F�H��a�Drc��[[Q22oUO2V*P![cP!h9h)�)r�r�r�r�r�s&& rrP�<FreeThreadingTest.test_free_threading_bytearray.<locals>.mod�
s-���e�D�k�"�A�
�F�F�H������"�d�"�s�0�	?�?�?c�8�UO2V*oP!rr�)rDrMrVr�s&&& r�mod2�=FreeThreadingTest.test_free_threading_bytearray.<locals>.mod2s��
�F�F�H���Arc�>�UO2[U2P!r)r�r%r�s&&r�repr_�>FreeThreadingTest.test_free_threading_bytearray.<locals>.repr_s��
�F�F�H���Grc�H�UO2UO2oP!r)r��
capitalizer�s&& rr�CFreeThreadingTest.test_free_threading_bytearray.<locals>.capitalize���
�F�F�H�����Arc�J�UO2UOQ2oP!)i)r�r�r�s&& rr��?FreeThreadingTest.test_free_threading_bytearray.<locals>.centers��
�F�F�H�����!�Arc�H�UO2UO2oP!r)r��
expandtabsr�s&& rr�CFreeThreadingTest.test_free_threading_bytearray.<locals>.expandtabsrrc�J�UO2UOQ2oP!�i`)r�r�r�s&& rr��>FreeThreadingTest.test_free_threading_bytearray.<locals>.ljust���
�F�F�H�����!�Arc�H�UO2UO2oP!r)r��lowerr�s&& rr �>FreeThreadingTest.test_free_threading_bytearray.<locals>.lower ���
�F�F�H����	�Arc�J�UO2UOQ2oP!r)r�r�r�s&& rr��>FreeThreadingTest.test_free_threading_bytearray.<locals>.rjust%rrc�H�UO2UO2oP!r)r��swapcaser�s&& rr&�AFreeThreadingTest.test_free_threading_bytearray.<locals>.swapcase*s��
�F�F�H��
�
��Arc�H�UO2UO2oP!r)r��titler�s&& rr)�>FreeThreadingTest.test_free_threading_bytearray.<locals>.title/r"rc�H�UO2UO2oP!r)r��upperr�s&& rr,�>FreeThreadingTest.test_free_threading_bytearray.<locals>.upper4r"rc�J�UO2UOQ2oP!)r�)r�r/r�s&& rr/�>FreeThreadingTest.test_free_threading_bytearray.<locals>.zfill9rrc�J�UO2UO]
2P!r`)r�r�r�s&&rr��?FreeThreadingTest.test_free_threading_bytearray.<locals>.resize>s��
�F�F�H�
�H�H�R�Lrc�H�UO2UO2oP!r)r�r�r�s&& rr��CFreeThreadingTest.test_free_threading_bytearray.<locals>.take_bytesBrrc�p�UO2UO]
2oP![cP!h9hr`)r�r�ror�s&& r�take_bytes_n�EFreeThreadingTest.test_free_threading_bytearray.<locals>.take_bytes_nGs+��
�F�F�H�
$��L�L��$����#�t�#�s�&�	5�5�5c�\�Ue[QQ*2o[O[U22o,oSFD0o[OVSU,UN3Q5oUOU2J2	[OU29^tt^2PPP2P!)%fhP!9h)Nr�r��r�r)r��	threading�Barrierrm�Threadr�r�
start_threads)�funcsrMr�barrier�threadsr�threads&&*    rr8�>FreeThreadingTest.test_free_threading_bytearray.<locals>.checkNs����y��d�X�o�.���'�'��E�
�3�G��G���"�)�)��a�<O�$�<O�P�����v�&��
"�/�/��8�8��9�8�8�8�s�B�B+	�#B+	rir�r��@�s
0123456789r�rNr
rKs0	rVsaAi r[rs































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































s201234567890123456789012345678901234567890123456789)r�r�r�);r#r�r�r�r�r�r�r�rr�r�r�r�r0rr�r�r�r�r�rJrrr�r�r�r�r!r)r�rvr�rur�rr�r�r�r�rrrrPr
rrr�rr�r r�r&r)r,r/r�r�r5r8s;&                                                          r�test_free_threading_bytearray�/FreeThreadingTest.test_free_threading_bytearray>
s���	%�
	%�
	$�
	�	�	�
	$�	�	�	�	3�
	�	�	�
	�	'�	!�	$�
	�	$�
	+�	�	&�	/�	,�	,�	*�	�	0�	/�	&�	.�	#�
	-�	%�	�	!�	�
	$�
	�
	$�
	#�	$�
	�	5�
	;�
	5�
	5�
	5�
	6�
	6�
	6�
	6�
	6�
	�	'�
	$�
	�"	�u�g���2�
�%�&�
�u�g���b�(�(�)�
�u�g��	�B��&�'�
�u�g��l��
�u�g���2�
�%�&�
�u�g���2�
�%�&�
�u�g���2�
�%�&�
�u�g�����#�$�
�u�g����
�"�#�
�u�g��	�B��&�'�
�u�g�����#�$�
�u�g�����#�$�
�u�g���2�
�%�&�
�u�g��	�B��&�'�
�u�g��	�B��&�'�
�u�o���b� 0�0�)�E�#�J�2G��SX�Y\�S]�I^�_�
�u�g���b�(�(�$�	�0C�0C�I�e�TW�j�DY�[d�ej�kn�eo�[p�0q�r�
�u�g���2�
�%�&�
�u�g��	�B��&�'�
�u�g���"�,�,�-�
�u�g���"��$�%�	�u�g���b�(�(�)�D�7�N�*C�D�
�u�g�����#�$�
�u�g��
�R��'�(�
�u�g���"��$�%�
�u�g���2�
�%�&�
�u�g���b�(�(�)�
�u�g����+�+�Y�t�_�=�
�u�g����+�+�Y�t�_�=�
�u�g���"��$�%�
�u�g���2�
�%�&�
�u�g���r�)�)�*�
�u�g���2�
�%�y����'?�@�
�u�g���2�
�%�&�
�u�g���"��$�i��v�
�&>�?�
�u�g���r�)�)�9�]�+C�D�
�u�g���r�)�)�*�
�u�g���"��$�%�
�u�g���2�
�%�&�
�u�g���r�)�)�*�
�|�n�r�!�9�]�U�-B�#C�D�
�|�n�r�!�9�->�#?�@�
�u�g��
�R��'�(�
�u�g���b�(�(�)�
�v�h�.�)�B�.�.��i��x��6P�Q�
�u�g����
�"�I�e�d�l�$;�<�
�v�h�$��"��$�i��&6�	�$��/�8R�S�
�u�g���r�)�)�9�T�G�^�+D�E�
�u�g���2�
�%�y����'@�A�
�u�g���r�)�)�9�V�d�]�+C�D�
�u�g���"��$�i��x��&@�A�
�u�g���"��$�i��x��&@�A�
�u�g���"��$�i��x��&@�A�
�u�g��
�R��'��5�8�3C�)D�E�
�u�g���"��$�i���0@�&A�B�
�u�g���"��$�i��x��&@�A�
�u�g���"��$�i��x��&@�Arc�&�QoQoQoQo[]
2FDso[QQ*2oUU,]
*[U22UU,U,]
**[U22UU,U,]
**[U22Ju	P!)c�>�UO2[U2P!r)r�r��rDr�s&&r�	iter_next�FFreeThreadingTest.test_free_threading_bytearrayiter.<locals>.iter_next�s��
�F�F�H���Hrc�H�UO2UO2P!rr�rHs&&r�iter_reduce�HFreeThreadingTest.test_free_threading_bytearrayiter.<locals>.iter_reduce�s��
�F�F�H��M�M�Orc�J�UO2UO]2P!r,)r��__setstate__rHs&&r�
iter_setstate�JFreeThreadingTest.test_free_threading_bytearrayiter.<locals>.iter_setstate�s��
�F�F�H��O�O�A�rc�*�[O[U22o,oSFD-o[OVBU1Q5oUO	U2J/	[
OU29^tt^2PPP2P!)%fhP!9h)r8)r9r:rmr;r�rr<)r=r�r>r?rr@s&&    rr8�BFreeThreadingTest.test_free_threading_bytearrayiter.<locals>.check�sj���'�'��E�
�3�G��G���"�)�)��b�M�J�����v�&��
"�/�/��8�8��9�8�8�8�s�5B�B	�
B	r�rB)r�r�r�)r#rIrLrPr8r�rms&      r�!test_free_threading_bytearrayiter�3FreeThreadingTest.test_free_threading_bytearrayiter�s���	�	�	�
	��r��A��4�&�=�)�B��9�+��"�D��H�-��9�+��
�� 2�2�D��H�=��9�+���"� 4�4�d�2�h�?�rc	��Qo[]d2o[]2Tt,tFDo[OV1Q5MJ	oo[O
U29^tt^2PPP2P!ttoh)%fhP!9h)c��[Q2FD&oUOQ2UO]2J(	P![[1cJ@h9hr�)r�r�r�r�)rmr�s& r�
resize_stress�MFreeThreadingTest.test_free_threading_bytearray_resize.<locals>.resize_stress�sD���4�[����I�I�d�O��I�I�a�L�!��$�Z�0����s�":�A�
A�Ar8)r�r�r9r;rr<)r#rXrmr�r?s&    r�$test_free_threading_bytearray_resize�6FreeThreadingTest.test_free_threading_bytearray_resize�sd��	��s�^��OT�UV�x�X�x�!�9�#�#�=�u�E�x��X�
�
+�
+�G�
4�
4��5�
4��Y�
4�
4�
4�s�#A+�A0�0B	�9B	r)r.r/r0r1r'r(r�Py_GIL_DISABLEDr�reap_threads�requires_working_threadingrDrTrZr2r3r4s@rr�r�=
s�����
����0�0�2f�g��"�"��0�0�2�`B�3�#�h�`B�D����0�0�2f�g��"�"��0�0�2�!@�3�#�h�!@�F����0�0�2f�g��"�"��0�0�2��3�#�h�rr��__main__)5r�rOrr�r\rJrr�r�r8r9r'�test.supportr�rrrr�test.string_tests�test.list_testsrr�test.support.script_helperrr�r"rrr7�TestCaser�rzr�r*�string_tests�BaseTestr6rCrErGr�r�rur�r0r1r2r�r�r�r�r.�mainrrr�<module>rhs���
��	�	�
���
�������&�)�(���9�<��9�9��������HH�HH�V"z.�
�x�0�0�z.�z`
!�M�8�#4�#4�`
!�FR��)�)�R�F&�8�,�,�&�62�d�'�'�0�0�2� �O�X�->�->�����):�):��\'�\'�~
�	�
�'��'�	�E�	�	��	���%�L�(�*;�*;�%�+�\�8�3D�3D�+���h�&7�&7��
[��)�)�[�z�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit