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_class.cpython-315.opt-1.pyc
R
>lqjTxc�r�Qs]PHs]QHGs]QHGsGsGs,QMQMQMQMQMQMQ	MQ
MQMQMQ
MQMQMQMQMQMQMQMQMQMQMQMQMQMQMQMQMQMQMQ MQ!MQ"MQ#MQ$MQ%MQ&Ms,s	Q's
Q(sQ)s-s
\\\2\
2\FDs\\\*\2\
2J	\Q*\1\
2s?
???\O(Q+2Q,Q-\O*22s]Q.H\Gs]s]sQ/Q02sQ1Q22sQ3Q42sQ5Q6\2sQ7Q8\O*2s \!Q96Xc\OD2P!P!):z@Test the functionality of Python classes implementing operators.)�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�)�*��$�!�&�!�!��)r1r3sf r2�	trackCallr7Cs���"��Lr5a�
@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&r2�setUp�ClassTests.setUp�s�����
r5c�d�[Q*oV6wcUOQU8QU802P!P!)r<zExpected call list:
  z#
does not match actual call list
  )r,�fail)r>�expected_calls�actualCallLists&& r2�assertCallStack�ClassTests.assertCallStack�s,�� �����+��I�I�%�~�7�
8�,r5c�F�[2oUOQU11,2P!)�__init__)r8rE)r>�foos& r2�testInit�ClassTests.testInit�s!���j�����z�C�6�2�3�4r5c���[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__)r8r,rEr�r>�testmes& r2�
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�9r5c��[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�r6�r.�
__module__�__qualname__�__firstlineno__�__static_attributes__r6r5r2�Emptyros��Tr5rvz$failed, should have raised TypeErrorr<�__contains__�__getitem__�__setitem__�__delitem__�N�*Nz
The Answer:���
r~zA lot�Strange)r{.:N�Nr��d)r8rB�	TypeErrorr,rE�slice�Ellipsis)r>rjrvs&  r2�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__)r8r,rEr'�int�float�oct�hexris& r2�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�8r5c�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__)r8r,�hashrE�repr�strris& r2�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�7r5c��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!)�SomeValr6�r>r/s&*r2�__getattr__�;ClassTests.testGetSetAndDel.<locals>.ExtraTests.__getattr__�s�� r5c��P!r+r6r�s&*r2�__setattr__�;ClassTests.testGetSetAndDel.<locals>.ExtraTests.__setattr__����r5c��P!r+r6r�s&*r2�__delattr__�;ClassTests.testGetSetAndDel.<locals>.ExtraTests.__delattr__�r�r5r6)
r.rrrsrtr7r�r�r�ru�__classdictcell__��
__classdict__s@r2�
ExtraTestsr��s?����
�
!��
!��
��
��
��
r5r�r<r��spamzspam, spam, spam and hamr��eggsr��cardinal)r8r,r�rEr�r�)r>r�rjs&  r2�testGetSetAndDel�ClassTests.testGetSetAndDel�s���	��	�������
�������}�v�v�.>�?�@�A����
�0������}�v�v�/I�/K�L�M�	N����
��O����}�v�z�.B�C�D�Er5c�$�]PHo[OQ2oQQ2oU2oUOUO	UQ2]2UOUO	UQ2]2UOUO
22P!)��_testlimitedcapic�(`�\sQsQsnQsQsUsP!)�'ClassTests.testHasAttrString.<locals>.A��c��]UmP!����attrr=s&r2rH�0ClassTests.testHasAttrString.<locals>.A.__init__�s	����	r5r��r.rrrsrtrHrur�r�s@r2�Ar��s����
�
r5r�sattrsnoattr)�sysr�
import_module�assertEqual�object_hasattrstring�assertIsNone�	exception)r>r�r�r��as&    r2�testHasAttrString�ClassTests.testHasAttrString�sz���(�6�6�7I�J��	�	�
�C�����)�>�>�q�'�J�A�N����)�>�>�q�)�L�a�P����#�-�-�/�*r5c�`�,nU1QkQ2oU2o=]PHoUO2UOQ,R2P!)c�0:`�\sQsQsnU1QksQsUsP!)�#ClassTests.testDel.<locals>.DelTest��c�,:�ROQ2P!)�crab people, crab people)r-�r>�xs&�r2�__del__�+ClassTests.testDel.<locals>.DelTest.__del__�s������3�4r5r6�r.rrrsrtr�rur�)r�r�s@�r2�DelTestr��s����
5�
5r5r�r�)�gc�collectr�)r>r�rjr�r�s&   @r2�testDel�ClassTests.testDel�s>�����	5�	5������
�
�
�����4�5�q�9r5c
���QQ2oQo[[[[[[
[[[U1
FDoUO[V122J 	P!)c�D`�\sQsQsnQs\s\s\s\s\s	\s
\sQsUs
P!)�4ClassTests.testBadTypeReturned.<locals>.BadTypeClass��c��P!r+r6r=s&r2r��<ClassTests.testBadTypeReturned.<locals>.BadTypeClass.__int__����r5r6)r.rrrsrtr�r��__complex__r�r��	__bytes__�__bool__r�rur�r�s@r2�BadTypeClassr��s-����
��I�!�K��G��H��I��H��Ir5r�c��,U*!r+r6�r�s&r2�index�-ClassTests.testBadTypeReturned.<locals>.index�s���a�5�Lr5)r��complexr�r��bytes�binr�r��bool�assertRaisesr�)r>r�r�r1s&   r2�testBadTypeReturned�ClassTests.testBadTypeReturned�sG��		 �		 �	���#�t�U�C��c�4��O�A����i��L�N�;�Pr5c��QQ2o[U22QQ2oUO[[U22P!)c��\sQsQsQsP!)�$ClassTests.testHashStuff.<locals>.C0��r6rqr6r5r2�C0r�����r5r�c�(`�\sQsQsnQsQsUsP!)�$ClassTests.testHashStuff.<locals>.C2�c��]!r�r6�r>�others&&r2r��+ClassTests.testHashStuff.<locals>.C2.__eq__�s��Ar5r6)r.rrrsrtr�rur�r�s@r2�C2r��s����-�-r5r)r�r�r�)r>r�rs&  r2�
testHashStuff�ClassTests.testHashStuff�s7��	�	�	
�R�T�
�	.�	.�	
���)�T�2�4�0r5c
�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�r6rqr6r5r2�Customr
�r�r5rr��
__aenter__�	__aexit__�	__aiter__�	__anext__�	__await__r�r��__ceil__r�rwr��
__delete__rzr[�	__enter__�__exit__r��	__floor__�__get__r�rxr�r��
__invert__�__iter__�__len__�__length_hint__�__missing__r��__next__�__objclass__r�r\�__reversed__�	__round__�__set__ry�	__trunc__z__{}__z__r{}__z__i{}__�__call__)�	__class__r��__dir__r��
__format__�__ge__�__getattribute__�__getstate__r�r�rH�__init_subclass__�__le__r�r��__new__�
__reduce__�
__reduce_ex__r�r��
__sizeof__r��__subclasshook__)rrrrrrr	rrrr
r)
�object�subTest�
assertTrue�callable�getattr�extend�map�format�assertFalse�hasattr)r>�or�c�methods�name�not_defined�augments&       r2�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�4r6rqr6r5r2r�rE4r�r5r�zFailed to raise RecursionError)r#rB�RecursionError)r>r�r�s&  r2�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&r2rM�BClassTests.testForExceptionsRaisedInInstanceGetattr2.<locals>.boohCs
�� ��(�(r5c�,:�\sQsQs\Y2sQsP!)�?ClassTests.testForExceptionsRaisedInInstanceGetattr2.<locals>.A�Fr6)r.rrrsrt�propertyr�rurLs�r2r�rQFs������Ar5r�rMz(attribute error for A().a got masked: %sc�,:�\sQsQs\Y2sQsP!)�?ClassTests.testForExceptionsRaisedInInstanceGetattr2.<locals>.E�Nr6)r.rrrsrtrSr�rurLs�r2�ErUNs����d�^�Fr5rWc�,:�\sQsQs\Y2sQsP!)�?ClassTests.testForExceptionsRaisedInInstanceGetattr2.<locals>.I�Rr6)r.rrrsrtrSrHrurLs�r2�IrYRs�����~�Hr5r[z)attribute error for I.__init__ got masked)r�rNr�rB)r>r�r�rWr[rMs&    @r2�)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&&&r2�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&&r2rH�:ClassTests.testHashComparisonOfMethods.<locals>.A.__init__js���r5c��P!r+r6r=s&r2r1�3ClassTests.testHashComparisonOfMethods.<locals>.A.fl���r5c��P!r+r6r=s&r2�g�3ClassTests.testHashComparisonOfMethods.<locals>.A.gnrjr5c��P	!)Tr6rs&&r2r��8ClassTests.testHashComparisonOfMethods.<locals>.A.__eq__pr�r5c��[gr+)r�r=s&r2r��:ClassTests.testHashComparisonOfMethods.<locals>.A.__hash__rs���r5r�)r.rrrsrtrHr1rlr�r�rur�r�s@r2r�rdis#����
�
�
�
�
 �
 r5r�c��\sQsQsQsP!)�1ClassTests.testHashComparisonOfMethods.<locals>.B�tr6rqr6r5r2�Brstr�r5ru)r3r1r9rlr`r�r�)r>r�ru�a1�a2r�s&     r2�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�	r5c���QQ2oQo[QQ2oUOUQ2[OVU2UO	U2]*Q2[QQ2oUOUQ2UOVC2[OV2UO
[29^tt^2U2]*PPP2P!)%fhP!9h)c��\sQsQsQsP!)�2ClassTests.testSetattrWrapperNameIntern.<locals>.A�r6rqr6r5r2r�r|�r�r5r�c��Q!)�summar6rs&&r2r�4ClassTests.testSetattrWrapperNameIntern.<locals>.add�s��r5s__add__�asciirMr)r��assertIsNot�typer�r�r�r�r�)r>r�rr>�name2s&    r2�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�r6rqr6r5r2r�r��r�r5r��x)r�r�r�r�)r>r�s& r2�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�r6rqr6r5r2r�r��r�r5r�z$type object 'A' has no attribute 'x')�assertRaisesRegexrNr�)r>r��	error_msgs&  r2�$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�r6rqr6r5r2r�r��r�r5r�c� �\sQsQs]sQsQsP!)�<ClassTests.testObjectAttributeAccessErrorMessages.<locals>.B�r6)�z)r.rrrsrt�y�	__slots__rur6r5r2rur��s���A��Ir5ruc�D``�\sQsQsnQsU1QkU1QkksQsUsU9s!)�<ClassTests.testObjectAttributeAccessErrorMessages.<locals>.C�c� :�U]6�cPgQP-!)r}�returnr6)r8r�s"�r2�__annotate__�UClassTests.testObjectAttributeAccessErrorMessages.<locals>.C.__setattr__.__annotate__�s���
5�
5�$�
5r5c�Z:�UQ6Xc[RU_Q]2P![RU_V2P!)r�r�)�superr�)r>r>�valuer$s&&&�r2r��HClassTests.testObjectAttributeAccessErrorMessages.<locals>.C.__setattr__�s&����3�;��G�'��Q�/��G�'��4r5r6)r�)	r.rrrsrtr�r�rur��
__classcell__�r$r�s@@r2�Cr��s�����I�
5�
5�
5r5r�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&    r2�&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��r6rqr6r5r2r�r��r�r5r�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,)�clsr/r0r$s&*,�r2r,�:ClassTests.testConstructorErrorMessages.<locals>.D.__new__s�������5�d�5�f�5r5c�,:�[RU_U-U@P!r+�r�rH�r>r/r0r$s&*,�r2rH�;ClassTests.testConstructorErrorMessages.<locals>.D.__init__������ �$�1�&�1r5r6)	r.rrrsrtr,rHrur�r�r�s@@r2�Dr��s����
6�
2�
2r5r�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&*,�r2rH�;ClassTests.testConstructorErrorMessages.<locals>.E.__init__r�r5r6)r.rrrsrtrHrur�r�r�s@@r2rWr�s����
2�
2r5rWzMobject.__init__\(\) takes exactly one argument \(the instance to initialize\))r�r�r,rHr1)r>r�r�r�rWs&    r2�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+r6)r/r0s*,r2rH�6ClassTests.testClassWithExtCall.<locals>.Meta.__init__rjr5c�
�V$1!r+r6)r�r>�bases�attrsr0s&&&&,r2r,�5ClassTests.testClassWithExtCall.<locals>.Meta.__new__"s
���}�$r5r6)r.rrrsrtrHr,rur�r�s@r2�Metar�s����
�
%�
%r5r��	metaclassc��\sQsQsQsP!)�*ClassTests.testClassWithExtCall.<locals>.A�'r6rqr6r5r2r�r�'s��dr5r�c��\sQsQsQsP!)r��)r6rqr6r5r2r�r�)s��dr5c��\sQsQsQsP!)r��+r6rqr6r5r2r�r�+s��$r5rI�barr6)r�r��tuple�range)r>r��dr�s&   r2�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�=�>r5c�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&�r2rH�:ClassTests.testClassCallRecursionLimit.<locals>.C.__init__0s������r5r�r�)r�r�s@�r2r�r�/s����
�
r5r�c�:�R2P!r+r6)r�s�r2�
add_one_level�=ClassTests.testClassCallRecursionLimit.<locals>.add_one_level6s���
�Cr5)r�rG)r>r�r�s& @r2�testClassCallRecursionLimit�&ClassTests.testClassCallRecursionLimit.sd���	�	��
�
�~�
.�
.�
�C�/�	��
�
�~�
.�
.��O�/�
.�/�
.��/�
.�
.�s#�A2� B�2B	�;B	�B	�B	c�`�]nU1QkQ[2oQQUQ5o[]d2FDoUU2J
	UOR]d2P!)r�c�0:`�\sQsQsnU1QksQsUsP!)�?ClassTests.testMetaclassCallOptimization.<locals>.TypeMetaclass�@c�N:�R]*
n[OU,UN3-U@!r�)r�r#)r�r/r0�callss&*,�r2r#�HClassTests.testMetaclassCallOptimization.<locals>.TypeMetaclass.__call__As%�����
���}�}�S�:�4�:�6�:�:r5r6)r.rrrsrtr#rur�)r�r�s@�r2�
TypeMetaclassr�@s����
;�
;r5r�c�(`�\sQsQsnQsQsUsP!)�6ClassTests.testMetaclassCallOptimization.<locals>.Type�Fc��VmP!r+��_obj)r>�objs&&r2rH�?ClassTests.testMetaclassCallOptimization.<locals>.Type.__init__Gs���	r5r�r�r�s@r2�Typer�Fs����
 �
 r5r�)r�)r�r�r�)r>r�r��ir�s&   @r2�testMetaclassCallOptimization�(ClassTests.testMetaclassCallOptimization=sG�����	;�D�	;�	 �]�	 ��s��A���G�������$r5c�b�QQ2o[]2FDoU2J
	P!J9h)c�(`�\sQsQsnQsQsUsP!)�CClassTests.test_specialization_class_call_doesnt_crash.<locals>.Foo�Qc��P!r+r6)r>�args&&r2rH�LClassTests.test_specialization_class_call_doesnt_crash.<locals>.Foo.__init__Rrjr5r6r�r�s@r2�FoorQs����
�
r5r)r�)r>r�_s&  r2�+test_specialization_class_call_doesnt_crash�6ClassTests.test_specialization_class_call_doesnt_crashNs0��	�	��q��A�
�����
��s�)�.r6)%r.rrrsrtr?rErJrkr�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	rur�r�s@r2r:r:�s������8�5�u:�nGE�R9�4-8�`F�<+�
:�<�$1�11�f
�!�!�#��+�+�-��%�%�'�
8�(�.�$�
8�C�:�&�P����(,��/�b5%�n?�"
�%�"�r5r:)�has_inline_valuesc��\sQsQsQsQsP!)�
NoManagedDict�ar6�r�)r.rrrsrtr�rur6r5r2rras���Ir5rc��\sQsQsQsP!)�Plain�er6rqr6r5r2rre���r5rc�(`�\sQsQsnQsQsUsP!)�	WithAttrs�ic�@�]Um]Um]Um]UmP!r��r�r_r<r�r=s&r2rH�WithAttrs.__init__ks�������������r5rr�r�s@r2rris�����r5rc��\sQsQsQsP!)�VarSizedSubclass�rr6rqr6r5r2rrrrr5rc�`�\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& r2�test_no_flags_for_slots_class�.TestInlineValues.test_no_flags_for_slots_classxsO���'�'������!8�8�!�<�����!9�9�1�=����*�=�?�;�<r5c
��[[1FD�oUOUOQ59^tt^2UOoUOU[*[2UOU[*[2UO[U222PPP2J�	P!)%fhJ�9h))r�)
rrr2r.r%r�r&r'r3r)r>r�r)s&  r2�!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& r2�,test_managed_dict_only_for_varsized_subclass�=TestInlineValues.test_managed_dict_only_for_varsized_subclass�sR�� �*�*������!8�8�:Q�R�����!9�9�1�=����*�+;�+=�>�?r5c��[2oUO[U22U;UO	[U22P!r+)rr3r�__dict__r9)r>r<s& r2�test_has_inline_values�'TestInlineValues.test_has_inline_values�s4���G�����)�!�,�-�
�J����*�1�-�.r5c��UO[[222UO[[222P!r+)r3rrrr=s&r2�test_instances�TestInlineValues.test_instances�s*�����)�%�'�2�3����)�)�+�6�7r5c��[[1FD0oU2oUOUO[	U22J2	P!r+)rrr3r3r)r>r�r<s&  r2�test_inspect_dict�"TestInlineValues.test_inspect_dict�s1���9�%�C���A�
�J�J��O�O�-�a�0�1�&r5c��Q]Q]-o[[1FD?oU2oUOOU2UO	[U22JA	P!)�er1)rrr3�updater3r)r>r�r�r<s&   r2�test_update_dict�!TestInlineValues.test_update_dict�sJ���1�c�1����9�%�C���A�
�J�J���a� ��O�O�-�a�0�1�&r5c�N�[]d2FDo[UQU0U2J	P!�r�r�)r��setattr)r�r�s& r2�set_100�TestInlineValues.set_100�s"���s��A��C�1�Q�C��!�$�r5c	�l�[]d2FD"oUO[UQU02U2J$	P!rB)r�r�r5)r>r�r�s&& r2�	check_100�TestInlineValues.check_100�s-���s��A����W�S�A�a�S�'�2�A�6�r5c��QQ2oU2oUO[U22UOU2UO[U22UO	U2U2oUO[U22P!)c��\sQsQsQsP!)�0TestInlineValues.test_many_attributes.<locals>.C�r6rqr6r5r2r�rK����r5r�)r3rrDr9rG)r>r�r<s&  r2�test_many_attributes�%TestInlineValues.test_many_attributes�sd���
�
�C�����)�!�,�-����Q�����*�1�-�.����q��
�C�����)�!�,�-r5c���QQ2oU2oUOoUO[U22UOU2UO	[U22UOU2P!)c��\sQsQsQsP!)�:TestInlineValues.test_many_attributes_with_dict.<locals>.C�r6rqr6r5r2r�rR�rMr5r�)r3r3rrDr9rG)r>r�r<r�s&   r2�test_many_attributes_with_dict�/TestInlineValues.test_many_attributes_with_dict�sT���
�
�C��
�J�J�����)�!�,�-����Q�����*�1�-�.����q�r5c��QQ2oU2oUOUO-2PUmUOUOQP-2P!)zAborted on 3.13a6c�(`�\sQsQsnQsQsUsP!)�+TestInlineValues.test_bug_117750.<locals>.C�c�<�UOO2P!r+)r3�clearr=s&r2rH�4TestInlineValues.test_bug_117750.<locals>.C.__init__�s���
�
�#�#�%r5r6r�r�s@r2r�rX�s����
&�
&r5r�rI)r�r3rI)r>r�r�s&  r2�test_bug_117750� TestInlineValues.test_bug_117750�sH��	&�	&��c��������r�*�����������d�|�4r5c�t�QQ2oU2oU;]UmUOUO]2P!)c��\sQsQsQsP!)�:TestInlineValues.test_store_attr_deleted_dict.<locals>.Foo��r6rqr6r5r2rra�r�r5r)r3r�r�)r>rr1s&  r2�test_store_attr_deleted_dict�-TestInlineValues.test_store_attr_deleted_dict�s5��	�	�
�E��
�J����������a� r5c�$�QQ2oU2o]UOQ$U;QQ[2oUO[V#Q222QQ2oVBmUOV$2UO
UO-2P!)c��\sQsQsQsP!)�<TestInlineValues.test_rematerialize_object_dict.<locals>.Foo��r6rqr6r5r2rrg����4r5rr�c��\sQsQsQsP!)�DTestInlineValues.test_rematerialize_object_dict.<locals>.StrSubclass��r6rqr6r5r2�StrSubclassrk�s��r5rmc��\sQsQsQsP!)�<TestInlineValues.test_rematerialize_object_dict.<locals>.Bar��r6rqr6r5r2�Barro�rir5rq)r3r�r9r:r$�assertIsInstancer�)r>rr1rmrqs&    r2�test_rematerialize_object_dict�/TestInlineValues.test_rematerialize_object_dict�su��	���E����
�
�6��
�J�	%�#�$������K��$7�8�9�	�������a�%�������R�(r5c�```�UU1QkQ2nU1QkQ2nROROR2RmR2RmP!)zZVerifies that the type cache doesn't provide a value which  is
inconsistent from the dict.c�2:`�\sQsQsnUU1QksQsUsP!)�6TestInlineValues.test_store_attr_type_cache.<locals>.X��c�h:�ROoROUROQ*2P!r)r�r�r3)�
inner_self�vr�r>s& ��r2r��>TestInlineValues.test_store_attr_type_cache.<locals>.X.__del__�s$����C�C��� � ��A�J�J�s�O�4r5r6r�)r�r�r>s@��r2�Xrw�s����
5�
5r5r}c�*:�\sQsQsY2sQsP!)�6TestInlineValues.test_store_attr_type_cache.<locals>.C��r6)r.rrrsrtr�ru)r}s�r2r�r�s
�����Ar5r�r)r>r�r}sf@@r2�test_store_attr_type_cache�+TestInlineValues.test_store_attr_type_cache�s;���	5�	5�
	�	�	
���	����c����c��r5c���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&    r2�'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��6r5r6)r.rrrsrtr*r-r0r4r7r:r?�staticmethodrDrGrNrTr]rcrsr�r�	nomemtestr�rur�r�s@r2r!r!vsz����=�:�@�/�8�2�2��%��%�7�.��	5�!�)�$�&
���7��7r5r!�__main__)#�__doc__�unittest�testr�test.supportrrr�	testmethsr,r7�statictests�method_templater��exec�globals�methodr�r1r8�
thread_unsafe�TestCaser:�_testinternalcapirr'r&rrrr�rr!r.�mainr6r5r2�<module>r�s���B���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�r5

Youez - 2016 - github.com/yon3zu
LinuXploit