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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python313/Lib/test/__pycache__/test_super.cpython-313.opt-1.pyc
�

��i�@��4�SrSSKrSSKrSSKrSSKJr SSKJrJr Sr	"SS5r
"SS	\
5r"S
S\
5r"SS
\\5r
"SS\
5r"SS\5r"SS\
5r"SS\R"5r\S:Xa\R("5 gg)z9Unit tests for zero-argument super() & related machinery.�N)�patch)�
import_helper�threading_helper�c�*�\rSrSrSr\S5rSrg)�A�
c��g�Nr���selfs �$C:\Python313\\Lib\test\test_super.py�f�A.fs���c�
�US4$rr��clss r�cm�A.cms���S�z�rrN)�__name__�
__module__�__qualname__�__firstlineno__r�classmethodr�__static_attributes__rrrrr
s������rrc�>^�\rSrSrU4Sjr\U4Sj5rSrU=r$)�B�c�&>�[TU]5S-$�Nr��superr�r�	__class__s �rr�B.f�����w�y�{�S� � rc�&>�U[TU]5S4$r"�r$r�rr&s �rr�B.cm�����U�W�Z�\�3�'�'rr�	rrrrrrrr�
__classcell__�r&s@rrr����!��(��(rrc�>^�\rSrSrU4Sjr\U4Sj5rSrU=r$)�C�c�&>�[TU]5S-$�Nr3r#r%s �rr�C.fr(rc�&>�U[TU]5S4$r6r*r+s �rr�C.cmr-rrr.r0s@rr3r3r1rr3c�4^�\rSrSrU4SjrU4SjrSrU=r$)�D�"c�&>�[TU]5S-$�Nr;r#r%s �rr�D.f#r(rc�&>�U[TU]5S4$r>r*r+s �rr�D.cm%s����U�W�Z�\�3�'�'rr)rrrrrrrr/r0s@rr;r;"s���!�(�(rr;c��\rSrSrSrg)�E�(rN�rrrrrrrrrCrC(���rrCc�,�\rSrSr\R
rSrg)�F�+rN)rrrrrCrrrrrrHrH+s��	���ArrHc��\rSrSrSrg)�G�.rNrErrrrKrK.rFrrKc�X^�\rSrSrU4SjrSrSrSrSrSr	Sr
S	rU4S
jrSr
SrS
rSrSrSrSrSrSrSrU4SjrSrU4SjrU4SjrU4SjrSrSrSrSrSr Sr!S r"U4S!jr#U4S"jr$U4S#jr%S$r&S%r'\(RR"5S&5r*S'r+U=r,$)(�	TestSuper�2c�>�[mg�N)rNr%s �r�tearDown�TestSuper.tearDown4s
����	rc�T�UR[5R5S5 g�N�ABCD��assertEqualr;rr
s r�test_basics_working�TestSuper.test_basics_working9s����������&�)rc�^�UR[R[55S5 grUrWr
s r�test_class_getattr_working�$TestSuper.test_class_getattr_working<s��������Q�S��6�*rc��UR[5R5S5 UR[R[55S5 grU)rXrCrr
s r�!test_subclass_no_override_working�+TestSuper.test_subclass_no_override_working?�4����������&�)�������Q�S��6�*rc��UR[5R5S5 UR[R[55S5 grU)rXrHrr
s r�$test_unbound_method_transfer_working�.TestSuper.test_unbound_method_transfer_workingCrarc�d�UR[R5[S45 UR[5R5[S45 UR[R5[S45 UR[5R5[S45 gr)rXrrrKr
s r� test_class_methods_still_working�*TestSuper.test_class_methods_still_workingGsn���������!�S��*���������A�s�8�,��������!�S��*���������A�s�8�,rc��[5nURUR5U[[[S4S4S4S45 [5nURUR5U[[[S4S4S4S45 g)Nrrr3r;)r;rXrrC)r�d�es   r�#test_super_in_class_methods_working�-TestSuper.test_super_in_class_methods_workingMsn��
�C���������!�a�!�a��X�s�);�S�%A�3�!G�H�
�C���������!�a�!�a��X�s�);�S�%A�3�!G�Hrc�l�"SS[5nURU"5R5S5 g)Nc�(^�\rSrSrU4SjrSrU=r$)�,TestSuper.test_super_with_closure.<locals>.E�Vc�4>^�U4Sjn[TT]5S-$)Nc�
>�T grQrr
s�r�nested�>TestSuper.test_super_with_closure.<locals>.E.f.<locals>.nestedXs���rrCr#)rrsr&s` �rr�.TestSuper.test_super_with_closure.<locals>.E.fWs�����w�y�{�S�(�(rr�rrrrrrr/r0s@rrCroVs
���
)�
)rrC�AE)rrXr)rrCs  r�test_super_with_closure�!TestSuper.test_super_with_closureSs(��	)��	)�	
��������$�'rc��>�"SS[5nU"5nURUR5S5 URURS5 "U4SjS5nUR	UR
[
U55 UR[5n[S[505 SSS5 UR	[
WR5[5 "SS5nUR[5SS	5 [5S	URSUR5 "U4S
jS5nURTS	5 g!,(df   N�=f)Nc�,^�\rSrSrU4SjrSrSrU=r$)�7TestSuper.test_various___class___pathologies.<locals>.X�`c� >�[TU]5$rQr#r%s �rr�9TestSuper.test_various___class___pathologies.<locals>.X.fas����w�y�{�"r�r)rrrrrr&rr/r0s@r�Xr|`s
���
#��Irr�rr�c�0>^�\rSrSrYrU4SjrSrU=r$)r|�gc�
>�T grQrr0s�rrri����rr)rrrr�xrrr/�r&r&s@�rr�r|gs����A�
�
rzYclass X:
                __class__
                def f():
                    __class__c�,^�\rSrSrSqU4SjrSrU=r$)r|�r�*c�
>�T grQrr0s�rrrur�rr)rrrrr&rrr/r0s@rr�r|rs����I�
�
rr&r�c�.>^�\rSrSrSmU4SjrSrU=r$)r|�zr�c�
>�T grQrr0s�rrr}r�rrrvr�s@�rr�r|zs����I�
�
r)rrXrr&�assertIsr��type�assertRaises�	NameError�exec�globals�	exception�assertNotIn�__dict__)rr�r�rjr&s    �r�"test_various___class___pathologies�,TestSuper.test_various___class___pathologies^s���	��	�
�C����������$�������c�*�	�	�	
�
�
�a�c�c�4��:�&�
�
�
�y�
)�Q��!�#*�)�R�
1�*�
	
�
�
�d�1�;�;�'��3�	�	�
	
�����;�/��4��I�k�"�����a�j�j�1�	�	�
	
����B�'�'*�
)�s�E�
Ec�b�"SS5nURU"5R5U5 g)Nc�(^�\rSrSrU4SjrSrU=r$)�2TestSuper.test___class___instancemethod.<locals>.X�c�>�T$rQrr%s �rr�4TestSuper.test___class___instancemethod.<locals>.X.f��	��� � rrrvr0s@rr�r���
���
!�
!rr��r�r�rr�s  r�test___class___instancemethod�'TestSuper.test___class___instancemethod�s$��	!�	!�	
�
�
�a�c�e�e�g�q�!rc�X�"SS5nURUR5U5 g)Nc�2^�\rSrSr\U4Sj5rSrU=r$)�/TestSuper.test___class___classmethod.<locals>.X�c�>�T$rQrr+s �rr�1TestSuper.test___class___classmethod.<locals>.X.f��	��� � rr)rrrrrrrr/r0s@rr�r��s���
�
!��
!rr�r�r�s  r�test___class___classmethod�$TestSuper.test___class___classmethod��"��	!�	!�	
�
�
�a�c�c�e�Q�rc�X�"SS5nURUR5U5 g)Nc�2^�\rSrSr\U4Sj5rSrU=r$)�0TestSuper.test___class___staticmethod.<locals>.X�c�>�T$rQrr0s�rr�2TestSuper.test___class___staticmethod.<locals>.X.f�r�rr�rrrr�staticmethodrrr/r0s@rr�r������
�
!��
!rr�r�r�s  r�test___class___staticmethod�%TestSuper.test___class___staticmethod�r�rc�d^�Sm"U4SjS[5n"SSUS9nURTU5 g)Nc�,>^�\rSrSrUU4SjrSrU=r$)�*TestSuper.test___class___new.<locals>.Meta�c�H>�[TU]XX#5nUR5mU$rQ)r$�__new__r)r�name�bases�	namespacerr&�
test_classs     ��rr��2TestSuper.test___class___new.<locals>.Meta.__new__�s#����w��s�%�C��!�V�V�X�
��rr�rrrrr�rr/�r&r�s@�r�Metar��s
���
�
rr�c�2^�\rSrSr\U4Sj5rSrU=r$)�'TestSuper.test___class___new.<locals>.A�c�>�T$rQrr0s�rr�)TestSuper.test___class___new.<locals>.A.f�r�rrr�r0s@rrr��r�rr��	metaclass�r�r��rr�rr�s   @r�test___class___new�TestSuper.test___class___new�s2����
�	�4�	�	!�$�	!�
	
�
�
�j�!�$rc�^�Sm"U4SjS[5n"SSUS9nURUS5 [SST5nURUR5U5 g)Nc�">�\rSrSrU4SjrSrg)�.TestSuper.test___class___delayed.<locals>.Meta�c�
>�UmgrQr)rr�r�r��test_namespaces    �rr��6TestSuper.test___class___delayed.<locals>.Meta.__new__�s���!*��rrN)rrrrr�r)r�s�rr�r��s
���
�
rr�c�2^�\rSrSr\U4Sj5rSrU=r$)�+TestSuper.test___class___delayed.<locals>.A�c�>�T$rQrr0s�rr�-TestSuper.test___class___delayed.<locals>.A.f�r�rrr�r0s@rrr��r�rrr�rr)r�r�r)rr�rrr�s    @r�test___class___delayed� TestSuper.test___class___delayed�sR�����	�4�	�	!�$�	!�
	
�
�
�a�����b�.�)���
�
�a�c�c�e�Q�rc�d^�Sm"SS[5n"U4SjSUS9nURTU5 g)Nc�(^�\rSrSrU4SjrSrU=r$)�*TestSuper.test___class___mro.<locals>.Meta��c�H>�URS"5 [TU]	5$)Nr)r�r$�mror%s �rr��.TestSuper.test___class___mro.<locals>.Meta.mro�s����
�
�c�"�$��w�{�}�$rr)rrrrr�rr/r0s@rr�r��s
���
%�
%rr�c�,>^�\rSrSrUU4SjrSrU=r$)�'TestSuper.test___class___mro.<locals>.A��c�
>�TmgrQrr�s��rr�)TestSuper.test___class___mro.<locals>.A.f�s���&�
rrrvr�s@�rrr��s
���
'�
'rrr�r�r�s   @r�test___class___mro�TestSuper.test___class___mro�s0����
�	%�4�	%�	'�$�	'�
	
�
�
�j�!�$rc�^�"U4SjS[5nSm"SSUS9nURST5 Sm"SSUS9nTSnURRnUR	[U5S	5 UR
XES
5 UR[5 UR SSS5 g!,(df   g=f)Nc�,>^�\rSrSrUU4SjrSrU=r$)�=TestSuper.test___classcell___expected_behaviour.<locals>.Meta��c�D>�UR5m[TU]	XX#5$rQ)�copyr$r�)rr�r�r�r&�namespace_snapshots    ��rr��ETestSuper.test___classcell___expected_behaviour.<locals>.Meta.__new__�s!���%.�^�^�%5�"��w��s�%�C�Crrr�)r&r�s@�rr�r��s���
D�
Drr�c��\rSrSrSrg)�HTestSuper.test___classcell___expected_behaviour.<locals>.WithoutClassRef��rNrErrr�WithoutClassRefr�����rr�r�r/c�(^�\rSrSrU4SjrSrU=r$)�ETestSuper.test___classcell___expected_behaviour.<locals>.WithClassRef��c�>�T$rQrr%s �rr�GTestSuper.test___classcell___expected_behaviour.<locals>.WithClassRef.f�r�rrrvr0s@r�WithClassRefr��r�rr�r)
r�r�r�__closure__rX�lenr�r��AttributeErrorr/)rr�r�r�
class_cell�method_closurer�s      @r�%test___classcell___expected_behaviour�/TestSuper.test___classcell___expected_behaviour�s����	D�4�	D�"��	��	�����*<�=�
"��	!�T�	!�(��8�
�%���3�3������^�,�a�0��
�
�j��"3�4�
�
�
�~�
.��&�&�/�
.�
.�s�
B1�1
B?c��"SS[5n"SSUS9nSnUR[U5 "SSUS9nSSS5 g!,(df   g=f)	Nc�(^�\rSrSrU4SjrSrU=r$)�2TestSuper.test___classcell___missing.<locals>.Meta��c�H>�URSS5 [TU]	XX#5$�Nr/)�popr$r�)rr�r�r�r&s    �rr��:TestSuper.test___classcell___missing.<locals>.Meta.__new__�s"����
�
�o�t�4��w��s�%�C�Crrr�r0s@rr�r
�����
D�
Drr�c��\rSrSrSrg)�=TestSuper.test___classcell___missing.<locals>.WithoutClassRef�rNrErrrr�r�r�rr�r�z+__class__ not set.*__classcell__ propagatedc�(^�\rSrSrU4SjrSrU=r$)�:TestSuper.test___classcell___missing.<locals>.WithClassRefic�>�T$rQrr%s �rr�<TestSuper.test___classcell___missing.<locals>.WithClassRef.f�	���$�$rrrvr0s@rrr�
���%�%rr)r��assertRaisesRegex�RuntimeError)rr�r��expected_errorrs     r�test___classcell___missing�$TestSuper.test___classcell___missing�sM��	D�4�	D�	��	�G��
�
#�
#�L�.�
A�
%��
%�B�
A�
A�s�
A�
Ac
��"SS[5nSSS[54HBnURUS9 UR[5 "SSXS9nSSS5 SSS5 MD g!,(df   N=f!,(df   Mg=f)	Nc�(^�\rSrSrU4SjrSrU=r$)�4TestSuper.test___classcell___overwrite.<locals>.Metai	c�,>�XCS'[TU]XX#5$r�r$r�)rr�r�r��cellr&s     �rr��<TestSuper.test___classcell___overwrite.<locals>.Meta.__new__
s���-1�/�*��w��s�%�C�Crrr�r0s@rr�r$	rrr�r�)�bad_cellc��\rSrSrSrg)�1TestSuper.test___classcell___overwrite.<locals>.AirNrErrrrr,s��rr)r�r')r��object�subTestr��	TypeError)rr�r*rs    r�test___classcell___overwrite�&TestSuper.test___classcell___overwritesl��	D�4�	D�
�q�"�f�h�/�H����x��0��&�&�y�1��d��2�1�0�0�1�1��1�0�s#�A6�
A%�A6�%
A3�/A6�6
B	c��"SS[5nUR[5 "SSUS9nSSS5 g!,(df   g=f)Nc�(^�\rSrSrU4SjrSrU=r$)�5TestSuper.test___classcell___wrong_cell.<locals>.Metaic�B>�[TU]XX#5n[SSU5nU$)Nrr)r$r�r�)rr�r�r�rr&s     �rr��=TestSuper.test___classcell___wrong_cell.<locals>.Meta.__new__s&����g�o�c��B����b�)�,���
rrr�r0s@rr�r4s
���
�
rr�c�(^�\rSrSrU4SjrSrU=r$)�2TestSuper.test___classcell___wrong_cell.<locals>.Aic�>�T$rQrr%s �rr�4TestSuper.test___classcell___wrong_cell.<locals>.A.frrrrvr0s@rrr8rrrr�)r�r�r/)rr�rs   r�test___classcell___wrong_cell�'TestSuper.test___classcell___wrong_cells6��	�4�	��
�
�y�
)�
%�d�
%�*�
)�
)�s	�
8�
Ac�.>�U4SjnUR[S5 U"5 SSS5 "SS5nUR[S5 UR5 SSS5 U4SjnUR[S5 U"S5 SSS5 "SS5nUR[S	5 U"5R5 SSS5 g!,(df   N�=f!,(df   N�=f!,(df   No=f!,(df   g=f)
Nc�>�[5 grQ�r$r0s�rr�.TestSuper.test_obscure_super_errors.<locals>.f#s����Grzno argumentsc�(^�\rSrSrU4SjrSrU=r$)�.TestSuper.test_obscure_super_errors.<locals>.Ci(c�>�[5 grQr?r0s�rr�0TestSuper.test_obscure_super_errors.<locals>.C.f)�����rrrvr0s@rr3rB(�
���
�
rr3c�>�A[5 grQr?�r�r&s �rrr@.s�����Grzarg\[0\] deletedc�(^�\rSrSrU4SjrSrU=r$)�.TestSuper.test_obscure_super_errors.<locals>.Xi4c�>�@[5 grQr?rHs �rr�0TestSuper.test_obscure_super_errors.<locals>.X.f5s�����rrrvr0s@rr�rJ4s
���
�
rr�zempty __class__ cell)rrr)rrr3r�r&s    �r�test_obscure_super_errors�#TestSuper.test_obscure_super_errors"s����	�
�
#�
#�L�/�
B�
�C�C�	�	��
#�
#�L�/�
B�
�C�C�E�C�	��
#�
#�L�2E�
F�
�d�G�G�	�	�
�
#�
#�L�2I�
J�
�C�E�E�G�K�
J�)C�
B��C�
B��G�
F��K�
J�s/�C�C$�	C5�4D�
C!�$
C2�5
D�
Dc�^�"SS5mU4SjnU"5RSnUR[TRU5 g)Nc�(^�\rSrSrU4SjrSrU=r$)�&TestSuper.test_cell_as_self.<locals>.Xi=c�>�[5 grQr?r%s �r�meth�+TestSuper.test_cell_as_self.<locals>.X.meth>rErr)rrrrrSrr/r0s@rr�rQ=rFrr�c�$>^�T"5mU4SjnU$)Nc�>�T$rQr)�ks�r�g�1TestSuper.test_cell_as_self.<locals>.f.<locals>.gCs����rr)rXrWr�s @�rr�&TestSuper.test_cell_as_self.<locals>.fAs�����A�
��Hrr)rr�r/rS)rr�cr�s   @r�test_cell_as_self�TestSuper.test_cell_as_self<s:���	�	�	�

�C�O�O�A������)�Q�V�V�Q�/rc�>�[[S5n[S5Hn[RU[U5 M  g)Ng�?i�)r$�float�range�__init__�int)r�sp�ir&s   �r�test_super_init_leaks�TestSuper.test_super_init_leaksIs/���
�5�#�
���t��A��N�N�2�s�A�&�rc�>�UR[S5 [[[[5 SSS5 g!,(df   g=f)Nzexpected at most�rr/r$rbr%s �r�test_super_argcount�TestSuper.test_super_argcountRs-���
�
#�
#�I�/A�
B��#�s�C� �C�
B�
B�s	�;�
A	c�>�UR[S5 [S[5 SSS5 g!,(df   g=f)N�argument 1 must be a typerrhr%s �r�test_super_argtype�TestSuper.test_super_argtypeVs*���
�
#�
#�I�/J�
K��!�S�M�L�
K�
K�s	�2�
Ac��[R"S5n[R"SUS9 SSKnSSS5 URWR
5R5S5 [R"S5 g!,(df   NS=f)Nz�
            class super:
                msg = "truly super"

            class C:
                def method(self):
                    return super().msg
            �shadowed_super)r��sourcerztruly super)	�textwrap�dedentr�ready_to_importrprXr3�method�unload)rrqrps   r�test_shadowed_global�TestSuper.test_shadowed_globalZsl�����
�	
���
*�
*�0@��
P�!�Q�����)�)�+�2�2�4�m�D����-�.�Q�
P�s�A>�>
Bc�~^�"SS5m"U4SjS5nURU"5R5S5 g)Nc��\rSrSrSrSrg)�,TestSuper.test_shadowed_local.<locals>.superik�quite superrN�rrrr�msgrrrrr$r{k����Crr$c�,>^�\rSrSrUU4SjrSrU=r$)�(TestSuper.test_shadowed_local.<locals>.Cinc�&>�T"5R$rQ)r~)rr&r$s ��rru�/TestSuper.test_shadowed_local.<locals>.C.methodos����w�{�{�"rr�rrrrrurr/)r&r$s@�rr3r�ns
���
#�
#rr3r|)rXru)rr3r$s  @r�test_shadowed_local�TestSuper.test_shadowed_localjs1���	 �	 �	#�	#�	
��������}�5rc���"SS5n"SS5n[[S3U5nURU"5R5S5 SSS5 g!,(df   g=f)Nc��\rSrSrSrSrg)�0TestSuper.test_shadowed_dynamic.<locals>.MySuperiu�super superrNr}rrr�MySuperr�urrr�c�(^�\rSrSrU4SjrSrU=r$)�*TestSuper.test_shadowed_dynamic.<locals>.Cixc�>�[TU]$rQ�r$r~r%s �rru�1TestSuper.test_shadowed_dynamic.<locals>.C.methody�
����w�{�"rrr�r0s@rr3r�x�
���
#�
#rr3�.superr��rrrXru)rr�r3�ms    r�test_shadowed_dynamic�TestSuper.test_shadowed_dynamictsO��	 �	 �	#�	#��h�Z�v�&��
0�A����Q�S�Z�Z�\�=�9�1�
0�
0�s�&A�
A%c�^�/m"U4SjS5n"SS5n[[S3U5nURU"5R5S5 URTS/5 SSS5 g!,(df   g=f)Nc�&>�\rSrSrU4SjrSrSrg)�8TestSuper.test_shadowed_dynamic_two_arg.<locals>.MySuperi�c�(>�TRU5 grQ)�append)r�args�	call_argss  �rra�ATestSuper.test_shadowed_dynamic_two_arg.<locals>.MySuper.__init__�s���� � ��&rr�rN)rrrrrar~r)r�s�rr�r��s
���
'��Crr�c�(^�\rSrSrU4SjrSrU=r$)�2TestSuper.test_shadowed_dynamic_two_arg.<locals>.Ci�c�>�[SS]$)Nrrr�r%s �rru�9TestSuper.test_shadowed_dynamic_two_arg.<locals>.C.method�s����Q���&rrr�r0s@rr3r��s
���
'�
'rr3r�r�)rrr�)rr�r3r�r�s    @r�test_shadowed_dynamic_two_arg�'TestSuper.test_shadowed_dynamic_two_argsg����	�	 �	 �
	'�	'��h�Z�v�&��
0�A����Q�S�Z�Z�\�=�9����Y���1�1�
0�
0�s�9A0�0
A>c��"SS5nUR[S5 U"5R5 SSS5 g!,(df   g=f)Nc�(^�\rSrSrU4SjrSrU=r$)�)TestSuper.test_attribute_error.<locals>.Ci�c�>�[TU]$rQr�r%s �rru�0TestSuper.test_attribute_error.<locals>.C.method�r�rrr�r0s@rr3r��r�rr3z%'super' object has no attribute 'msg')rrru�rr3s  r�test_attribute_error�TestSuper.test_attribute_error�s7��	#�	#��
#�
#�N�4[�
\�
�C�J�J�L�]�
\�
\���A�
Ac��"SS5nUR[S5 U"5R5 SSS5 g!,(df   g=f)Nc�(^�\rSrSrU4SjrSrU=r$)�'TestSuper.test_bad_first_arg.<locals>.Ci�c� >�[SU]5$)Nr�r$rur%s �rru�.TestSuper.test_bad_first_arg.<locals>.C.method�s����Q��,�.�.rrr�r0s@rr3r��s
���
/�
/rr3rl)rr/rur�s  r�test_bad_first_arg�TestSuper.test_bad_first_arg�s7��	/�	/��
#�
#�I�/J�
K�
�C�J�J�L�L�
K�
K�r�c��"SS5nU"5nSn[U[RURS4U[5UR[RS4U[UR[RS44nUHcnURUS9 Uupgp�n
UR	X�U5nUR[U5 URXg5 SSS5 SSS5 Me g!,(df   N=f!,(df   M�=f)Nc�(^�\rSrSrU4SjrSrU=r$)�)TestSuper.test_supercheck_fail.<locals>.Ci�c�>�[X]5$rQr�)r�type_�objr&s   �rru�0TestSuper.test_supercheck_fail.<locals>.C.method�s����U�/�1�1rrr�r0s@rr3r��s
���
2�
2rr3zOsuper\(type, obj\): obj \({} {}\) is not an instance or subtype of type \({}\).zinstance ofr�)�case)rbr�listr.�formatrr/ru)rr3r[�err_msg�casesr�r�r��type_str�obj_str�instance_or_type�regexs            r�test_supercheck_fail�TestSuper.test_supercheck_fail�s���	2�	2�
�C��
6�	��!�S�\�\�1�:�:�}�=�
����
�
�D�M�M�=�A�
��a�j�j�$�-�-��8�
���D����4��(�BF�?��H�/?����'7�(�K���+�+�I�u�=��H�H�U�(�>�	)�(��
>�=��	)�(�s$�/C;�C*�C;�*
C8�4C;�;
D
	c�l>�"SS5nURU"5R5[5 g)Nc�(^�\rSrSrU4SjrSrU=r$)�)TestSuper.test_super___class__.<locals>.Ci�c�,>�[5R$rQ)r$r&r%s �rru�0TestSuper.test_super___class__.<locals>.C.method�s����w�(�(�(rrr�r0s@rr3r��s
���
)�
)rr3)rXrur$)rr3r&s  �r�test_super___class__�TestSuper.test_super___class__�s'���	)�	)�	
��������u�-rc�>^^�"SS[5m"UU4SjS5mURT"5R5T5 g)Nc��\rSrSrSrg)�8TestSuper.test_super_subclass___class__.<locals>.mysuperi�rNrErrr�mysuperr��r�rr�c�$>�\rSrSrUU4SjrSrg)�2TestSuper.test_super_subclass___class__.<locals>.Ci�c�*>�T"TU5R$rQr0)rr3r�s ��rru�9TestSuper.test_super_subclass___class__.<locals>.C.method�s����q�$�'�1�1�1rrN)rrrrrur)r3r�s��rr3r��s
���
2�
2rr3)r$rXru)rr3r�r&s @@�r�test_super_subclass___class__�'TestSuper.test_super_subclass___class__�s3���	�e�	�	2�	2�	
��������w�/rc�t>^^�"SS[5mUUU4Sjn[[5HnU"S5 M
 g)Nc��\rSrSrSrg)�/TestSuper.test_unusual_getattro.<locals>.MyTypei�rNrErrr�MyTyper��r�rr�c�>�T"UT405n[T[U5]USS5 TRURS5 g)N�barr)r$r��__setattr__rXr�)r��mytyper�r&rs  ���r�test�-TestSuper.test_unusual_getattro.<locals>.test�s>����D�6�)�R�0�F��&�$�v�,�3�F�E�1�E����V�Z�Z��+r�foo1)r�r`�ADAPTIVE_WARMUP_DELAY)rr��_r�r&s`  @�r�test_unusual_getattro�TestSuper.test_unusual_getattro�s-���	�T�	�	,�
�,�-�A���L�.rc�~�"SS5n"SSU5n"SSU5n[[5H
nU"5 M g)Nc� �\rSrSrSrSrSrg)�(TestSuper.test_reassigned_new.<locals>.Ai�c��grQrrs rr��0TestSuper.test_reassigned_new.<locals>.A.__new__�s��rc�H�SUR;aURUlgg)Nr�)r�r�rs r�__init_subclass__�:TestSuper.test_reassigned_new.<locals>.A.__init_subclass__�s���C�L�L�0�"%�+�+�C�K�1rrN)rrrrr�r�rrrrrr��s��
�
.rrc��\rSrSrSrg)�(TestSuper.test_reassigned_new.<locals>.Bi�rNrErrrrr��r�rrc�(^�\rSrSrU4SjrSrU=r$)�(TestSuper.test_reassigned_new.<locals>.Ci�c�">�[TU]U5$rQr&r+s �rr��0TestSuper.test_reassigned_new.<locals>.C.__new__�s����w��s�+�+rrr�r0s@rr3r��s
���
,�
,rr3)r`r��rrrr3r�s     r�test_reassigned_new�TestSuper.test_reassigned_new�s;��	.�	.�	��	�	,��	,��,�-�A�
�C�.rc�^�"U4SjS5n"SSU5n"SSU5n[[5HnURU5 M g)Nc�,>�\rSrSr\U4Sj5rSrg)�6TestSuper.test_mixed_staticmethod_hierarchy.<locals>.Ai�c�J>�TRU5 TRU5 grQ)�assertFalse)rr��kwargsrs   �r�some�;TestSuper.test_mixed_staticmethod_hierarchy.<locals>.A.some�s���� � ��&�� � ��(rrN)rrrrr�rrr
s�rrr��s���
�
)��
)rrc�(^�\rSrSrU4SjrSrU=r$)�6TestSuper.test_mixed_staticmethod_hierarchy.<locals>.Bi�c�,>�[TU]"U/UQ70UD6$rQ�r$r)rr�r�r&s   �rr�;TestSuper.test_mixed_staticmethod_hierarchy.<locals>.B.some�s����w�|�C�9�$�9�&�9�9rr)rrrrrrr/r0s@rrr�s
���
:�
:rrc�2^�\rSrSr\U4Sj5rSrU=r$)�6TestSuper.test_mixed_staticmethod_hierarchy.<locals>.Ci�c�">�[TU]U5$rQrr+s �rr�;TestSuper.test_mixed_staticmethod_hierarchy.<locals>.C.some�s����w�|�C�(�(rr)rrrrr�rrr/r0s@rr3r�s���
�
)��
)rr3)r`r�rr�s`    r�!test_mixed_staticmethod_hierarchy�+TestSuper.test_mixed_staticmethod_hierarchy�sB���	)�	)�	:��	:�	)��	)�
�,�-�A�
�F�F�1�I�.rc�^^^�"SS5m"SS5mT"5mUUU4Sjn/n[S5H8n[R"US9nUR5 UR	U5 M: UHnUR5 M g)	z�Note: this test isn't actually testing anything on its own.
It requires a sys audithook to be set to crash on older Python.
This should be the case anyways as our test suite sets
an audit hook.
c��\rSrSrSrg)�@TestSuper.test___class___modification_multithreaded.<locals>.FooirNrErrr�Foorr�rrc��\rSrSrSrg)�@TestSuper.test___class___modification_multithreaded.<locals>.BarirNrErrr�Barrr�rrc�v>�Tn[S5H'nTUl[U5 TUl[U5 M) g)N��)r`r&r�)�foor�rr�things  ���r�work�ATestSuper.test___class___modification_multithreaded.<locals>.works2����C��3�Z�� #��
��S�	� #��
��S�	�	 r�)�targetN)r`�	threading�Thread�startr��join)rr�threadsr��threadrrrs     @@@r�)test___class___modification_multithreaded�3TestSuper.test___class___modification_multithreaded�st���	�	�	�	����	����q��A��%�%�T�2�F��L�L�N��N�N�6�"��
�F��K�K�M�rr)-rrrrrRrYr\r_rcrfrkrxr�r�r�r�r�r�r�r	r r0r;rMr\rerirmrwr�r�r�r�r�r�r�r�r�r�rr�requires_working_threadingr"rr/r0s@rrNrN2s�����
*�+�+�+�-�I�	(�!(�F"� � �%�& �(%�"'�>%�.�%��40�'�!��/� 6�	:�
2���)�6.�0�
��&�(�0�0�2��3�rrN�__main__)�__doc__rrr�unittest�
unittest.mockr�test.supportrrr�rrr3r;rCrHrK�TestCaserNr�mainrrr�<module>r,s���?�����8�����(��(�(��(�(��1�(�	��	����	��	�j��!�!�j�Z�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit