HEX
Server: Apache
System: Linux bd12.noc223.com 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: handcraf (1693)
PHP: 8.1.28
Disabled: NONE
Upload Files
File: //opt/alt/python312/lib64/python3.12/test/__pycache__/test_super.cpython-312.opt-2.pyc
�

h�e�7��$�	ddlZddlZddlmZddlmZdZGd�d�ZGd�de�ZGd	�d
e�Z	Gd�de	e�Z
Gd
�de
�ZGd�de�ZGd�de�Z
Gd�dej�Zedk(rej"�yy)�N)�patch)�
import_helper�c�"�eZdZd�Zed��Zy)�Ac��y�Nr���selfs �6/opt/alt/python312/lib64/python3.12/test/test_super.py�fzA.f
s���c�
�|dfSr	r
��clss r
�cmzA.cms���S�z�rN)�__name__�
__module__�__qualname__r�classmethodrr
rr
rrs������rrc�2��eZdZ�fd�Ze�fd��Z�xZS)�Bc�&��t�|��dzS�Nr��superr�r�	__class__s �r
rzB.f�����w�y�{�S� � rc�&��|t�|��dfSr�rr�rrs �r
rzB.cm�����U�W�Z�\�3�'�'r�rrrrrr�
__classcell__�rs@r
rr����!��(��(rrc�2��eZdZ�fd�Ze�fd��Z�xZS)�Cc�&��t�|��dzS�Nr*rrs �r
rzC.fr rc�&��|t�|��dfSr,r"r#s �r
rzC.cmr$rr%r's@r
r*r*r(rr*c�(��eZdZ�fd�Z�fd�Z�xZS)�Dc�&��t�|��dzS�Nr/rrs �r
rzD.f"r rc�&��|t�|��dfSr1r"r#s �r
rzD.cm$s����U�W�Z�\�3�'�'r)rrrrrr&r's@r
r/r/!s���!�(�(rr/c��eZdZy)�EN�rrrr
rr
r4r4'���rr4c�$�eZdZejZy)�FN)rrrr4rr
rr
r8r8*s��	���Arr8c��eZdZy)�GNr5r
rr
r:r:-r6rr:c�
��eZdZ�fd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
�fd	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Z�fd�Zd�Z�fd�Z�fd�Z�fd�Zd�Zd�Zd�Zd�Zd�Zd�Z �fd�Z!�fd �Z"�fd!�Z#d"�Z$d#�Z%�xZ&S)$�	TestSuperc���t�y�N)r<rs �r
�tearDownzTestSuper.tearDown3s
����	rc�T�|jt�j�d�y�N�ABCD��assertEqualr/rrs r
�test_basics_workingzTestSuper.test_basics_working8s����������&�)rc�^�|jtjt��d�yrArCrs r
�test_class_getattr_workingz$TestSuper.test_class_getattr_working;s��������Q�S��6�*rc��|jt�j�d�|jtjt��d�yrA)rDr4rrs r
�!test_subclass_no_override_workingz+TestSuper.test_subclass_no_override_working>�4����������&�)�������Q�S��6�*rc��|jt�j�d�|jtjt��d�yrA)rDr8rrs r
�$test_unbound_method_transfer_workingz.TestSuper.test_unbound_method_transfer_workingBrJrc�d�|jtj�tdf�|jt�j�tdf�|jtj�tdf�|jt�j�tdf�yr	)rDrrr:rs r
� test_class_methods_still_workingz*TestSuper.test_class_methods_still_workingFsn���������!�S��*���������A�s�8�,��������!�S��*���������A�s�8�,rc��t�}|j|j�|tttdfdfdfdf�t�}|j|j�|tttdfdfdfdf�y)Nrrr*r/)r/rDrr4)r�d�es   r
�#test_super_in_class_methods_workingz-TestSuper.test_super_in_class_methods_workingLsn��
�C���������!�a�!�a��X�s�);�S�%A�3�!G�H�
�C���������!�a�!�a��X�s�);�S�%A�3�!G�Hrc�l�Gd�dt�}|j|�j�d�y)Nc���eZdZ�fd�Z�xZS)�,TestSuper.test_super_with_closure.<locals>.Ec�2����fd�}t����dzS)Nc�
���yr>r
rs�r
�nestedz>TestSuper.test_super_with_closure.<locals>.E.f.<locals>.nestedWs���rr4r)rrXrs` �r
rz.TestSuper.test_super_with_closure.<locals>.E.fVs�����w�y�{�S�(�(r�rrrrr&r's@r
r4rUUs
���
)�
)rr4�AE)rrDr)rr4s  r
�test_super_with_closurez!TestSuper.test_super_with_closureRs(��	)��	)�	
��������$�'rc���Gd�dt�}|�}|j|j�d�|j|jd�G�fd�d�}|j	|j
t
|��|jt�5}tdt�i�ddd�|j	t
j�t�Gd�d�}|jt�dd	�t�d=|jd|j�G�fd
�d�}|j�d	�y#1swY��xYw)Nc�"��eZdZ�fd�ZdZ�xZS)�7TestSuper.test_various___class___pathologies.<locals>.Xc� ��t�|��Sr>rrs �r
rz9TestSuper.test_various___class___pathologies.<locals>.X.f`s����w�y�{�"r�)rrrrrr&r's@r
�Xr^_s
���
#��Irrarr`c�&���eZdZW�Z�fd�Z�xZS)r^c�
���yr>r
r's�r
rz9TestSuper.test_various___class___pathologies.<locals>.X.fh����r)rrr�xrr&�rrs@�r
raz7TestSuper.test_various___class___pathologies.<locals>.Xfs����A�
�
rzYclass X:
                __class__
                def f():
                    __class__c�"��eZdZda�fd�Z�xZS)r^�*c�
���yr>r
r's�r
rz9TestSuper.test_various___class___pathologies.<locals>.X.ftrdr)rrrrrr&r's@r
raz7TestSuper.test_various___class___pathologies.<locals>.Xqs����I�
�
rrrhc�$���eZdZd��fd�Z�xZS)r^rhc�
���yr>r
r's�r
rz9TestSuper.test_various___class___pathologies.<locals>.X.f|rdrrYrfs@�r
raz7TestSuper.test_various___class___pathologies.<locals>.Xys����I�
�
r)rrDrr�assertIsre�type�assertRaises�	NameError�exec�globals�	exception�assertNotIn�__dict__)rrarerQrs    �r
�"test_various___class___pathologiesz,TestSuper.test_various___class___pathologies]s���	��	�
�C����������$�������c�*�	�	�	
�
�
�a�c�c�4��:�&�
�
�
�y�
)�	1�Q��!�#*�)�R�
1�	1�
	
�
�
�d�1�;�;�'��3�	�	�
	
�����;�/��4��I�k�"�����a�j�j�1�	�	�
	
����B�'�'	1�	1�s�E�Ec�b�Gd�d�}|j|�j�|�y)Nc���eZdZ�fd�Z�xZS)�2TestSuper.test___class___instancemethod.<locals>.Xc����Sr>r
rs �r
rz4TestSuper.test___class___instancemethod.<locals>.X.f��	��� � rrYr's@r
rarx��
���
!�
!rra�rlr�rras  r
�test___class___instancemethodz'TestSuper.test___class___instancemethod�s$��	!�	!�	
�
�
�a�c�e�e�g�q�!rc�X�Gd�d�}|j|j�|�y)Nc�(��eZdZe�fd��Z�xZS)�/TestSuper.test___class___classmethod.<locals>.Xc����Sr>r
r#s �r
rz1TestSuper.test___class___classmethod.<locals>.X.f��	��� � r)rrrrrr&r's@r
rar��s���
�
!��
!rrar|r}s  r
�test___class___classmethodz$TestSuper.test___class___classmethod��"��	!�	!�	
�
�
�a�c�c�e�Q�rc�X�Gd�d�}|j|j�|�y)Nc�(��eZdZe�fd��Z�xZS)�0TestSuper.test___class___staticmethod.<locals>.Xc����Sr>r
r's�r
rz2TestSuper.test___class___staticmethod.<locals>.X.f�r�r�rrr�staticmethodrr&r's@r
rar������
�
!��
!rrar|r}s  r
�test___class___staticmethodz%TestSuper.test___class___staticmethod�r�rc�h��d�G�fd�dt�}Gd�d|��}|j�|�y)Nc�"���eZdZ��fd�Z�xZS)�*TestSuper.test___class___new.<locals>.Metac�L��t�|�||||�}|j��|Sr>)r�__new__r)r�name�bases�	namespacerr�
test_classs     ��r
r�z2TestSuper.test___class___new.<locals>.Meta.__new__�s'����w��s�D�%��C��!�V�V�X�
��r�rrrr�r&�rr�s@�r
�Metar��s
���
�
rr�c�(��eZdZe�fd��Z�xZS)�'TestSuper.test___class___new.<locals>.Ac����Sr>r
r's�r
rz)TestSuper.test___class___new.<locals>.A.f�r�rr�r's@r
rr��r�rr��	metaclass�rmrl�rr�rr�s   @r
�test___class___newzTestSuper.test___class___new�s2����
�	�4�	�	!�$�	!�
	
�
�
�j�!�$rc����d�G�fd�dt�}Gd�d|��}|j|d�tdd��}|j|j�|�y)Nc���eZdZ�fd�Zy)�.TestSuper.test___class___delayed.<locals>.Metac�
��|�yr>r
)rr�r�r��test_namespaces    �r
r�z6TestSuper.test___class___delayed.<locals>.Meta.__new__�s���!*��rN)rrrr�)r�s�r
r�r��s���
rr�c�(��eZdZe�fd��Z�xZS)�+TestSuper.test___class___delayed.<locals>.Ac����Sr>r
r's�r
rz-TestSuper.test___class___delayed.<locals>.A.f�r�rr�r's@r
rr��r�rrr�rr
)rmrlr)rr�rrr�s    @r
�test___class___delayedz TestSuper.test___class___delayed�sR�����	�4�	�	!�$�	!�
	
�
�
�a�����b�.�)���
�
�a�c�c�e�Q�rc�h��d�Gd�dt�}G�fd�d|��}|j�|�y)Nc���eZdZ�fd�Z�xZS)�*TestSuper.test___class___mro.<locals>.Metac�H��|jd�t�|�	�S)Nr)rtr�mrors �r
r�z.TestSuper.test___class___mro.<locals>.Meta.mro�s ���"��
�
�c�"�$��w�{�}�$r)rrrr�r&r's@r
r�r��s
���
%�
%rr�c�"���eZdZ��fd�Z�xZS)�'TestSuper.test___class___mro.<locals>.Ac�
����yr>r
r�s��r
rz)TestSuper.test___class___mro.<locals>.A.f�s���&�
rrYr�s@�r
rr��s
���
'�
'rrr�r�r�s   @r
�test___class___mrozTestSuper.test___class___mro�s0����
�	%�4�	%�	'�$�	'�
	
�
�
�j�!�$rc���G�fd�dt�}d�Gd�d|��}|jd��d�Gd�d|��}�d}|jj}|j	t|�d	�|j
||d
�|jt�5|jddd�y#1swYyxYw)Nc�"���eZdZ��fd�Z�xZS)�=TestSuper.test___classcell___expected_behaviour.<locals>.Metac�H��|j��t�|�	||||�Sr>)�copyrr�)rr�r�r�r�namespace_snapshots    ��r
r�zETestSuper.test___classcell___expected_behaviour.<locals>.Meta.__new__�s%���%.�^�^�%5�"��w��s�D�%��C�Crr�)rr�s@�r
r�r��s���
D�
Drr�c��eZdZy)�HTestSuper.test___classcell___expected_behaviour.<locals>.WithoutClassRefNr5r
rr
�WithoutClassRefr�����rr�r�r&c���eZdZ�fd�Z�xZS)�ETestSuper.test___classcell___expected_behaviour.<locals>.WithClassRefc����Sr>r
rs �r
rzGTestSuper.test___classcell___expected_behaviour.<locals>.WithClassRef.f�rzrrYr's@r
�WithClassRefr��r{rr��r)
rmrsr�__closure__rD�lenrlrn�AttributeErrorr&)rr�r�r��
class_cell�method_closurer�s      @r
�%test___classcell___expected_behaviourz/TestSuper.test___classcell___expected_behaviour�s����	D�4�	D�"��	��	�����*<�=�
"��	!�T�	!�(��8�
�%���3�3������^�,�a�0��
�
�j�.��"3�4�
�
�
�~�
.�	'��&�&�	'�	'�	'�s�!
B7�7Cc��Gd�dt�}Gd�d|��}d}|jt|�5Gd�d|��}ddd�y#1swYyxYw)	Nc���eZdZ�fd�Z�xZS)�2TestSuper.test___classcell___missing.<locals>.Metac�L��|jdd�t�|�	||||�S�Nr&)�poprr�)rr�r�r�rs    �r
r�z:TestSuper.test___classcell___missing.<locals>.Meta.__new__�s&����
�
�o�t�4��w��s�D�%��C�Crr�r's@r
r�r������
D�
Drr�c��eZdZy)�=TestSuper.test___classcell___missing.<locals>.WithoutClassRefNr5r
rr
r�r��r�rr�r�z+__class__ not set.*__classcell__ propagatedc���eZdZ�fd�Z�xZS)�:TestSuper.test___classcell___missing.<locals>.WithClassRefc����Sr>r
rs �r
rz<TestSuper.test___classcell___missing.<locals>.WithClassRef.f�	���$�$rrYr's@r
r�r��
���%�%rr�)rm�assertRaisesRegex�RuntimeError)rr�r��expected_errorr�s     r
�test___classcell___missingz$TestSuper.test___classcell___missing�sU��	D�4�	D�	��	�G��
�
#�
#�L�.�
A�	%�
%��
%�	%�	%�	%�s�
A
�
Ac	��Gd�dt�}dddt�fD]H}|j|��5|jt�5Gd�d||��}ddd�ddd��Jy#1swY�xYw#1swY�axYw)	Nc���eZdZ�fd�Z�xZS)�4TestSuper.test___classcell___overwrite.<locals>.Metac�2��||d<t�|�||||�Sr��rr�)rr�r�r��cellrs     �r
r�z<TestSuper.test___classcell___overwrite.<locals>.Meta.__new__	s"���-1�	�/�*��w��s�D�%��C�Crr�r's@r
r�r�r�rr�r�)�bad_cellc��eZdZy)�1TestSuper.test___classcell___overwrite.<locals>.ANr5r
rr
rr�s��rr)r�r�)rm�object�subTestrn�	TypeError)rr�r�rs    r
�test___classcell___overwritez&TestSuper.test___classcell___overwrites���	D�4�	D�
�q�"�f�h�/�	�H����x��0�
��&�&�y�1���d����
�
�	����
�
�s#�A6�	A*�A6�*A3�/A6�6A?	c��Gd�dt�}|jt�5Gd�d|��}ddd�y#1swYyxYw)Nc���eZdZ�fd�Z�xZS)�5TestSuper.test___classcell___wrong_cell.<locals>.Metac�F��t�|�||||�}tdd|�}|S)Nrr
)rr�rm)rr�r�r�rrs     �r
r�z=TestSuper.test___classcell___wrong_cell.<locals>.Meta.__new__s*����g�o�c�4��	�B����b�)�,���
rr�r's@r
r�r�s
���
�
rr�c���eZdZ�fd�Z�xZS)�2TestSuper.test___classcell___wrong_cell.<locals>.Ac����Sr>r
rs �r
rz4TestSuper.test___classcell___wrong_cell.<locals>.A.fr�rrYr's@r
rr�r�rrr�)rmrnr�)rr�rs   r
�test___classcell___wrong_cellz'TestSuper.test___classcell___wrong_cells?��	�4�	��
�
�y�
)�	%�
%�d�
%�	%�	%�	%�s	�
;�Ac����fd�}|jtd�5|�ddd�Gd�d�}|jtd�5|j�ddd��fd�}|jtd�5|d�ddd�Gd�d�}|jtd	�5|�j�ddd�y#1swY��xYw#1swY��xYw#1swY�`xYw#1swYyxYw)
Nc���t�yr>�rr's�r
rz.TestSuper.test_obscure_super_errors.<locals>.f"s����Grzno argumentsc���eZdZ�fd�Z�xZS)�.TestSuper.test_obscure_super_errors.<locals>.Cc���t�yr>r�r's�r
rz0TestSuper.test_obscure_super_errors.<locals>.C.f(�����rrYr's@r
r*r�'�
���
�
rr*c���~t�yr>r��rers �r
rz.TestSuper.test_obscure_super_errors.<locals>.f-s�����Grzarg\[0\] deletedc���eZdZ�fd�Z�xZS)�.TestSuper.test_obscure_super_errors.<locals>.Xc����t�yr>r�r�s �r
rz0TestSuper.test_obscure_super_errors.<locals>.X.f4s�����rrYr's@r
rar�3s
���
�
rrazempty __class__ cell)r�r�r)rrr*rars    �r
�test_obscure_super_errorsz#TestSuper.test_obscure_super_errors!s����	�
�
#�
#�L�/�
B�	�
�C�	�	�	��
#�
#�L�/�
B�	�
�C�C�E�	�	��
#�
#�L�2E�
F�	�
�d�G�	�	�	�
�
#�
#�L�2I�
J�	�
�C�E�E�G�	�	�)	�	��	�	��	�	��	�	�s/�C�
C�	C)�2C5�C�C&�)C2�5C>c���Gd�d���fd�}|�jd}|jt�j|�y)Nc���eZdZ�fd�Z�xZS)�&TestSuper.test_cell_as_self.<locals>.Xc���t�yr>r�rs �r
�methz+TestSuper.test_cell_as_self.<locals>.X.meth=r�r)rrrrr&r's@r
rar<r�rrac�"�������fd�}|S)Nc����Sr>r
)�ks�r
�gz1TestSuper.test_cell_as_self.<locals>.f.<locals>.gBs����rr
)rrras @�r
rz&TestSuper.test_cell_as_self.<locals>.f@s�����A�
��Hrr)r�rnr�r)rr�cras   @r
�test_cell_as_selfzTestSuper.test_cell_as_self;s:���	�	�	�

�C�O�O�A������)�Q�V�V�Q�/rc�|��ttd�}td�D]}tj|t|��y)Ng�?i�)r�float�range�__init__�int)r�sp�irs   �r
�test_super_init_leakszTestSuper.test_super_init_leaksHs4���
�5�#�
���t��	'�A��N�N�2�s�A�&�	'rc���|jtd�5tttt�ddd�y#1swYyxYw)Nzexpected at most�r�r�rrrs �r
�test_super_argcountzTestSuper.test_super_argcountQs5���
�
#�
#�I�/A�
B�	!��#�s�C� �	!�	!�	!�s	�;�Ac�|��|jtd�5tdt�ddd�y#1swYyxYw)N�argument 1 must be a typer�rrs �r
�test_super_argtypezTestSuper.test_super_argtypeUs2���
�
#�
#�I�/J�
K�	��!�S�M�	�	�	�s�2�;c��tjd�}tjd|��5ddl}ddd�|jj
�j�d�tjd�y#1swY�MxYw)Nz�
            class super:
                msg = "truly super"

            class C:
                def method(self):
                    return super().msg
            �shadowed_super)r��sourcerztruly super)	�textwrap�dedentr�ready_to_importrrDr*�method�unload)rrrs   r
�test_shadowed_globalzTestSuper.test_shadowed_globalYsq�����
�	
���
*�
*�0@��
P�	"�!�	"�����)�)�+�2�2�4�m�D����-�.�	"�	"�s�A>�>Bc�|��Gd�d��G�fd�d�}|j|�j�d�y)Nc��eZdZdZy)�,TestSuper.test_shadowed_local.<locals>.super�quite superN�rrr�msgr
rr
rr#j����Crrc�"���eZdZ��fd�Z�xZS)�(TestSuper.test_shadowed_local.<locals>.Cc�&����jSr>)r&)rrrs ��r
rz/TestSuper.test_shadowed_local.<locals>.C.methodns����w�{�{�"r�rrrrr&)rrs@�r
r*r)ms
���
#�
#rr*r$)rDr)rr*rs  @r
�test_shadowed_localzTestSuper.test_shadowed_localis1���	 �	 �	#�	#�	
��������}�5rc���Gd�d�}Gd�d�}tt�d�|�5}|j|�j�d�ddd�y#1swYyxYw)Nc��eZdZdZy)�0TestSuper.test_shadowed_dynamic.<locals>.MySuper�super superNr%r
rr
�MySuperr/tr'rr1c���eZdZ�fd�Z�xZS)�*TestSuper.test_shadowed_dynamic.<locals>.Cc���t�|�Sr>�rr&rs �r
rz1TestSuper.test_shadowed_dynamic.<locals>.C.methodx�
����w�{�"rr+r's@r
r*r3w�
���
#�
#rr*�.superr0�rrrDr)rr1r*�ms    r
�test_shadowed_dynamiczTestSuper.test_shadowed_dynamicssX��	 �	 �	#�	#��h�Z�v�&��
0�	:�A����Q�S�Z�Z�\�=�9�	:�	:�	:�s�&A�A c���g�G�fd�d�}Gd�d�}tt�d�|�5}|j|�j�d�|j�dg�ddd�y#1swYyxYw)Nc���eZdZ�fd�ZdZy)�8TestSuper.test_shadowed_dynamic_two_arg.<locals>.MySuperc�(���j|�yr>)�append)r�args�	call_argss  �r
r
zATestSuper.test_shadowed_dynamic_two_arg.<locals>.MySuper.__init__�s���� � ��&rr0N)rrrr
r&)rBs�r
r1r>�s
���
'��Crr1c���eZdZ�fd�Z�xZS)�2TestSuper.test_shadowed_dynamic_two_arg.<locals>.Cc���tdd�S)Nr�rr5rs �r
rz9TestSuper.test_shadowed_dynamic_two_arg.<locals>.C.method�s����Q���&rr+r's@r
r*rD�s
���
'�
'rr*r8r0)r�rr9)rr1r*r:rBs    @r
�test_shadowed_dynamic_two_argz'TestSuper.test_shadowed_dynamic_two_arg~sp����	�	 �	 �
	'�	'��h�Z�v�&��
0�	2�A����Q�S�Z�Z�\�=�9����Y���1�	2�	2�	2�s�9A/�/A8c��Gd�d�}|jtd�5|�j�ddd�y#1swYyxYw)Nc���eZdZ�fd�Z�xZS)�)TestSuper.test_attribute_error.<locals>.Cc���t�|�Sr>r5rs �r
rz0TestSuper.test_attribute_error.<locals>.C.method�r6rr+r's@r
r*rI�r7rr*z%'super' object has no attribute 'msg')r�r�r�rr*s  r
�test_attribute_errorzTestSuper.test_attribute_error�s?��	#�	#��
#�
#�N�4[�
\�	�
�C�J�J�L�	�	�	���A�A	c��Gd�d�}|jtd�5|�j�ddd�y#1swYyxYw)Nc���eZdZ�fd�Z�xZS)�'TestSuper.test_bad_first_arg.<locals>.Cc� ��td|��S)Nr�)rrrs �r
rz.TestSuper.test_bad_first_arg.<locals>.C.method�s����Q��,�.�.rr+r's@r
r*rP�s
���
/�
/rr*r)r�r�rrKs  r
�test_bad_first_argzTestSuper.test_bad_first_arg�s?��	/�	/��
#�
#�I�/J�
K�	�
�C�J�J�L�	�	�	�rMc�l��Gd�d�}|j|�j�t�y)Nc���eZdZ�fd�Z�xZS)�)TestSuper.test_super___class__.<locals>.Cc�,��t�jSr>)rrrs �r
rz0TestSuper.test_super___class__.<locals>.C.method�s����w�(�(�(rr+r's@r
r*rU�s
���
)�
)rr*)rDrr)rr*rs  �r
�test_super___class__zTestSuper.test_super___class__�s'���	)�	)�	
��������u�-rc�����Gd�dt��G��fd�d��|j��j���y)Nc��eZdZy)�8TestSuper.test_super_subclass___class__.<locals>.mysuperNr5r
rr
�mysuperrZ�r�rr[c���eZdZ��fd�Zy)�2TestSuper.test_super_subclass___class__.<locals>.Cc�*����|�jSr>r')rr*r[s ��r
rz9TestSuper.test_super_subclass___class__.<locals>.C.method�s����q�$�'�1�1�1rN)rrrr)r*r[s��r
r*r]�s���
2rr*)rrDr)rr*r[rs @@�r
�test_super_subclass___class__z'TestSuper.test_super_subclass___class__�s3���	�e�	�	2�	2�	
��������w�/rc�n����Gd�dt�����fd�}tt�D]
}|d��y)Nc��eZdZy)�/TestSuper.test_unusual_getattro.<locals>.MyTypeNr5r
rr
�MyTyperb�r�rrcc����|�fi�}t�t|��|dd��j|jd�y)N�barr�)rrm�__setattr__rDre)r��mytypercrrs  ���r
�testz-TestSuper.test_unusual_getattro.<locals>.test�s>����D�6�)�R�0�F��&�$�v�,�3�F�E�1�E����V�Z�Z��+r�foo1)rmr�ADAPTIVE_WARMUP_DELAY)rrh�_rcrs`  @�r
�test_unusual_getattrozTestSuper.test_unusual_getattro�s2���	�T�	�	,�
�,�-�	�A���L�	rc�z�Gd�d�}Gd�d|�}Gd�d|�}tt�D]	}|��y)Nc��eZdZd�Zd�Zy)�(TestSuper.test_reassigned_new.<locals>.Ac��yr>r
rs r
r�z0TestSuper.test_reassigned_new.<locals>.A.__new__�s��rc�D�d|jvr|j|_yy)Nr�)rtr�rs r
�__init_subclass__z:TestSuper.test_reassigned_new.<locals>.A.__init_subclass__�s���C�L�L�0�"%�+�+�C�K�1rN)rrrr�rrr
rr
rro�s��
�
.rrc��eZdZy)�(TestSuper.test_reassigned_new.<locals>.BNr5r
rr
rrt�r�rrc���eZdZ�fd�Z�xZS)�(TestSuper.test_reassigned_new.<locals>.Cc�"��t�|�|�Sr>r�r#s �r
r�z0TestSuper.test_reassigned_new.<locals>.C.__new__�s����w��s�+�+rr�r's@r
r*rv�s
���
,�
,rr*)rrj�rrrr*rks     r
�test_reassigned_newzTestSuper.test_reassigned_new�s@��	.�	.�	��	�	,��	,��,�-�	�A�
�C�	rc���G�fd�d�}Gd�d|�}Gd�d|�}tt�D]}|j|��y)Nc�"��eZdZe�fd��Zy)�6TestSuper.test_mixed_staticmethod_hierarchy.<locals>.Ac�J���j|��j|�yr>)�assertFalse)rrA�kwargsrs   �r
�somez;TestSuper.test_mixed_staticmethod_hierarchy.<locals>.A.some�s���� � ��&�� � ��(rN)rrrr�r�rs�r
rr|�s���
�
)��
)rrc���eZdZ�fd�Z�xZS)�6TestSuper.test_mixed_staticmethod_hierarchy.<locals>.Bc�*��t�|�|g|��i|��Sr>�rr�)rrArrs   �r
r�z;TestSuper.test_mixed_staticmethod_hierarchy.<locals>.B.some�s����w�|�C�9�$�9�&�9�9r)rrrr�r&r's@r
rr��s
���
:�
:rrc�(��eZdZe�fd��Z�xZS)�6TestSuper.test_mixed_staticmethod_hierarchy.<locals>.Cc�"��t�|�|�Sr>r�r#s �r
r�z;TestSuper.test_mixed_staticmethod_hierarchy.<locals>.C.some�s����w�|�C�(�(r)rrrr�r�r&r's@r
r*r��s���
�
)��
)rr*)rrjr�rxs`    r
�!test_mixed_staticmethod_hierarchyz+TestSuper.test_mixed_staticmethod_hierarchy�sG���	)�	)�	:��	:�	)��	)�
�,�-�	�A�
�F�F�1�I�	r)'rrrr?rErGrIrLrNrRr[rur~r�r�r�r�r�r�r�r�r�r�r	rrrr r,r;rFrLrRrWr_rlryr�r&r's@r
r<r<1s�����
*�+�+�+�-�I�	(�!(�F"� � �%�& �(%�"'�>%�.�%��40�'�!��/� 6�	:�
2���.�0�
��&rr<�__main__)r�unittest�
unittest.mockr�test.supportrrjrrr*r/r4r8r:�TestCaser<r�mainr
rr
�<module>r�s���?����&�����(��(�(��(�(��1�(�	��	����	��	�n��!�!�n�b
�z���H�M�M�O�r