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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test_class.cpython-315.opt-2.pyc
R
>lqjTxc�n�]PHs]QHGs]QHGsGsGs,QMQMQMQMQMQMQ	MQ
MQMQMQ
MQMQMQMQMQMQMQMQMQMQMQMQMQMQMQMQMQMQMQ MQ!MQ"MQ#MQ$MQ%MQ&Ms,sQ's	Q(s
Q)s-s\
\
\2\2\FDs\
\\*\2\2J	\Q*\1\2s??
??\O&Q+2Q,Q-\O(22s]Q.HXGs]s]sQ/Q02sQ1Q22sQ3Q42sQ5Q6\2sQ7Q8\O(2s\ Q96Xc\OB2P!P!):�)�support)�cpython_only�
import_helper�
script_helper�add�radd�sub�rsub�mul�rmul�matmul�rmatmul�truediv�rtruediv�floordiv�	rfloordiv�mod�rmod�divmod�rdivmod�pow�rpow�rshift�rrshift�lshift�rlshift�and�rand�or�ror�xor�rxor�contains�getitem�setitem�delitem�neg�pos�abs�initc�`�U1QkoU!)c�Z:�[OROU12RU-U@!�N)�callLst�append�__name__)�args�kwargs�fs*,��$C:\Python315\\Lib\test\test_class.py�track�trackCall.<locals>.trackDs(�������
�
�D�)�*��$�!�&�!�!��)r2r4sf r3�	trackCallr8Cs���"��Lr6a�
@trackCall
def __hash__(self, *args):
    return hash(id(self))

@trackCall
def __str__(self, *args):
    return "AllTests"

@trackCall
def __repr__(self, *args):
    return "AllTests"

@trackCall
def __int__(self, *args):
    return 1

@trackCall
def __index__(self, *args):
    return 1

@trackCall
def __float__(self, *args):
    return 1.0

@trackCall
def __eq__(self, *args):
    return True

@trackCall
def __ne__(self, *args):
    return False

@trackCall
def __lt__(self, *args):
    return False

@trackCall
def __le__(self, *args):
    return True

@trackCall
def __gt__(self, *args):
    return False

@trackCall
def __ge__(self, *args):
    return True
z-@trackCall
def __%s__(self, *args):
    pass
�AllTestsz!callLst is shared between threadsc�@`�\sQs]�snQsQsQsQsQsQs	Qs
QsQ	sQ
s
QsQsQ
s\O$2\O&2\O(2Q222sQsQsQs\Q2sQsQsQsQsQsQs Qs!Qs"Qs#Us$P!)�
ClassTestsc��,[Q$P!)�NNN)r-��selfs&r3�setUp�ClassTests.setUp�s�����
r6c�d�[Q*oV6wcUOQU8QU802P!P!)r=zExpected call list:
  z#
does not match actual call list
  )r-�fail)r?�expected_calls�actualCallLists&& r3�assertCallStack�ClassTests.assertCallStack�s,�� �����+��I�I�%�~�7�
8�,r6c�F�[2oUOQU11,2P!)�__init__)r9rF)r?�foos& r3�testInit�ClassTests.testInit�s!���j�����z�C�6�2�3�4r6c���[2o,[Q$U]*UOQU]11,2,[Q$]U*UOQU]11,2,[Q$U]*
UOQU]11,2,[Q$]U*
UOQU]11,2,[Q$U]*UOQU]11,2,[Q$]U*UOQU]11,2,[Q$U]*UOQU]11,2,[Q$]U*UOQU]11,2,[Q$U]*UOQ	U]11,2,[Q$]U*UOQ
U]11,2,[Q$U]*UOQU]11,2,[Q$]U*UOQU]11,2,[Q$U]*UOQ
U]11,2,[Q$]U*UOQU]11,2,[Q$[U]2UOQU]11,2,[Q$[]U2UOQU]11,2,[Q$U]*UOQU]11,2,[Q$]U*UOQU]11,2,[Q$U]*	UOQU]11,2,[Q$]U*	UOQU]11,2,[Q$U]*UOQU]11,2,[Q$]U*UOQU]11,2,[Q$U]*UOQU]11,2,[Q$]U*UOQU]11,2,[Q$U]*UOQU]11,2,[Q$]U*UOQU]11,2,[Q$U]*UOQU]11,2,[Q$]U*UOQU]11,2P!)r=�__add__�__radd__�__sub__�__rsub__�__mul__�__rmul__�
__matmul__�__rmatmul__�__truediv__�__rtruediv__�__floordiv__�
__rfloordiv__�__mod__�__rmod__�
__divmod__�__rdivmod__�__pow__�__rpow__�
__rshift__�__rrshift__�
__lshift__�__rlshift__�__and__�__rand__�__or__�__ror__�__xor__�__rxor__)r9r-rFr�r?�testmes& r3�
testBinaryOps�ClassTests.testBinaryOps�s���������
���
����y�6�1�+�6�7�8����
�	�F�
����z�F�A�;�7�8�9����
���
����y�6�1�+�6�7�8����
�	�F�
����z�F�A�;�7�8�9����
���
����y�6�1�+�6�7�8����
�	�F�
����z�F�A�;�7�8�9����
���
����|�f�a�[�9�:�;����
�	�F�
����}�v�q�k�:�;�<����
���
����}�v�q�k�:�;�<����
�	�F�
����~���{�;�<�=����
��!�����~���{�;�<�=����
�	�V���������<�=�>����
���
����y�6�1�+�6�7�8����
�	�F�
����z�F�A�;�7�8�9����
��v�a�����|�f�a�[�9�:�;����
��q�&�����}�v�q�k�:�;�<����
��!�����y�6�1�+�6�7�8����
�	�V�����z�F�A�;�7�8�9����
��!�����|�f�a�[�9�:�;����
�	�V�����}�v�q�k�:�;�<����
��!�����|�f�a�[�9�:�;����
�	�V�����}�v�q�k�:�;�<����
���
����y�6�1�+�6�7�8����
�	�F�
����z�F�A�;�7�8�9����
���
����x�&�!��5�6�7����
�	�F�
����y�6�1�+�6�7�8����
���
����y�6�1�+�6�7�8����
�	�F�
����z�F�A�;�7�8�9r6c��[2oQQ2o]U27UOQ2,[Q$]U7UO	QU]11,2,[Q$U]*UO	QU]11,2,[Q$]U]$UO	QU]]11,2,[Q$U]UO	QU]11,2,[Q$UQ*UO	QU[P]*211,2,[Q$Q	UQ$UO	QU[P]*2Q	11,2,[Q$UQUO	QU[P]*211,2,[Q$UQ
*UO	QU[]Q]
211,2,[Q$QUQ
$UO	QU[]Q]
2Q11,2,[Q$UQ
UO	QU[]Q]
211,2,[Q$UQ*UO	QU[P]*P2[[P]P2]]d111,2,[Q$Q
UQ$UO	QU[P]*P2[[P]P2]]d1Q
11,2,[Q$UQUO	QU[P]*P2[[P]P2]]d111,2P![cCK�h9h)c��\sQsQsQsP!)�,ClassTests.testListAndDictOps.<locals>.Empty�r7�r/�
__module__�__qualname__�__firstlineno__�__static_attributes__r7r6r3�Emptyrps��Tr6rwz$failed, should have raised TypeErrorr=�__contains__�__getitem__�__setitem__�__delitem__�N�*Nz
The Answer:���
rzA lot�Strange)r|.:N�Nr��d)r9rC�	TypeErrorr-rF�slice�Ellipsis)r?rkrws&  r3�testListAndDictOps�ClassTests.testListAndDictOpssc�����	��	�
���L��I�I�<�=����
�	�V�����~���{�;�<�=����
��q�	����}�v�q�k�:�;�<����
���q�	����}�v�q�!�n�=�>�?����
��1�I����}�v�q�k�:�;�<����
��s�����}�v�u�T�2��.G�H�I�J����
�"��s�����}�v�u�T�2��/;�/=�>�?�	@����
��3�K����}�v�u�T�2��.G�H�I�J����
��y�����}�v�u�Q��b�7I�.J�K�L�M����
�#��y�����}�v�u�Q��b�7I�DK�/M�N�O�	P����
��9�����}�v�u�Q��b�7I�.J�K�L�M����
��&�'����}�v��d�B��8M�8@�8=�d�B��8M�8:�C�8A�/B�C�D�	E����
�*3��&�'����}�v��d�B��8M�8@�8=�d�B��8M�8:�C�8A�CL�/M�N�O�	P����
��*�+����}�v��d�B��8M�8@�8=�d�B��8M�8:�C�8A�/B�C�D�	E��u�	��	�s�J0�0	J?�:J?�>J?c�:�[2o,[Q$U'UOQU11,2,[Q$U3UOQU11,2,[Q$[U2UOQU11,2,[Q$[	U2UOQU11,2,[Q$[U2UOQU11,2,[Q$[
U2UOQU11,2,[Q$[U2UOQU11,2P!)r=�__neg__�__pos__�__abs__�__int__�	__float__�	__index__)r9r-rFr(�int�float�oct�hexrjs& r3�testUnaryOps�ClassTests.testUnaryOpsZs��������
�	�����y�6�)�4�5�6����
�	�����y�6�)�4�5�6����
��F�����y�6�)�4�5�6����
��F�����y�6�)�4�5�6����
�
�f�
����{�V�I�6�7�8����
��F�����{�V�I�6�7�8����
��F�����{�V�I�6�7�8r6c�R�[2o,[Q$[U2UOQU11,2,[Q$[	U2UOQU11,2,[Q$[U2UOQU11,2,[Q$U]6HUOQU]11,2,[Q$U]6UOQU]11,2,[Q$U]6�UOQU]11,2,[Q$U]6gUOQU]11,2,[Q$]U6HUOQ]U11,2,[Q$]U6UOQ]U11,2,[Q$]U6�UOQ]U11,2,[Q$]U6gUOQ]U11,2P!)r=�__hash__�__repr__�__str__�__eq__�__lt__�__gt__�__ne__)r9r-�hashrF�repr�strrjs& r3�testMisc�ClassTests.testMiscts���������
��V�����z�F�9�5�6�7����
��V�����z�F�9�5�6�7����
��F�����y�6�)�4�5�6����
��!�����x�&�!��5�6�7����
���
����x�&�!��5�6�7����
���
����x�&�!��5�6�7����
��!�����x�&�!��5�6�7����
�	�V�����x�!�V��5�6�7����
�	�F�
����x�!�V��5�6�7����
�	�F�
����x�!�V��5�6�7����
�	�V�����x�!�V��5�6�7r6c��QQ[2oU2o,[Q$UOUOQUQ11,2,[Q$QUmUOQUQQ11,2,[Q$U;UOQUQ	11,2P!)
c�R`�\sQsQsn\Q2s\Q2s\Q2sQsUs	P!)�/ClassTests.testGetSetAndDel.<locals>.ExtraTests�c��Q!)�SomeValr7�r?r0s&*r3�__getattr__�;ClassTests.testGetSetAndDel.<locals>.ExtraTests.__getattr__�s�� r6c��P!r,r7r�s&*r3�__setattr__�;ClassTests.testGetSetAndDel.<locals>.ExtraTests.__setattr__����r6c��P!r,r7r�s&*r3�__delattr__�;ClassTests.testGetSetAndDel.<locals>.ExtraTests.__delattr__�r�r6r7)
r/rsrtrur8r�r�r�rv�__classdictcell__��
__classdict__s@r3�
ExtraTestsr��s?����
�
!��
!��
��
��
��
r6r�r=r��spamzspam, spam, spam and hamr��eggsr��cardinal)r9r-r�rFr�r�)r?r�rks&  r3�testGetSetAndDel�ClassTests.testGetSetAndDel�s���	��	�������
�������}�v�v�.>�?�@�A����
�0������}�v�v�/I�/K�L�M�	N����
��O����}�v�z�.B�C�D�Er6c�$�]PHo[OQ2oQQ2oU2oUOUO	UQ2]2UOUO	UQ2]2UOUO
22P!)r�_testlimitedcapic�(`�\sQsQsnQsQsUsP!)�'ClassTests.testHasAttrString.<locals>.A��c��]UmP!����attrr>s&r3rI�0ClassTests.testHasAttrString.<locals>.A.__init__�s	����	r6r��r/rsrtrurIrvr�r�s@r3�Ar��s����
�
r6r�sattrsnoattr)�sysr�
import_module�assertEqual�object_hasattrstring�assertIsNone�	exception)r?r�r�r��as&    r3�testHasAttrString�ClassTests.testHasAttrString�sz���(�6�6�7I�J��	�	�
�C�����)�>�>�q�'�J�A�N����)�>�>�q�)�L�a�P����#�-�-�/�*r6c�`�,nU1QkQ2oU2o=]PHoUO2UOQ,R2P!)c�0:`�\sQsQsnU1QksQsUsP!)�#ClassTests.testDel.<locals>.DelTest��c�,:�ROQ2P!)�crab people, crab people)r.�r?�xs&�r3�__del__�+ClassTests.testDel.<locals>.DelTest.__del__�s������3�4r6r7�r/rsrtrur�rvr�)r�r�s@�r3�DelTestr��s����
5�
5r6r�r�)�gc�collectr�)r?r�rkr�r�s&   @r3�testDel�ClassTests.testDel�s>�����	5�	5������
�
�
�����4�5�q�9r6c
���QQ2oQo[[[[[[
[[[U1
FDoUO[V122J 	P!)c�D`�\sQsQsnQs\s\s\s\s\s	\s
\sQsUs
P!)�4ClassTests.testBadTypeReturned.<locals>.BadTypeClass��c��P!r,r7r>s&r3r��<ClassTests.testBadTypeReturned.<locals>.BadTypeClass.__int__����r6r7)r/rsrtrur�r��__complex__r�r��	__bytes__�__bool__r�rvr�r�s@r3�BadTypeClassr��s-����
��I�!�K��G��H��I��H��Ir6r�c��,U*!r,r7�r�s&r3�index�-ClassTests.testBadTypeReturned.<locals>.index�s���a�5�Lr6)r��complexr�r��bytes�binr�r��bool�assertRaisesr�)r?r�r�r2s&   r3�testBadTypeReturned�ClassTests.testBadTypeReturned�sG��		 �		 �	���#�t�U�C��c�4��O�A����i��L�N�;�Pr6c��QQ2o[U22QQ2oUO[[U22P!)c��\sQsQsQsP!)�$ClassTests.testHashStuff.<locals>.C0��r7rrr7r6r3�C0r�����r6r�c�(`�\sQsQsnQsQsUsP!)�$ClassTests.testHashStuff.<locals>.C2�c��]!r�r7�r?�others&&r3r��+ClassTests.testHashStuff.<locals>.C2.__eq__�s��Ar6r7)r/rsrtrur�rvr�r�s@r3�C2r��s����-�-r6r)r�r�r�)r?r�rs&  r3�
testHashStuff�ClassTests.testHashStuff�s7��	�	�	
�R�T�
�	.�	.�	
���)�T�2�4�0r6c
�6�[2oQQ2oU2oQ-oSFD�oUOU29^tt^2UO[[	[UP222UO[[	VP222UO[[	V%P222UO[[	V5P222PPP2J�	,QMQMQMQMQMQMQMQ	MQ
MQMQMQ
MQMQMQMQMQMQMQMQMQMQMQMQMQMQMQMQMQMQMQ MQ!MQ"MQ#MQ$MQ%MQ&MQ'MQ(MoQ.oUO[
Q)OU22UO[
Q*OU22UO[
Q+OU22SFD�oUOU29^tt^2UO[[U22UO[V22UO[V%22UO[V522PPP2J�	UO[UQ,22UO[UQ,22P!)%fhCJb9h)%fhJ�9h)/c��\sQsQsQsP!)�.ClassTests.testPredefinedAttrs.<locals>.Custom�r7rrr7r6r3�Customr
�r�r6rr��
__aenter__�	__aexit__�	__aiter__�	__anext__�	__await__r�r��__ceil__r�rxr��
__delete__r{r\�	__enter__�__exit__r��	__floor__�__get__r�ryr�r��
__invert__�__iter__�__len__�__length_hint__�__missing__r��__next__�__objclass__r�r]�__reversed__�	__round__�__set__rz�	__trunc__z__{}__z__r{}__z__i{}__�__call__)�	__class__r��__dir__r��
__format__�__ge__�__getattribute__�__getstate__r�r�rI�__init_subclass__�__le__r�r��__new__�
__reduce__�
__reduce_ex__r�r��
__sizeof__r��__subclasshook__)rrrrrrr
rrrrr )
�object�subTest�
assertTrue�callable�getattr�extend�map�format�assertFalse�hasattr)r?�or�c�methods�name�not_defined�augments&       r3�testPredefinedAttrs�ClassTests.testPredefinedAttrs�s6���H��	�	�
�H��
���D����d�#�#��������t�)D� E�F�������$�)?� @�A�������t�)D� E�F�������$�)?� @�A�	$�#��

��

�#�

�%0�

�2=�

�?J�

��

�#�

�%0�

�2<�

�
�

�*�

�,5�

�7C�

�
�	

�(�	

�*5�	

�7A�	

�

�

�
%�

�
'0�

�
2?�

�
AN�

�
�

�#�

�%1�

�3=�

�?H�

�
�

� -�

�/8�

�:D�

�
�

�&�

�(5�

�7E�

�
�

�#�

�%2�

�4?�

��
��	���3�x����8�9����3�y�/�/��9�:����3�y�/�/��9�:��D����d�#�#�� � ����!6�7�� � ���!1�2�� � ���!6�7�� � ���!1�2�	$�#� �	
�����J�/�0������J�/�0�C$�#�#��2$�#�#�s%�BI2	�A.J	�2J
�;J
�J
�J
c��QQ2oU2UmU2oU2UOQ2P![cP!h9h)c��\sQsQsQsP!)�%ClassTests.testSFBug532646.<locals>.A�4r7rrr7r6r3r�rE4r�r6r�zFailed to raise RecursionError)r#rC�RecursionError)r?r�r�s&  r3�testSFBug532646�ClassTests.testSFBug532646.sI��	�	��S��
�
�C��	8�
�C�
�I�I�6�7���	��	�s�:�	A	�A	�A	c�v`�QnU1QkQ2oU2OU1QkQ2oU2U26HU1QkQ2oU2UOQ	2P![c3o[S2Q6wcSOQS*2Po=K|Po=hh9h[cP!h9h)
c��[Q2g��booh)�AttributeErrorr>s&r3rM�BClassTests.testForExceptionsRaisedInInstanceGetattr2.<locals>.boohCs
�� ��(�(r6c�,:�\sQsQs\Y2sQsP!)�?ClassTests.testForExceptionsRaisedInInstanceGetattr2.<locals>.A�Fr7)r/rsrtru�propertyr�rvrLs�r3r�rQFs������Ar6r�rMz(attribute error for A().a got masked: %sc�,:�\sQsQs\Y2sQsP!)�?ClassTests.testForExceptionsRaisedInInstanceGetattr2.<locals>.E�Nr7)r/rsrtrurSr�rvrLs�r3�ErUNs����d�^�Fr6rWc�,:�\sQsQs\Y2sQsP!)�?ClassTests.testForExceptionsRaisedInInstanceGetattr2.<locals>.I�Rr7)r/rsrtrurSrIrvrLs�r3�IrYRs�����~�Hr6r[z)attribute error for I.__init__ got masked)r�rNr�rC)r?r�r�rWr[rMs&    @r3�)testForExceptionsRaisedInInstanceGetattr2�4ClassTests.testForExceptionsRaisedInInstanceGetattr2@s����	)�	�	�	J�
�C�E�E�
	$�	$�	��q�s�
�	&�	&�	C�
�C�
�I�I�A�B��#�	J��1�v����	�	�D�q�H�I���	J���	��	�s;�A)�B)�)	B&�3B&�4B!�B!�!B&�)	B8�3B8�7B8c���UO[29^tt^2V6PPP2UO[29^tt^2V6�PPP2UO[29^tt^2V6*PPP2UO[29^tt^2V6�PPP2P!)%fhK�9h)%fhKy9h)%fhKb9h)%fhP!9hr,)r�r�)r?r��bs&&&r3�assertNotOrderable�ClassTests.assertNotOrderable]s���
�
�
�y�
)�
)�
�E�*�
�
�
�y�
)�
)�
�E�*�
�
�
�y�
)�
)�
�F�*�
�
�
�y�
)�
)�
�F�*�
)�
*�
)��
)�
)��
)�
)��
)�
)�
)�sG�B,�	B?�3C�C%�,B<	�5B<	�?C	�C	�C"	�C"	�%C6	�.C6	c��QQ2oQQU2oU]2oU]2oUOUOUO6H2UOUOUO6g2UOUOUO6H2UOUOUO6g2UOUOUO6H2UOUOUO6g2UO	UOUO2UO[
UO2[
UO22UOUOUO6H2UOUOUO6g2UOUOUO6H2UOUOUO6g2UOUOUO6H2UOUOUO6g2UO	UOUO2UO[
UO2[
UO22U[
UO2P*2o[
UO2P!)c�@`�\sQsQsnQsQsQsQsQsQs	Us
P!)�1ClassTests.testHashComparisonOfMethods.<locals>.A�ic��VmP!r,r�r�s&&r3rI�:ClassTests.testHashComparisonOfMethods.<locals>.A.__init__js���r6c��P!r,r7r>s&r3r2�3ClassTests.testHashComparisonOfMethods.<locals>.A.fl���r6c��P!r,r7r>s&r3�g�3ClassTests.testHashComparisonOfMethods.<locals>.A.gnrjr6c��P	!)Tr7rs&&r3r��8ClassTests.testHashComparisonOfMethods.<locals>.A.__eq__pr�r6c��[gr,)r�r>s&r3r��:ClassTests.testHashComparisonOfMethods.<locals>.A.__hash__rs���r6r�)r/rsrtrurIr2rlr�r�rvr�r�s@r3r�rdis#����
�
�
�
�
 �
 r6r�c��\sQsQsQsP!)�1ClassTests.testHashComparisonOfMethods.<locals>.B�tr7rrr7r6r3�Brstr�r6ru)r3r2r9rlr`r�r�)r?r�ru�a1�a2r�s&     r3�testHashComparisonOfMethods�&ClassTests.testHashComparisonOfMethodsgs���
	 �
	 �	��	��q�T��
�q�T������������%�����������&�����������&�����������%�����������&�����������%�������b�d�d�+�����b�d�d��T�"�$�$�Z�0�����������%�������r�t�t��$�����������$�������q�s�s�
�#�������q�s�s�
�#�����������$�������Q�S�S�)�����a�c�c��D����I�.�
�d�1�3�3�i��n����Q�S�S�	r6c���QQ2oQo[QQ2oUOUQ2[OVU2UO	U2]*Q2[QQ2oUOUQ2UOVC2[OV2UO
[29^tt^2U2]*PPP2P!)%fhP!9h)c��\sQsQsQsP!)�2ClassTests.testSetattrWrapperNameIntern.<locals>.A�r7rrr7r6r3r�r|�r�r6r�c��Q!)�summar7rs&&r3r�4ClassTests.testSetattrWrapperNameIntern.<locals>.add�s��r6s__add__�asciirNr)r��assertIsNot�typer�r�r�r�r�)r?r�rr>�name2s&    r3�testSetattrWrapperNameIntern�'ClassTests.testSetattrWrapperNameIntern�s���	�	�	��:�w�'������y�)�����#�&������q��'�*��J��(������	�*�����%�����"�
�
�
�y�
)�
)�
�C�!�G�*�
)�
)�
)�s�C�C,	�$C,	c��QQ2oUO[29^tt^2[OUQP2PPP2P!)%fhP!9h)c��\sQsQsQsP!)�.ClassTests.testSetattrNonStringName.<locals>.A�r7rrr7r6r3r�r��r�r6r��x)r�r�r�r�)r?r�s& r3�testSetattrNonStringName�#ClassTests.testSetattrNonStringName�s@��	�	��
�
�y�
)�
)����Q��d�+�*�
)�
)�
)�s�A�A	�A	c�&�QQ2oQoUO[U29^tt^2UOPPP2UO[U29^tt^2U;PPP2P!)%fhK;9h)%fhP!9h)c��\sQsQsQsP!)�:ClassTests.testTypeAttributeAccessErrorMessages.<locals>.A�r7rrr7r6r3r�r��r�r6r�z$type object 'A' has no attribute 'x')�assertRaisesRegexrNr�)r?r��	error_msgs&  r3�$testTypeAttributeAccessErrorMessages�/ClassTests.testTypeAttributeAccessErrorMessages�se��	�	�;�	�
�
#�
#�N�I�
>�
>�
�C�C�?�
�
#�
#�N�I�
>�
>���?�
>�?�
>��
>�
>�
>�s#�
A,�A?�,A<	�5A<	�?B	�B	c���QQ2oQQ2oQQ2oQoUO[U29^tt^2U2OPPP2UO[U29^tt^2U2;PPP2QoUO[U29^tt^2U2OPPP2UO[U29^tt^2U2;PPP2UO[Q29^tt^2]U2mPPP2UO[Q	29^tt^2]U2mPPP2Q
oUO[U29^tt^2U2;PPP2UO[U29^tt^2]U2mPPP2QoUO[U29^tt^2U2OPPP2UO[U29^tt^2U2;PPP2P!)%fhCK�9h)%fhCK�9h)%fhCK�9h)%fhCK�9h)%fhCKa9h)%fhCKB9h)%fhCK&9h)%fhCK9h)%fhK�9h)%fhP!9h)c��\sQsQsQsP!)�<ClassTests.testObjectAttributeAccessErrorMessages.<locals>.A�r7rrr7r6r3r�r��r�r6r�c� �\sQsQs]sQsQsP!)�<ClassTests.testObjectAttributeAccessErrorMessages.<locals>.B�r7)�z)r/rsrtru�y�	__slots__rvr7r6r3rur��s���A��Ir6ruc�D``�\sQsQsnQsU1QkU1QkksQsUsU9s!)�<ClassTests.testObjectAttributeAccessErrorMessages.<locals>.C�c� :�U]6�cPgQP-!)r~�returnr7)r8r�s"�r3�__annotate__�UClassTests.testObjectAttributeAccessErrorMessages.<locals>.C.__setattr__.__annotate__�s���
5�
5�$�
5r6c�Z:�UQ6Xc[RU_Q]2P![RU_V2P!)r�r�)�superr�)r?r>�valuer$s&&&�r3r��HClassTests.testObjectAttributeAccessErrorMessages.<locals>.C.__setattr__�s&����3�;��G�'��Q�/��G�'��4r6r7)r�)	r/rsrtrur�r�rvr��
__classcell__�r$r�s@@r3�Cr��s�����I�
5�
5�
5r6r�z'A' object has no attribute 'x'z'B' object has no attribute 'x'zJ'B' object has no attribute 'x' and no __dict__ for setting new attributesz'C' object has no attribute 'x'z%'B' object attribute 'y' is read-onlyr�)r�rNr�r�r�)r?r�rur�r�s&    r3�&testObjectAttributeAccessErrorMessages�1ClassTests.testObjectAttributeAccessErrorMessages�s��	�	�	�	�	5�	5�6�	�
�
#�
#�N�I�
>�
>�
�C�E�E�?�
�
#�
#�N�I�
>�
>����?�6�	�
�
#�
#�N�I�
>�
>�
�C�E�E�?�
�
#�
#�N�I�
>�
>����?�
�
#�
#��X�
�
��A�C�E�	
�
�
#�
#��-�
�
��A�C�E�	
�<�	�
�
#�
#�N�I�
>�
>����?�
�
#�
#�N�I�
>�
>��A�C�E�?��	�
�
#�
#�N�I�
>�
>�
�C�E�E�?�
�
#�
#�N�I�
>�
>����?�
>�=?�
>�
>��
>�
>�
>��?�
>�
>��
>�
>�
>��
�
�
��

�
�
��?�
>�
>��
>�
>�
>��?�
>��
>�
>�
>�s��H#�8H7�(I� I�
I3�
J�6J�$
J/�K�K�#H4	�,H4	�7I	�I	�I	�I	�I0	�(I0	�3J	�<J	�J	�J	�J,	�$J,	�/K	�8K	�K	�K	�K'	�K'	c�n�QQ2oQoUO[Q29^tt^2U]*2PPP2UO[Q29^tt^2UOU]*2PPP2UO[U29^tt^2U2O]*2PPP2UO[Q29^tt^2[OU]*2PPP2UO[U29^tt^2[OU2]*2PPP2QQ2oQoUO[U29^tt^2U]*2PPP2UO[U29^tt^2UOU]*2PPP2UO[U29^tt^2[OU]*2PPP2QQ2oQ	oUO[U29^tt^2U2O]*2PPP2UO[U29^tt^2[OU2]*2PPP2P!)%fhCKD9h)%fhCK9h)%fhCK�9h)%fhCK�9h)%fhCK�9h)%fhCKx9h)%fhCKS9h)%fhCK*9h)%fhK�9h)%fhP!9h)
c��\sQsQsQsP!)�2ClassTests.testConstructorErrorMessages.<locals>.C��r7rrr7r6r3r�r��r�r6r�zHC.__init__\(\) takes exactly one argument \(the instance to initialize\)zC\(\) takes no argumentsc�@``�\sQsQsnU1QksU1QksQsUsU9s!)�2ClassTests.testConstructorErrorMessages.<locals>.D�c�4:�[RU_U,UN3-U@P!r,)r�r,)�clsr0r1r$s&*,�r3r,�:ClassTests.testConstructorErrorMessages.<locals>.D.__new__s�������5�d�5�f�5r6c�,:�[RU_U-U@P!r,�r�rI�r?r0r1r$s&*,�r3rI�;ClassTests.testConstructorErrorMessages.<locals>.D.__init__������ �$�1�&�1r6r7)	r/rsrtrur,rIrvr�r�r�s@@r3�Dr��s����
6�
2�
2r6r�zIobject.__new__\(\) takes exactly one argument \(the type to instantiate\)c�4``�\sQsQsnU1QksQsUsU9s!)�2ClassTests.testConstructorErrorMessages.<locals>.E�c�,:�[RU_U-U@P!r,r�r�s&*,�r3rI�;ClassTests.testConstructorErrorMessages.<locals>.E.__init__r�r6r7)r/rsrtrurIrvr�r�r�s@@r3rWr�s����
2�
2r6rWzMobject.__init__\(\) takes exactly one argument \(the instance to initialize\))r�r�r,rIr1)r?r�r�r�rWs&    r3�testConstructorErrorMessages�'ClassTests.testConstructorErrorMessages�s:��	�	�`�	�
�
#�
#�I�/J�
K�
K�
�b�E�L��
#�
#�I�/J�
K�
K�
�I�I�a���L��
#�
#�I�y�
9�
9�
�C�L�L���:��
#�
#�I�/J�
K�
K��N�N�1�b�!�L��
#�
#�I�y�
9�
9��O�O�A�C��$�:�	2�	2�b�	�
�
#�
#�I�y�
9�
9�
�b�E�:��
#�
#�I�y�
9�
9�
�I�I�a���:��
#�
#�I�y�
9�
9��N�N�1�b�!�:�	2�	2�e�	�
�
#�
#�I�y�
9�
9�
�C�L�L���:��
#�
#�I�y�
9�
9��O�O�A�C��$�:�
9�WL�
K�
K��L�
K�
K��:�
9�
9��L�
K�
K��:�
9�
9��:�
9�
9��:�
9�
9��:�
9�
9��:�
9��:�
9�
9�s��	I0�J�J�J,�K�	K�K(�K<�
L�
L#�0J	�9J	�J	�
J	�J)	�!J)	�,J=	�5J=	�K	�	K	�K%	�K%	�(K9	�1K9	�<L
	�L
	�L 	�L 	�#L4	�,L4	c�n�QQ[2oQU-oQQ1-U@oUOUQ	-12QQ]]]]]]]]1
-U@oUOU[[]22-12QQ],[]]2N3-U@QQ-@oUOU[[]22QQ-12P!)
c�.`�\sQsQsnQsQsQsUsP!)�-ClassTests.testClassWithExtCall.<locals>.Meta�c��P!r,r7)r0r1s*,r3rI�6ClassTests.testClassWithExtCall.<locals>.Meta.__init__rjr6c�
�V$1!r,r7)r�r>�bases�attrsr1s&&&&,r3r,�5ClassTests.testClassWithExtCall.<locals>.Meta.__new__"s
���}�$r6r7)r/rsrtrurIr,rvr�r�s@r3�Metar�s����
�
%�
%r6r��	metaclassc��\sQsQsQsP!)�*ClassTests.testClassWithExtCall.<locals>.A�'r7rrr7r6r3r�r�'s��dr6r�c��\sQsQsQsP!)r��)r7rrr7r6r3r�r�)s��dr6c��\sQsQsQsP!)r��+r7rrr7r6r3r�r�+s��$r6rJ�barr7)r�r��tuple�range)r?r��dr�s&   r3�testClassWithExtCall�ClassTests.testClassWithExtCalls���	%�3�	%��$����!������R��H�%�2��1�a��A�q�!�Q�2�!�2�����U�5��8�_�b�1�2�6��6�E�!�Q�K�6�1�6�%�6�����U�5��8�_�u�e�n�=�>r6c�2`�U1QkQ2nUO[29^tt^2R2PPP2U1QkoUO[29^tt^2U2PPP2P!)%fhKE9h)%fhP!9h)c�0:`�\sQsQsnU1QksQsUsP!)�1ClassTests.testClassCallRecursionLimit.<locals>.C�/c�":�R2UmP!r,�r<)r?r�s&�r3rI�:ClassTests.testClassCallRecursionLimit.<locals>.C.__init__0s������r6r�r�)r�r�s@�r3r�r�/s����
�
r6r�c�:�R2P!r,r7)r�s�r3�
add_one_level�=ClassTests.testClassCallRecursionLimit.<locals>.add_one_level6s���
�Cr6)r�rG)r?r�r�s& @r3�testClassCallRecursionLimit�&ClassTests.testClassCallRecursionLimit.sd���	�	��
�
�~�
.�
.�
�C�/�	��
�
�~�
.�
.��O�/�
.�/�
.��/�
.�
.�s#�A2� B�2B	�;B	�B	�B	c�`�]nU1QkQ[2oQQUQ5o[]d2FDoUU2J
	UOR]d2P!)rc�0:`�\sQsQsnU1QksQsUsP!)�?ClassTests.testMetaclassCallOptimization.<locals>.TypeMetaclass�@c�N:�R]*
n[OU,UN3-U@!r�)r�r#)r�r0r1�callss&*,�r3r#�HClassTests.testMetaclassCallOptimization.<locals>.TypeMetaclass.__call__As%�����
���}�}�S�:�4�:�6�:�:r6r7)r/rsrtrur#rvr�)r�r�s@�r3�
TypeMetaclassr�@s����
;�
;r6r�c�(`�\sQsQsnQsQsUsP!)�6ClassTests.testMetaclassCallOptimization.<locals>.Type�Fc��VmP!r,��_obj)r?�objs&&r3rI�?ClassTests.testMetaclassCallOptimization.<locals>.Type.__init__Gs���	r6r�r�r�s@r3�Typer�Fs����
 �
 r6r�)r�)r�r�r�)r?r�r��ir�s&   @r3�testMetaclassCallOptimization�(ClassTests.testMetaclassCallOptimization=sG�����	;�D�	;�	 �]�	 ��s��A���G�������$r6c�b�QQ2o[]2FDoU2J
	P!J9h)c�(`�\sQsQsnQsQsUsP!)�CClassTests.test_specialization_class_call_doesnt_crash.<locals>.Foo�Qc��P!r,r7)r?�args&&r3rI�LClassTests.test_specialization_class_call_doesnt_crash.<locals>.Foo.__init__Rrjr6r7r�r�s@r3�FoorQs����
�
r6r)r�)r?r�_s&  r3�+test_specialization_class_call_doesnt_crash�6ClassTests.test_specialization_class_call_doesnt_crashNs0��	�	��q��A�
�����
��s�)�.r7)%r/rsrtrur@rFrKrlr�r�r�r�r�r�r�rrAr�skip_if_huge_c_stack�skip_emscripten_stack_overflow�skip_wasi_stack_overflowrHr\r`rxrr�r�r�r�r�r�r�r�r	rvr�r�s@r3r;r;�s������8�5�u:�nGE�R9�4-8�`F�<+�
:�<�$1�11�f
�!�!�#��+�+�-��%�%�'�
8�(�.�$�
8�C�:�&�P����(,��/�b5%�n?�"
�%�"�r6r;)�has_inline_valuesc��\sQsQsQsQsP!)�
NoManagedDict�ar7�r�)r/rsrtrur�rvr7r6r3rras���Ir6rc��\sQsQsQsP!)�Plain�er7rrr7r6r3rre���r6rc�(`�\sQsQsnQsQsUsP!)�	WithAttrs�ic�@�]Um]Um]Um]UmP!r��r�r_r<r�r>s&r3rI�WithAttrs.__init__ks�������������r6rr�r�s@r3rris�����r6rc��\sQsQsQsP!)�VarSizedSubclass�rr7rrr7r6r3rrrrr6rc�`�\sQsQsnQsQsQsQsQsQs	Qs
\Q	2sQ
s
QsQsQ
sQsQsQs\O*Q2sQsUsP!)�TestInlineValues�vc���[OoUOU[*]2UOU[*]2UO[
[222P!�r)r�	__flags__r��Py_TPFLAGS_MANAGED_DICT�Py_TPFLAGS_INLINE_VALUESr9r�r?�flagss& r3�test_no_flags_for_slots_class�.TestInlineValues.test_no_flags_for_slots_classxsO���'�'������!8�8�!�<�����!9�9�1�=����*�=�?�;�<r6c
��[[1FD�oUOUOQ59^tt^2UOoUOU[*[2UOU[*[2UO[U222PPP2J�	P!)%fhJ�9h))r�)
rrr2r/r%r�r&r'r3r)r?r�r)s&  r3�!test_both_flags_for_regular_class�2TestInlineValues.test_both_flags_for_regular_class~s����9�%�C����#�,�,��/�/��
�
��� � ��)@�!@�BY�Z�� � ��)A�!A�C[�\���� 1�#�%� 8�9�	0�/�&�/�/�/�s�A.B2	�2C
�;C
c���[OoUOU[*[2UOU[*]2UO[
[222P!r$)rr%r�r&r'r9rr(s& r3�,test_managed_dict_only_for_varsized_subclass�=TestInlineValues.test_managed_dict_only_for_varsized_subclass�sR�� �*�*������!8�8�:Q�R�����!9�9�1�=����*�+;�+=�>�?r6c��[2oUO[U22U;UO	[U22P!r,)rr3r�__dict__r9)r?r<s& r3�test_has_inline_values�'TestInlineValues.test_has_inline_values�s4���G�����)�!�,�-�
�J����*�1�-�.r6c��UO[[222UO[[222P!r,)r3rrrr>s&r3�test_instances�TestInlineValues.test_instances�s*�����)�%�'�2�3����)�)�+�6�7r6c��[[1FD0oU2oUOUO[	U22J2	P!r,)rrr3r3r)r?r�r<s&  r3�test_inspect_dict�"TestInlineValues.test_inspect_dict�s1���9�%�C���A�
�J�J��O�O�-�a�0�1�&r6c��Q]Q]-o[[1FD?oU2oUOOU2UO	[U22JA	P!)�er2)rrr3�updater3r)r?r�r�r<s&   r3�test_update_dict�!TestInlineValues.test_update_dict�sJ���1�c�1����9�%�C���A�
�J�J���a� ��O�O�-�a�0�1�&r6c�N�[]d2FDo[UQU0U2J	P!�r�r�)r��setattr)r�r�s& r3�set_100�TestInlineValues.set_100�s"���s��A��C�1�Q�C��!�$�r6c	�l�[]d2FD"oUO[UQU02U2J$	P!rB)r�r�r5)r?r�r�s&& r3�	check_100�TestInlineValues.check_100�s-���s��A����W�S�A�a�S�'�2�A�6�r6c��QQ2oU2oUO[U22UOU2UO[U22UO	U2U2oUO[U22P!)c��\sQsQsQsP!)�0TestInlineValues.test_many_attributes.<locals>.C�r7rrr7r6r3r�rK����r6r�)r3rrDr9rG)r?r�r<s&  r3�test_many_attributes�%TestInlineValues.test_many_attributes�sd���
�
�C�����)�!�,�-����Q�����*�1�-�.����q��
�C�����)�!�,�-r6c���QQ2oU2oUOoUO[U22UOU2UO	[U22UOU2P!)c��\sQsQsQsP!)�:TestInlineValues.test_many_attributes_with_dict.<locals>.C�r7rrr7r6r3r�rR�rMr6r�)r3r3rrDr9rG)r?r�r<r�s&   r3�test_many_attributes_with_dict�/TestInlineValues.test_many_attributes_with_dict�sT���
�
�C��
�J�J�����)�!�,�-����Q�����*�1�-�.����q�r6c��QQ2oU2oUOUO-2PUmUOUOQP-2P!)c�(`�\sQsQsnQsQsUsP!)�+TestInlineValues.test_bug_117750.<locals>.C�c�<�UOO2P!r,)r3�clearr>s&r3rI�4TestInlineValues.test_bug_117750.<locals>.C.__init__�s���
�
�#�#�%r6r7r�r�s@r3r�rX�s����
&�
&r6r�rJ)r�r3rJ)r?r�r�s&  r3�test_bug_117750� TestInlineValues.test_bug_117750�sH��	&�	&��c��������r�*�����������d�|�4r6c�t�QQ2oU2oU;]UmUOUO]2P!)c��\sQsQsQsP!)�:TestInlineValues.test_store_attr_deleted_dict.<locals>.Foo��r7rrr7r6r3rra�r�r6r)r3r�r�)r?rr2s&  r3�test_store_attr_deleted_dict�-TestInlineValues.test_store_attr_deleted_dict�s5��	�	�
�E��
�J����������a� r6c�$�QQ2oU2o]UOQ$U;QQ[2oUO[V#Q222QQ2oVBmUOV$2UO
UO-2P!)c��\sQsQsQsP!)�<TestInlineValues.test_rematerialize_object_dict.<locals>.Foo��r7rrr7r6r3rrg����4r6rr�c��\sQsQsQsP!)�DTestInlineValues.test_rematerialize_object_dict.<locals>.StrSubclass��r7rrr7r6r3�StrSubclassrk�s��r6rmc��\sQsQsQsP!)�<TestInlineValues.test_rematerialize_object_dict.<locals>.Bar��r7rrr7r6r3�Barro�rir6rq)r3r�r9r:r$�assertIsInstancer�)r?rr2rmrqs&    r3�test_rematerialize_object_dict�/TestInlineValues.test_rematerialize_object_dict�su��	���E����
�
�6��
�J�	%�#�$������K��$7�8�9�	�������a�%�������R�(r6c�```�UU1QkQ2nU1QkQ2nROROR2RmR2RmP!)c�2:`�\sQsQsnUU1QksQsUsP!)�6TestInlineValues.test_store_attr_type_cache.<locals>.X��c�h:�ROoROUROQ*2P!r)r�r�r3)�
inner_self�vr�r?s& ��r3r��>TestInlineValues.test_store_attr_type_cache.<locals>.X.__del__�s$����C�C��� � ��A�J�J�s�O�4r6r7r�)r�r�r?s@��r3�Xrw�s����
5�
5r6r}c�*:�\sQsQsY2sQsP!)�6TestInlineValues.test_store_attr_type_cache.<locals>.C��r7)r/rsrtrur�rv)r}s�r3r�r�s
�����Ar6r�r)r?r�r}sf@@r3�test_store_attr_type_cache�+TestInlineValues.test_store_attr_type_cache�s;���	5�	5�
	�	�	
���	����c����c��r6c���Qo[OQU2vq#oUOU]2UOV3O	Q2Q5UOVDO	Q2Q5P!)aTif 1:
            import test.support
            import _testcapi

            class A:
                def __init__(self):
                    self.a = 1
                    self.b = 2
            a = A()
            d = a.__dict__
            with test.support.catch_unraisable_exception() as ex:
                _testcapi.set_nomemory(0, 1)
                del a
                assert ex.unraisable.exc_type is MemoryError
            try:
                d["a"]
            except KeyError:
                pass
            else:
                assert False, "KeyError not raised"
        z-czutf-8)�msg)r�assert_python_okr�r9�decode)r?�code�rc�out�errs&    r3�'test_detach_materialized_dict_no_memory�8TestInlineValues.test_detach_materialized_dict_no_memory�se����*%�5�5�d�D�A��������Q������*�*�W�"5��6�����*�*�W�"5��6r6r7)r/rsrtrur*r-r0r4r7r:r?�staticmethodrDrGrNrTr]rcrsr�r�	nomemtestr�rvr�r�s@r3r!r!vsz����=�:�@�/�8�2�2��%��%�7�.��	5�!�)�$�&
���7��7r6r!�__main__)"�unittest�testr�test.supportrrr�	testmethsr-r8�statictests�method_templater��exec�globals�methodr�r1r9�
thread_unsafe�TestCaser;�_testinternalcapirr'r&rrrr�rr!r/�mainr7r6r3�<module>r�s�����C�C�-
�
�-
��	-
�

�-
��
-
�
�-
��-
�
�-
��-
��-
��-
��-
��-
�
�-
� �!-
�"
�#-
�$�%-
�&
�'-
�(�)-
�*
�+-
�,�--
�.
�/-
�0�1-
�2
�3-
�4�5-
�6	�7-
�8
�9-
�:
�;-
�<�=-
�B�C-
�D�E-
�F�G-
�H�I-
�N
�O-
�P
�Q-
�R
�S-
�X�Y-
�	�v
���0��h�����[�'�)�Q���F���6�	!�7�9�a�0���
�V�I�q�)���{�F�O����:�;�N��"�"�N�<�N�b0�"��!����	�	���	�u�	�\7�x�(�(�\7�|�z���M�M�O�r6

Youez - 2016 - github.com/yon3zu
LinuXploit