403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
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/test_capi/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/test_capi/__pycache__/test_slots.cpython-315.opt-1.pyc
R
>lqj�7c���]QHGsGs]PHs]PHs]PHs]PHs\OQ2s\OQ2s	QQ2s
QQ\O2sQQ	\O2s
P!)
�)�
import_helper�subTests�_testlimitedcapi�	_testcapic��\sQs]
sQsQsP!)�FakeSpec�module�)�__name__�
__module__�__qualname__�__firstlineno__�name�__static_attributes__r	��.C:\Python315\\Lib\test\test_capi\test_slots.pyrr
s���Drrc��`�\sQs]snQsQsQsQsQsQs	Qs
\QQ	Q
,2Q2sQs
Q
sQs\Q,\]]S2N\]X]\2N\]_]c2N\]k]m2N2Q2sQsQsQsUsP!)�TypeSlotsTestsc��[OQ2oUOUOQ2]{UmUO[29^tt^2QQU2oPPP2P!)%fhP!9h)�basic�MyTypec��\sQs]sQsP!)�1TypeSlotsTests.test_basic_type_slots.<locals>.Subr	�r
rrr
rr	rr�Subrs��rr)r�type_from_slots�assertEqualr
�attr�assertRaises�	TypeError��self�clsrs&  r�test_basic_type_slots�$TypeSlotsTests.test_basic_type_slotss]���.�.�w�7��������x�0�����
�
�y�
)�
)�
�c�
�*�
)�
)�
)�s�A-�-A>	�6A>	c��UO[Q29^tt^2[OQ2PPP2P!)%fhP!9h)zinvalid.* 100 .*Py_mod_name�foreign_slot��assertRaisesRegex�SystemErrorrr�r!s&r�test_mod_slot_in_type�$TypeSlotsTests.test_mod_slot_in_types4��
�
#�
#�K�1N�
O�
O��,�,�^�<�P�
O�
O�
O���A�A	�	A	c�X�[OQ2oUOUOQ2[OQ2oUOUO[OQ*2[OQ2oUOUO
]2P!)�	basicsize��extra_basicsize�itemsize)rr�assertGreaterEqual�
__basicsize__�object�__itemsize__�r!r"s& r�test_size_slots�TypeSlotsTests.test_size_slots#s����.�.�{�;������ 1� 1�3�7��.�.�/@�A������ 1� 1�6�3G�3G�#�3M�N��.�.�z�:������ 0� 0�"�5rc���[OQ2oUO[29^tt^2]{UmPPP2QQU2oP!)%fhK9h)�flagsc��\sQs]2sQsP!)�+TypeSlotsTests.test_flag_slots.<locals>.Subr	rr	rrrr=2s��rr)rrrrrr s&  r�test_flag_slots�TypeSlotsTests.test_flag_slots-sD���.�.�w�7��
�
�
�y�
)�
)��C�H�*�	�#�	�*�
)�s�A�A!	�A!	c�n�[OQ2oUOU2P*]{2P!)�
matmul_123)rrrr7s& r�test_func_slots�TypeSlotsTests.test_func_slots6s(���.�.�|�<���������s�+rc��UO[Q29^tt^2[OQ2oPPP2P!)%fhP!9h�zinvalid flags.*Py_slot_end�optional_endr'r7s& r�test_optional_end� TypeSlotsTests.test_optional_end:s6��
�
#�
#�K�1M�
N�
N�"�2�2�>�B�C�O�
N�
N�
N�r-c�b�UO[Q29^tt^2[OQ2oPPP2UO[QQ029^tt^2[OQ2oPPP2[OQ2oUO	UO
[O
Q*2[OQ2oUO	UO
[O
Q*2P!)%fhK�9h)%fhK�9h)�Py_slot_invalid�invalid�slot ID ��invalid_fbad�optional_invalidr0�optional_invalid_fbad)r(r)rrr3r4r5r7s& r�test_invalid�TypeSlotsTests.test_invalid>s���
�
#�
#�K�1B�
C�
C�"�2�2�9�=�C�D�
�
#�
#�K�8�F�8�1D�
E�
E�"�2�2�>�B�C�F��.�.�/A�B������ 1� 1�6�3G�3G�#�3M�N��.�.�/F�G������ 1� 1�6�3G�3G�#�3M�N�D�
C��
E�
E�s#�D�D�D	�D	�D.	�'D.	�	case_name�old_slot_numbers�new_slot_numbersc��[OU2oU2oUOUO]2[	U2oUO[U2Q2UOUO]2UO
2UOUO]2UO[29^tt^2QUQ$PPP2UO[U2Q2P!)%fhK-9h)rsbuf�value�key��)
rrr�buf_counter�
memoryview�bytes�releaser�KeyError�len)r!rSr"�obj�mems&&   r�test_compat_slot_numbers�'TypeSlotsTests.test_compat_slot_numbersJs����.�.�y�9���e��	
������!�,���o������s��X�.�������!�,����
�������!�,��
�
�x�
(�
(� �C��J�)�	
����S��3�'�	)�
(�s�C0�0D	�9D	c��UO[Q29^tt^2[OQ2PPP2P!)%fhP!9h)zPy_tp_members.*STATIC�nonstatic_tp_membersr'r*s&r�test_nonstatic_tp_members�(TypeSlotsTests.test_nonstatic_tp_members^s5��
�
#�
#�K�1H�
I�
I��,�,�-C�D�J�
I�
I�
I�r-c��[OQ2oUO[29^tt^2]{UmPPP2[OQ2oUO[29^tt^2]{UmPPP2[OQ2o]{UmP!)%fhKp9h)%fhKA9h)�intptr_flags_macro�intptr_flags_struct�
intptr_static)rrrrr�	attributer7s& r�test_intptr_flags� TypeSlotsTests.test_intptr_flagsbs����.�.�/C�D��
�
�
�y�
)�
)��C�H�*��.�.�/D�E��
�
�
�y�
)�
)��C�H�*��.�.��?����
�*�
)��
*�
)�s#�B$�6B7�$B4	�-B4	�7C	�C	c��[OQ2oUOU2]*]{2UOU2]*
]�2[OQ2oUOU2]*]{2UOU2]*
]�2UOU2]*Q2UOU2]*Q2UOU2]*Q2UO[Q29^tt^2[OQ2PPP2[OQ2oUOU2]*]{2UOU2]*
]�2[OQ2oUOU2]*]{2UOU2]*
]�2UOU2]*Q2UOU2]*Q2UOU2]*Q2UO[Q29^tt^2[OQ	2PPP2[OQ
2oUOU2]*]{2UOU2]*
]�2UOU2]*Q2UOU2]*Q2UOU2]*Q2P!)%fhCK�9h)%fhK�9h)�nested�
nested_max�YrY�7�too many levels�nested_over_limit�
nested_old�nested_old_max�nested_old_over_limit�nested_pingpong)rrrr(r)r7s& r�test_nested�TypeSlotsTests.test_nestedpsc���.�.�x�8���������C�(��������C�(��.�.�|�<���������C�(��������C�(��������C�(��������C�(��������C�(�
�
#�
#�K�1B�
C�
C��,�,�-@�A�D��.�.�|�<���������C�(��������C�(��.�.�/?�@���������C�(��������C�(��������C�(��������C�(��������C�(�
�
#�
#�K�1B�
C�
C��,�,�-D�E�D��.�.�/@�A���������C�(��������C�(��������C�(��������C�(��������C�(�-D�
C�
C��D�
C�s$�L�L3�L0	�(L0	�3M	�<M	�slot_numberc��U]86XcP!U]H6XfU]_6�cUO[Q2oSoL+UO[Q2o[O
2oU9^tt^2[OU2PPP2U]_6c+U9^tt^2[OU2PPP2P!P!)%fhKC9h)%fhP!9h)�8z!NULL not allowed|must be positive�NULL)	r(r)�assertWarnsRegex�DeprecationWarning�
contextlib�nullcontextr�type_from_null_slot�type_from_null_spec_slot�r!r|�ctx�ctx_olds&&  r�test_null_slot_handling�&TypeSlotsTests.test_null_slot_handling�s����"���
�B�
�+��"3��(�(��@�B�C��G��'�'�(:�F�C�C� �,�,�.�G�
�S��0�0��=������� �9�9�+�F�����S�����s$�'B8�C�8C	�C	�C	�C	c���UO[Q29^tt^2[OQ2oPPP2UO	W2]*Q2P!)%fhK09h)�multiple�
repeat_addrY)r�r�rrrr7s& r�test_repeat_warning�"TypeSlotsTests.test_repeat_warning�sL��
�
"�
"�#5�z�
B�
B�"�2�2�<�@�C�C��������C�(�C�
B�s�A�A.	�'A.	c��UO[Q29^tt^2[OQ2oPPP2P!)%fhP!9h)r��
repeat_moduler'r7s& r�test_repeat_error� TypeSlotsTests.test_repeat_error�s4��
�
#�
#�K��
<�
<�"�2�2�?�C�C�=�
<�
<�
<�r-r	)r
rrr
r#r+r8r>rBrGrQrrbrfrmrz�ranger�r�r�r�__classdictcell__��
__classdict__s@rrrs�����
�=�6��,�C�
O��k�.�0B�C�D�(�E�(�&E��")�N�m��	�q�"���	�r�2���
�r�2���
�s�C��	��G�
�G�$)�
D�Drrc�<`�\sQs]�snQsQsQsQsQsQs	Qs
\QQ	Q
,2Q2s\QQQ
,2Q2s
\Q]]W,2Q2sQsQsQsQs\Q,\]]2N\]T]X2N\]d]k2N\]m]o2N2Q2sQsQsQsUsP!)�ModuleSlotsTestsc��[OQ[22oUOU[O
2P!)r)r�module_from_slotsr�assertIsInstance�types�
ModuleType�r!�mods& r�test_basic_module_slots�(ModuleSlotsTests.test_basic_module_slots�s,���0�0��(�*�E�����c�5�#3�#3�4rc��UO[Q29^tt^2[OQ[	22PPP2P!)%fhP!9h)zinvalid.* 95 .*Py_tp_namer&�r(r)rr�rr*s&r�test_type_slot_in_module�)ModuleSlotsTests.test_type_slot_in_module�s8��
�
#�
#�K�1L�
M�
M��.�.�~�x�z�J�N�
M�
M�
M���A	�	A	�A	c�|�[OQ[22oUOUO]*2P!)�
state_size)rr�rrr�r�s& rr8� ModuleSlotsTests.test_size_slots�s*���0�0��x�z�J���������,rc�D�[OQ[22oP!)�multi_interp)rr�rr�s& rr>� ModuleSlotsTests.test_flag_slots�s���0�0����L�rc�|�[OQ[22oUOUOQ2P!)�exec�yes�rr�rr�	exec_doner�s& r�test_exec_slot�ModuleSlotsTests.test_exec_slot�s*���0�0����D���������.rc��UO[Q29^tt^2[OQ[	22PPP2P!)%fhP!9hrEr�r*s&rrG�"ModuleSlotsTests.test_optional_end�s8��
�
#�
#�K�1M�
N�
N��.�.�~�x�z�J�O�
N�
N�
N�r�c�V�UO[Q29^tt^2[OQ[	22PPP2UO[QQ029^tt^2[OQ[	22PPP2[OQ[	22oUOUOQ2[OQ[	22oUOUOQ2P!)%fhK�9h)%fhK�9h)rJrKrLrMrNrOr�rP)r(r)rr�rrr�r�s& rrQ�ModuleSlotsTests.test_invalid�s���
�
#�
#�K�1B�
C�
C��.�.�y�(�*�E�D�
�
#�
#�K�8�F�8�1D�
E�
E��.�.�~�x�z�J�F��0�0�1C�X�Z�P���������.��0�0�1H�(�*�U���������.�D�
C��
E�
E�s#�D�(D�D	�D	�D(	�!D(	rSrTrUc�|�[OU[22oUOUOQ2P!)r�r�)r!rSr�s&& rrb�)ModuleSlotsTests.test_compat_slot_numbers�s*���0�0��H�J�G���������.r�old_slot_number_create�new_slot_number_createc�h�[2o[OV2oUOV22P!�N)rrr��assertIs)r!rS�specr�s&&  r�test_compat_slot_number_create�/ModuleSlotsTests.test_compat_slot_number_create�s%���z���0�0��A���
�
�c� rr|c��[2o[O2o[O	V2oUOU[O22P!r�)r�sys�_is_gil_enabledr�module_from_gil_slotr)r!r|r��gil_enabledr�s&&   r�test_compat_slot_number_gil�,ModuleSlotsTests.test_compat_slot_number_gil�s@���z���)�)�+���3�3�K�F������c�&9�&9�&;�<rc��UO[Q29^tt^2[OQ[	22PPP2P!)%fhP!9h)zPy_mod_methods.*STATIC�nonstatic_mod_methodsr�r*s&r�test_nonstatic_mod_methods�+ModuleSlotsTests.test_nonstatic_mod_methods�s<��
�
#�
#�K�1I�
J�
J��.�.�/F�/7�z�
;�K�
J�
J�
J�r�c��[OQ[22oUOUOO
Q2P!)�intptr_methodsr)rr�rrrr
r�s& r�test_intptr_methods�$ModuleSlotsTests.test_intptr_methods�s7���0�0�1A�19��=������,�,�5�5�7H�Irc�n�[OQ[22oUOUOQ2UOUO
Q2[OQ[22oUOUOQ2UOUO]52UOUO
Q2UO[Q29^tt^2[OQ[22PPP2[OQ[22oUOUOQ2UOUO
Q2[OQ[22oUOUOQ2UOUO]52UOUO
Q2UO[Q29^tt^2[OQ[22PPP2[OQ	[22oUOUOQ2UOUO]52UOUO
Q2P!)%fhCK�9h)%fhK�9h)
rpr��docrqrtrurvrwrxry)	rr�rrr��__doc__r�r(r)r�s& rrz�ModuleSlotsTests.test_nested�s����0�0��8�:�F���������.�������e�,��0�0��x�z�J���������.��������,�������e�,�
�
#�
#�K�1B�
C�
C��.�.�/B�H�J�O�D��0�0��x�z�J���������.�������e�,��0�0�1A�8�:�N���������.��������,�������e�,�
�
#�
#�K�1B�
C�
C��.�.�/F��
�S�D��0�0�1B�H�J�O���������.��������,�������e�,�%D�
C�
C��D�
C�s$�(J�5J$�J!	�J!	�$J4	�-J4	c��UO[Q29^tt^2[O[	22PPP2P!)%fhP!9h)zmust be static)r(r)r� module_from_def_nonstatic_nestedrr*s&r�test_nested_nonstatic_from_def�/ModuleSlotsTests.test_nested_nonstatic_from_defs6��
�
#�
#�K�1A�
B�
B��6�6�x�z�B�C�
B�
B�
B�s�A�A	�A	c���UQ7cP!UQ7fU]U6�cUO[Q2oSoL+UO[Q2o[O
2oU9^tt^2[OU[22PPP2U9^tt^2[OU[22PPP2P!)%fhKC9h)%fhP!9h)�zNULL not allowedr>r���V�W�f>��U)r(r)r�r�r�r�r�module_from_null_slotrr�module_from_null_def_slotr�s&&  rr��(ModuleSlotsTests.test_null_slot_handlings����-�-��
�G�
#�{�R�'7��(�(��6H�I�C��G��'�'�(:�F�C�C� �,�,�.�G�
�S��2�2�;��
�K��
�W��/�/��08�
�
<��W��S��
�W�W�s$�'C�C�C	�
C	�C%	�C%	c��UO[Q29^tt^2[OQ[	22PPP2UO[Q29^tt^2[OQ[	22PPP2UO[Q29^tt^2[OQ[	22PPP2P!)%fhK�9h)%fhKj9h)%fhP!9h)r��
repeat_create�repeat_exec�
repeat_gilr�r*s&rr��"ModuleSlotsTests.test_repeat_error4s���
�
#�
#�K��
<�
<��.�.���
�K�=�
�
#�
#�K��
<�
<��.�.�}�h�j�I�=�
�
#�
#�K��
<�
<��.�.�|�X�Z�H�=�
<�	=�
<��
<�
<��
<�
<�
<�s5�C�%C&�*C9�C#	�C#	�&C6	�/C6	�9D
	�D
	c�&�[OoU[[Q5oUO	UO2U[[,2UP[Q5oUO	UO2U[[,2UP[1Q5oUO	UO2U[[,2U[Q5oUO	UO2U[[,2U[1Q5oUO	UO2U[[,2QQ2oU[Q5oU[V2[1Q5oUO	UO2VCU[[,2UO[Q29^tt^2UPQ5PPP2UO[Q29^tt^2UQQ5PPP2P!)%fhKB9h)%fhP!9h))�base�bases)r�c��\sQsQsQsP!)�1ModuleSlotsTests.test_bases_slots.<locals>.Custom�Qr	rr	rr�Customr�Qs��rr�)r�z#bases must be types; got 'NoneType'zbases must be types; got 'str'za string)	r�type_from_base_slots�int�floatr�mror5r(r)r!�creater"r��subs&    r�test_bases_slots�!ModuleSlotsTests.test_bases_slots<s���!�6�6���#�U�+���������S�%��$8�9��$�c�*���������S�#�v�$6�7��$�s�f�-���������S�#�v�$6�7��#����������S�#�v�$6�7��3�&�!���������S�#�v�$6�7�	�	��3����%��S�'9�:���������S�#�s�F�$C�D��
#�
#�I�$I�K�K����K��
#�
#�I�$D�F�F���$�F�F�K�K��F�F�F�s$�(
G,�
G?�,G<	�5G<	�?H	�H	r	)r
rrr
r�r�r8r>r�rGrQrrbr�r�r�r�rzr�r�r�r�r�rr�r�s@rr�r��s����5�K�-�M�/�K�
/��k�.�0B�C�D�/�E�/��k�4�6N�O�P�!�Q�!�
�m�a��W�%�=�&�=�;�
J�
-�<C��m��	�q�!���	�r�2���
�s�C���
�s�C��	��<�
�<�"I�!%�!%rr�)�test.supportrrr��unittestr�r��
import_modulerrr�TestCaserr�r	rr�<module>r�sk��0����
� �.�.�/A�B���'�'��4�	���dD�X�&�&�dD�Le%�x�(�(�e%r

Youez - 2016 - github.com/yon3zu
LinuXploit