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_exceptions.cpython-315.pyc
R
>lqjSpc��]PHs]PHs]PHs]PHs]PHs]PHs]QHGs]QH G	s	G
s
]QH,GsG
s
]QH8GsGs]QHDGs]QHLGs\	O*Q2s\	O*Q2sPsQ	Q
\2sQQ\O62sQ
Q\O62sQQ\O62sQQ\2s QQ\O62s!QQ\\O62s"\#Q6Xc\OH2P!P!)�)�support)�
import_helper�force_not_colorized)�TESTFN�TESTFN_UNDECODABLE)�assert_python_failure�assert_python_ok)�ExceptionIsLikeMixin)�
decode_stderr�	_testcapi�_testinternalcapic��\sQs]sQsP!)�CustomError���__name__�
__module__�__qualname__�__firstlineno__�__static_attributes__r��3C:\Python315\\Lib\test\test_capi\test_exceptions.pyrrs��rrc�@`�\sQs]snQsQsQsQsQsQs	Us
P!)�Test_Exceptionsc��[Q2o[Q2oUg[c�o[O2o[
O
S2o[O2o[
O
S2o[O2oSOXS2SOXQ2SOXE2SOX�2SOXr2SOXg2Po=P!Po=hh9h��5�TEST)�
ValueError�	TypeError�fail�sys�	exceptionr�
set_exception�assertEqual)	�self�raised_exception�new_exc�e�orig_sys_exception�orig_exception�new_sys_exception�
new_exception�reset_sys_exceptions	&        r�test_exception�Test_Exceptions.test_exceptions���%�c�?���F�#��	.�"�"���
	?�!$�����&�4�4�W�=�N� #�
�
���%�3�3�N�C�M�"%�-�-�/�����^�/����^�>����/�@����0�A����]�4����.�>�>��
	?�s��	D�D�CC;�;Dc�z�[Q2o[Q2oUg[CcoSOo[O
2o[OSOSP2o[O
2o[OSo[O
2o	SOS]*S2SOXaOX12SOXV2SOX�2SOX�OSP12SOXx2Po=P!Po=hh9hr)rr�
assertTrue�
__traceback__r!�exc_infor�set_exc_info�	__class__r$�assertSequenceEqual)
r%r&r'r(�tb�orig_sys_exc_info�
orig_exc_info�new_sys_exc_info�new_exc_info�reset_sys_exc_infos
&         r�
test_exc_info�Test_Exceptions.test_exc_info2s��%�c�?���F�#��	#�"�"���	E����B� #�����%�2�2�7�3D�3D�g�t�T�M�"�|�|�~��$�1�1�=�A�L�!$��������]�1�-�q�1��$�$�]�5O�5O�Qa�4f�g��$�$�%6�F��$�$�%7�G��$�$�\�4E�4E�w�PT�3U�V��$�$�%5�D�D��	E�s��
D:�D:�DD5�5D:c��[OQ2o[QU2oUOO	2oUOUQQ,2P!)z�            import _testcapi

            def foo():
                _testcapi.function_set_warning()

            foo()  # line 6


            foo()  # line 9
        �-cs0<string>:6: RuntimeWarning: Testing PyErr_WarnExs0<string>:9: RuntimeWarning: Testing PyErr_WarnEx��textwrap�dedentr�err�
splitlinesr$�r%�code�proc�warningss&   r�test_warn_with_stacklevel�)Test_Exceptions.test_warn_with_stacklevelIsP�����
 �

�� ��d�+���8�8�&�&�(������?�?�$
�	rc��[OQ2o[QU2oUOO	2oUOUQ,2P!)z�            import _testcapi

            class Foo:
                def foo(self):
                    _testcapi.function_set_warning()
                def __del__(self):
                    self.foo()

            ref = Foo()
        r@s0<string>:7: RuntimeWarning: Testing PyErr_WarnExrArFs&   r�test_warn_during_finalization�-Test_Exceptions.test_warn_during_finalization\sO�����
 �

�� ��d�+���8�8�&�&�(��	
����?�$
�	rc��[OoQQ[Q21FD{oUOUQ59^tt^2UO	[29^tt^2oUU2PPP2UOWOOU12PPP2J}	P!)%fhKE9h)%fhJ�9h)�key�arg)rQ����)r�_pyerr_setkeyerror�KeyError�subTest�assertRaisesr$r"�args)r%rVrQ�cms&   r�test__pyerr_setkeyerror�'Test_Exceptions.test__pyerr_setkeyerrorps���.�A�A����
�U�O�
�C����#��&�&��&�&�x�0�0�B�'�s�+�	1�
� � ����!2�!2�S�F�;�
'�&�
�1�0��'�&�&�s/�B5	�	B"
�%/B5	�"B2�+B2�-B5	�5C
�>C
r)rrrrr.r=rJrMr\r�__classdictcell__��
__classdict__s@rrrs#����.�,#�.�&�(<�<rrc�Z`�\sQs]�snQQks\O2Q2sQsUs	P!)�Test_FatalErrorc��[O29^tt^2[QQU2vqEoPPP2[W2oUO	QU2[
OQU[
O2oU%fUOQU802[UO]2O2OQ22o[UO]22o	SFDo
UO	V�2J	SFDo
UOV�2J	UO[!U2U	2P!)%fhCK9h)z-sSIr@z8Fatal Python error: _testcapi_fatal_error_impl: MESSAGE
z,^Extension modules:(.*) \(total: ([0-9]+)\)$z$Cannot find 'Extension modules:' in z, )r�SuppressCrashReportrr
�assertIn�re�search�	MULTILINEr �set�group�strip�split�int�assertNotInr$�len)r%rG�expected�not_expected�rc�outrD�match�modules�total�names&&&&       r�check_fatal_error�!Test_FatalError.check_fatal_error�s���
�
(�
(�
*�
*�0���t�D�L�B�S�+��C� ���
�
�Q��	��	�	�I��r�|�|�-����I�I�<�S�G�D�E��e�k�k�!�n�*�*�,�2�2�4�8�9���E�K�K��N�#���D��M�M�$�(�� �D����T�+�!�����W��u�-�%+�
*�
*�s�D<�<E
	�E
	c�f�QoQoQoUOV1U2QoQoQoUOV12P!)rz8import _testcapi, sys; _testcapi.fatal_error(b"MESSAGE")z�if True:
            import _testcapi, sys
            sys.stdlib_module_names = frozenset({"_testcapi"})
            _testcapi.fatal_error(b"MESSAGE")
        )r)r!)rx)r%rprqrGs&   r�test_fatal_error� Test_FatalError.test_fatal_error�sF��"����I�����t�|�<���%����
	
���t�.rr)r)
rrrrrxr�requires_subprocessr{rr^r_s@rrbrb�s'����.�*
� � �"�/�#�/rrbc�x`�\sQs]�snQsQsQsQsQsQs	Qs
Qs\Q	2s
Q
s\Q2sQsUsP!)
�Test_ErrSetAndRestorec�H�UO[29^tt^2[O[22PPP2[2o[OU2P!)%fhK29h[coSO	X2Po=P!Po=hh9h�N)rYrr�err_set_raised�assertIs)r%�v�exs&  r�test_err_set_raised�)Test_ErrSetAndRestore.test_err_set_raised�sk��
�
�
�z�
*�
*��$�$�Z�\�2�+��L��	!��$�$�Q�'�	+�
*��
�	!��M�M�!� � ��	!�s/�A'�A:�'A7	�0A7	�:	B!�B!�B�B!c��UO[29^tt^2[O[2PPP2UO[29^tt^2[O[]2PPP2UO[29^tt^2[O[]P2PPP2UO[29^tt^2[O[[22PPP2[O[Q2]]*UO[29^tt^2[O[]W2PPP2UO[29^tt^2[O[]]2PPP2[O[]W2P!)%fhCK�9h)%fhCKs9h)%fhCKF9h)%fhCK9h[c/oSOQSO]*2Po=CK.Po=hh9h[coSOoPo=CKIPo=hh9h)%fhCK!9h)%fhK�9h[cUoSO]SO]*2SOWSOO2Po=P!Po=hh9h)N�hi)rYrr�err_restorerWr$rZ�	Exceptionr2rr��tb_next)r%�kr(r7r�s&    r�test_err_restore�&Test_ErrSetAndRestore.test_err_restore�s���
�
�
�z�
*�
*��!�!�*�-�+�
�
�
�z�
*�
*��!�!�*�a�0�+�
�
�
�z�
*�
*��!�!�*�a��6�+�
�
�
�z�
*�
*��!�!�*�j�l�;�+�	.��!�!�(�D�1�	!�
�a�C��
�
�z�
*�
*��!�!�*�a��4�+�
�
�
�y�
)�
)��!�!�*�a��3�*�	7��!�!�*�a��4�++�
*�
*��
*�
*�
*��
*�
*�
*��
*�
*�
*���	.����T�1�6�6�!�9�-�-��	.���	!����B��	!��
*�
*�
*��
)�
)���	7����Q����q�	�*��M�M�"�a�o�o�5�5�6�6��	7�s��G�G#�G7�#H�H�&	I�J�
J�2J'�G 	�G 	�#G4	�,G4	�7H	�H	�H	�H	�	I�)I�*#I�I�	I=�%I=�&I8�8I=�J	�	J	�J$	�J$	�'	L�1L�2A	L�Lc
�D�UO[29^tt^2o[O[]*2PPP2UO	WO
OQ2UO[29^tt^2o[O[[]]]22PPP2UO
O]*oUOU[2UO	UOQ2UO[29^tt^2o[O[[]22PPP2UO	UO
OQ2QQ[2oQQ[UQ5oUO[29^tt^2o[OVD22PPP2P!)%fhCK�9h)%fhCKE9h)%fhK�9h)%fhP!9h)	�*c�(`�\sQs]�snQsQsUsP!)�3Test_ErrSetAndRestore.test_set_object.<locals>.Metac��]]*P!)rSr)�cls�subs&&r�__subclasscheck__�ETest_ErrSetAndRestore.test_set_object.<locals>.Meta.__subclasscheck__�s���!��rr)rrrrr�rr^r_s@r�Metar��s����
�
rr�c��\sQs]�sQsP!)�5Test_ErrSetAndRestore.test_set_object.<locals>.Brokenrrrrr�Brokenr��s��rr�)�	metaclass)r�rR)�)rYrr�exc_set_objectr$r"rZr�assertIsInstance�PermissionError�OSError�typer��ZeroDivisionError)r%r(�wrappedr�r�s&    r�test_set_object�%Test_ErrSetAndRestore.test_set_object�sq���
�
�z�
*�
*�a��$�$�Z��4�+�������)�)�5�1��
�
�z�
*�
*�a��$�$�Z��1�Q�q�1A�B�+��+�+�"�"�1�%�����g�y�1�������y�1��
�
��
/�
/�1��$�$�W�o�b�.A�B�0�������)�)�5�1�	�4�	�	�Y�$�	��
�
�0�
1�
1�Q��$�$�V�V�X�6�2�
1�/+�
*�
*��
+�
*�
*��0�
/��2�
1�
1�sG�G�&G'�$G;�.H�G$	�G$	�'G8	�0G8	�;H	�H	�H	�H	c�~�QQ[2o[OUQ2oUOU[2UOUO]*Q2QQ2o[OV22oUOU[2UOUO]*Q2P!)c�(`�\sQs]�snQsQsUsP!)�?Test_ErrSetAndRestore.test_set_object_and_fetch.<locals>.Brokenc��[Q2g)zBroken __init__)r)r%rQs&*r�__init__�HTest_ErrSetAndRestore.test_set_object_and_fetch.<locals>.Broken.__init__�s�� �!2�3�3rr)rrrrr�rr^r_s@rr�r��s����
4�
4rr��abcdz-Normalization failed: type=Broken args='abcd'c�(`�\sQs]�snQsQsUsP!)�?Test_ErrSetAndRestore.test_set_object_and_fetch.<locals>.BadArgc��[Q2g)zBroken arg type)r�r%s&r�__repr__�HTest_ErrSetAndRestore.test_set_object_and_fetch.<locals>.BadArg.__repr__�s��� 1�2�2rr)rrrrr�rr^r_s@r�BadArgr��s����
3�
3rr�z0Normalization failed: type=Broken args=<unknown>)r�r�exc_set_object_fetchr�rr$�	__notes__)r%r��excr�s&   r�test_set_object_and_fetch�/Test_ErrSetAndRestore.test_set_object_and_fetch�s���	4�Y�	4��,�,�V�V�<�����c�:�.�������q�)�H�	J�	3�	3��,�,�V�V�X�>�����c�:�.�������q�)�K�	Mrc��[OoUO[29^tt^2oU[Q2PPP2UO	WO
OQ2UO[29^tt^2oU[QO22PPP2UO	UO
OQ2UO[29^tt^2U[Q2PPP2UO[U[Q2P!)%fhK�9h)%fhK�9h)%fhKT9h)zTest PyErr_SetString()�error�помилка��)�error�r�)r�
err_setstringrYr�r$r"rZ�encode�UnicodeDecodeError�SystemError�list)r%�	setstringr(s&  r�test_set_string�%Test_ErrSetAndRestore.test_set_strings����+�+�	�
�
�
�0�
1�
1�Q��'��2�2�������)�)�:�6�
�
�
�0�
1�
1�Q��'�)9�)@�)@�)B�C�2�������)�)�+>�?�
�
�
�1�
2�
2��'��1�3����+�y�$��A�2�
1��2�
1��3�
2�s5�D#�D6�/E	�#D3	�,D3	�6E	�?E	�	E	�E	c
���[OQ2]QH
GoGoGoGoQo[V2oV#1UmV&m	UO[29^tt^2oU[QQU]*22PPP2UOWOOQ2UO[29^tt^2oU[QQO22PPP2UOUOOQ
2UO!["Q29^tt^2U[Q	UP22PPP2UO![$Q
29^tt^2U[Q2PPP2UO[&U[(Q2P!)%fhCK,9h)%fhK�9h)%fhK�9h)%fhKh9h)zTest PyErr_Format()�ctypes)�	pythonapi�	py_object�c_char_p�c_int�PyErr_Formats%s %dr�s%sr�znot in ranges%cz
format stringr�)zerror 42r�)r�
import_moduler�r�r�r�r��getattr�argtypes�restyperYr�r$r"rZr��assertRaisesRegex�
OverflowErrorrr�r�)r%r�r�r�r�rwr�r(s&       r�test_format�!Test_ErrSetAndRestore.test_formatsO���#�#�H�-�@�@����y�/��!*� 6���(��
�
�
�0�
1�
1�Q��*�H�h��b�	�J�2�������)�)�=�9�
�
�
�0�
1�
1�Q��*�E�3C�3J�3J�3L�M�2�������)�)�+>�?�
�
#�
#�M�>�
B�
B��*�E�5��9�=�C�
�
#�
#�J��
@�
@��*�G�4�A����+�|�T�8�D�2�
1�
1��2�
1��C�
B��
@�
@�sH�F�=F)�&F<�!G�F&	�F&	�)F9	�2F9	�<G	�G	�G	�G	c	�6�[Oo[OoUO	[
29^tt^2oUU[Q2PPP2UOWOOUQ12UOUOOU2UOUOOQ2UO	[
29^tt^2oUU[[O[22PPP2UOUOO[2[%cwUO	[
29^tt^2oUU[[2PPP2UOUOO[O[22UO	[
29^tt^2oUU[[ 2PPP2UO#UOO2UO	[29^tt^2oU][Q2PPP2UOUOOQ2UOUOO]2UOUOOQ2UO	[$29^tt^2oUU[$Q2PPP2UOUOOUQQ12P!)%fhCK�9h)%fhCK39h)%fhCK�9h)%fhCKw9h)%fhCK29h)%fhK�9h)z%Test PyErr_SetFromErrnoWithFilename()sfilezNo such file or directory�file)r�Error)r�err_setfromerrnowithfilename�errno�ENOENTrY�FileNotFoundErrorr�r$r"rZ�filename�os�fsencoderr�fsdecode�NULL�assertIsNoner�)r%�setfromerrnowithfilenamer�r(s&   r�test_setfromerrnowithfilename�3Test_ErrSetAndRestore.test_setfromerrnowithfilename-sq��#,�#I�#I� �����
�
�
�0�
1�
1�Q�$�V�W�g�>�2�������)�)� �"=�>�	@�������*�*�F�3�������-�-�v�6�
�
�
�0�
1�
1�Q�$�V�W�b�k�k�&�6I�J�2�������-�-�v�6����"�"�#4�5�5��(���:L�M�6����Q�[�[�1�1��[�[�);�<�
>��
�
�0�
1�
1�Q�$�V�W�d�;�2����!�+�+�.�.�/�
�
�
�w�
'�
'�1�$�Q���9�(�������)�)�<�8�������*�*�A�.�������-�-�v�6�
�
�
�0�
1�
1�Q�$�V�->��H�2�������)�)� �"=�v�F�	H�;2�
1�
1��2�
1�
1��
6�5�5��
2�
1�
1��(�
'�
'��2�
1�sk�L$�''L8�)M�M �<M4�"N�$L5	�-L5	�8M		�M		�M	�M	� M1	�)M1	�4N	�=N	�N	�N	c��[OoUOOOo[
O29^tt^2oU[Q2[2UOUOO[2UO[UOO2Q2UOUOOOU]*2UO!UOO"2UOUOO$[2PPP2[
O29^tt^2oU[Q2[&2UOUOO[2UO[UOO2Q2UOUOOOU]*2UO!UOO"2UO!UOO$2PPP2P!)%fhCK)9h)%fhP!9h)�oops!)r�err_writeunraisable�test_err_writeunraisable�__code__�co_firstlinenor�catch_unraisable_exceptionr�hexr$�
unraisable�exc_type�str�	exc_value�
exc_traceback�	tb_linenor��err_msg�objectr�)r%�writeunraisable�	firstliner[s&   rr��.Test_ErrSetAndRestore.test_err_writeunraisableRs���#�7�7���1�1�:�:�I�I�	�
�
/�
/�
1�
1�R��K��0�#�6����R�]�]�3�3�[�A����S����!8�!8�9�7�C����R�]�]�8�8�B�B�&��]�
,����b�m�m�3�3�4����R�]�]�1�1�3�7�2��
/�
/�
1�
1�R��K��0�$�7����R�]�]�3�3�[�A����S����!8�!8�9�7�C����R�]�]�8�8�B�B�&��^�
-����b�m�m�3�3�4����b�m�m�2�2�3�2�
1�2�
1�
1��2�
1�
1�s&�C6I%�*C1I9�%I6	�.I6	�9J
	�J
	c	��[Oo[O[QP29^tt^2[O
29^tt^2oU[
Q2[2PPP2PPP2WO2O2oUOU]*Q[802UOU]*Q2UOUP*[Q02[O[QP29^tt^2[O
29^tt^2oU[
Q2[2PPP2PPP2UO2O2oUOU]*Q2UOUP*[Q02P!)%fhCKS9h)%fhCK_9h)%fhK�9h)%fhK�9h)�unraisablehookr�zException ignored in: �"Traceback (most recent call last):�.CustomError: oops!)
rr�r�	swap_attrr!�captured_stderrrr��getvaluerEr$rr�)r%r��stderr�liness&   r�test_err_writeunraisable_lines�4Test_ErrSetAndRestore.test_err_writeunraisable_linesisc��#�7�7������%5�t�<�<��%�%�'�'�6��K��0�#�6�(�=����!�,�,�.������q��%;�C�7�#C�D�����q��#G�H�����r��x�j�0C�$D�E�����%5�t�<�<��%�%�'�'�6��K��0�$�7�(�=����!�,�,�.������q��#G�H�����r��x�j�0C�$D�E�(�'�'��=�<�<��(�'��=�<�s_�G	�F5	�+G	�G0�5G	�G0�5G
�>G
�	G	�	G	�G	�G-
�&G-
�(G0�0H	�9H	c�X�[OoUOOOo[
O29^tt^2oU[Q2Q,2UOUOO[2UO[UOO2Q2UOUOOOU]*2UOUOOQ2UO!UOO"2PPP2[
O29^tt^2oU[Q2Q2UOUOO[2UO[UOO2Q2UOUOOOU]*2UO!UOO2UO!UOO"2PPP2[
O29^tt^2oU[Q2[$2UOUOO[2UO[UOO2Q2UOUOOOU]*2UO!UOO2UO!UOO"2PPP2P!)%fhCK;9h)%fhCK=9h)%fhP!9h)r��Error in %RzError in []�
undecodable �)r�err_formatunraisable�test_err_formatunraisabler�r�rr�rr$r�r�r�r�r�r�r�r�r�r�)r%�formatunraisabler�r[s&   rr
�/Test_ErrSetAndRestore.test_err_formatunraisablest��$�9�9���2�2�;�;�J�J�	�
�
/�
/�
1�
1�R��[��1�>�2�F����R�]�]�3�3�[�A����S����!8�!8�9�7�C����R�]�]�8�8�B�B�&��]�
,����R�]�]�2�2�M�B����b�m�m�2�2�3�2��
/�
/�
1�
1�R��[��1�3F�G����R�]�]�3�3�[�A����S����!8�!8�9�7�C����R�]�]�8�8�B�B�&��^�
-����b�m�m�3�3�4����b�m�m�2�2�3�2��
/�
/�
1�
1�R��[��1�4�8����R�]�]�3�3�[�A����S����!8�!8�9�7�C����R�]�]�8�8�B�B�&��^�
-����b�m�m�3�3�4����b�m�m�2�2�3�2�
1�%2�
1�
1��2�
1�
1��2�
1�
1�s9�C/M0�#C-N�5C1N�0N	�9N	�N	�
N	�N)	�!N)	c	��[Oo[O[QP29^tt^2[O
29^tt^2oU[
Q2Q,2PPP2PPP2WO2O2oUOU]*Q2UOU]*Q2UOUP*[Q02[O[QP29^tt^2[O
29^tt^2oU[
Q2Q2PPP2PPP2UO2O2oUOU]*Q2UOUP*[Q02[O[QP29^tt^2[O
29^tt^2oU[
Q2[2PPP2PPP2UO2O2oUOU]*Q2UOUP*[Q02P!)%fhCK9h)%fhCK9h)%fhCKZ9h)%fhCKf9h)%fhK�9h)%fhK�9h)r�r�rzError in []:r�r�r)rr	rr�r!rrrrEr$rr�)r%rrrs&   r�test_err_formatunraisable_lines�5Test_ErrSetAndRestore.test_err_formatunraisable_lines�s���$�9�9������%5�t�<�<��%�%�'�'�6��[��1�>�2�F�(�=����!�,�,�.������q��\�3�����q��#G�H�����r��x�j�0C�$D�E�����%5�t�<�<��%�%�'�'�6��[��1�3F�G�(�=����!�,�,�.������q��#G�H�����r��x�j�0C�$D�E�����%5�t�<�<��%�%�'�'�6��[��1�4�8�(�=����!�,�,�.������q��#G�H�����r��x�j�0C�$D�E�'(�'�'��=�<�<��(�'�'��=�<�<��(�'��=�<�s��I:�I&	�(I:�J"�*J	�=J"�K	�&J6	�=K	�&I7
�/I7
�1	I:�:J	�J	�J
�J
�	J"�"J3	�+J3	�6K
�?K
�K	�	K	�K	r)rrrrr�r�r�r�r�r�r�r�rrr
rrr^r_s@rrr�sd����!�7�67�:M�&B� E�."H�J4�.�F��F�*4�@�F��Frrc�4``�\sQsQsnU1QksQsUsU9s!)�TestUnicodeTranslateError�c�,:�[RU_U-U@P!r�)�superr�)r%�encodingrZ�kwargsr5s&&*,�rr��"TestUnicodeTranslateError.__init__�s���
���$�)�&�)rr)rrrrr�rr^�
__classcell__�r5r`s@@rrr�s����*�*rrc�`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
QsQ
sQsQsQsQsQsQsUsP!)�TestUnicodeError��c��[U2oP!r�)r�)r%r��_s&& r�_check_no_crash� TestUnicodeError._check_no_crash�s����H�rc�V�[OoUOQ[U2P!��x)r�unicode_encode_get_start�_test_unicode_error_get_start�UnicodeEncodeError�r%�	get_starts& r�#test_unicode_encode_error_get_start�4TestUnicodeError.test_unicode_encode_error_get_start�� ���6�6�	��*�*�3�0B�I�Nrc�V�[OoUOQ[U2P!��x)r�unicode_decode_get_startr%r�r's& r�#test_unicode_decode_error_get_start�4TestUnicodeError.test_unicode_decode_error_get_start�� ���6�6�	��*�*�4�1C�Y�Orc�V�[OoUOQ[U2P!r")r�unicode_translate_get_startr%rr's& r�&test_unicode_translate_error_get_start�7TestUnicodeError.test_unicode_translate_error_get_start�� ���9�9�	��*�*�3�0I�9�Urc�
�QFDfvqEoV*oUOVrUQ59^tt^2UQVuUQ2oUOUU2U2UOU2PPP2Jh	P!)%fhJ}9h)�)r��start�utf-8�reason))r9rr�r9rSrS�r9rTrT�rrr�rrSr�r�
r)r9r9�)r9rBrC�r���r)rSrEr)rTrEr)rT���r�rXr$r)	r%�literalr�r(�obj_lenr:�c_start�objr�s	&&&&     rr%�.TestUnicodeError._test_unicode_error_get_start�sx��(
�#�G�G�"�#�C����c�E��B�B��w��G�X�F��� � ��3���9��$�$�S�)�C�B�%(
�$C�B�B�s�5A1	�1B
�:B
c�V�[OoUOQ[U2P!r")r�unicode_encode_set_start�_test_unicode_error_set_startr&�r%�	set_starts& r�#test_unicode_encode_error_set_start�4TestUnicodeError.test_unicode_encode_error_set_start�r+rc�V�[OoUOQ[U2P!r-)r�unicode_decode_set_startrOr�rPs& r�#test_unicode_decode_error_set_start�4TestUnicodeError.test_unicode_decode_error_set_start�r2rc�V�[OoUOQ[U2P!r")r�unicode_translate_set_startrOrrPs& r�&test_unicode_translate_error_set_start�7TestUnicodeError.test_unicode_translate_error_set_start�r7rc�B�]oV*o[QU*]U*2FD�oUOQVRUQ59^tt^2UQU]UQ2oUVv2UOUOU2UO	U2PPP2UOQVRUQ59^tt^2UQU]UQ2oVgmUOUOU2UO	U2PPP2J�	P!)%fhKz9h)%fhJ�9h)r9�C-API)rKr��	new_startr;r<�Py-APIrF)�rangerXr$r:r)r%rHr�rQrIrKr^r�s&&&&    rrO�.TestUnicodeError._test_unicode_error_set_start�s���������r�G�|�Q��[�9�I����g�3�Y��W�W��w��Q���B���#�)�� � ����I�6��$�$�S�)�X����h�C�i��X�X��w��Q���B��%�	�� � ����I�6��$�$�S�)�Y�X�:�W�W��Y�X�X��&�AC:	�,AD
	�:D

�D

�
D
�D
c�V�[OoUOQ[U2P!r")r�unicode_encode_get_end�_test_unicode_error_get_endr&�r%�get_ends& r�!test_unicode_encode_error_get_end�2TestUnicodeError.test_unicode_encode_error_get_end
� ���2�2���(�(��.@�'�Jrc�V�[OoUOQ[U2P!r-)r�unicode_decode_get_endrer�rfs& r�!test_unicode_decode_error_get_end�2TestUnicodeError.test_unicode_decode_error_get_end� ���2�2���(�(��/A�7�Krc�V�[OoUOQ[U2P!r")r�unicode_translate_get_endrerrfs& r�$test_unicode_translate_error_get_end�5TestUnicodeError.test_unicode_translate_error_get_end� ���5�5���(�(��.G��Qrc��QFDgvqEoV*oUOVrUQ59^tt^2UQU]UQ2oUOUU2U2UOU2PPP2Ji	P!)%fhJ~9h)r9)r��endr;r<))r9rrSr=r>r?r@rA)rSrSrS)rSrTrS�r9r9r9rw)r9rBr9rD)rSrErS)rTrErS)rTrFrSrG)	r%rHr�rgrIrv�c_endrKr�s	&&&&     rre�,TestUnicodeError._test_unicode_error_get_endsx��$
��G�%�(�#�C����c�#��>�>��w��Q��X�>��� � ����u�5��$�$�S�)�?�>�+$
�*?�>�>�s�6A2	�2B
�;B
c�V�[OoUOQ[U2P!r")r�unicode_encode_set_end�_test_unicode_error_set_endr&�r%�set_ends& r�!test_unicode_encode_error_set_end�2TestUnicodeError.test_unicode_encode_error_set_end4rjrc�V�[OoUOQ[U2P!r-)r�unicode_decode_set_endr|r�r}s& r�!test_unicode_decode_error_set_end�2TestUnicodeError.test_unicode_decode_error_set_end8rorc�V�[OoUOQ[U2P!r")r�unicode_translate_set_endr|rr}s& r�$test_unicode_translate_error_set_end�5TestUnicodeError.test_unicode_translate_error_set_end<rtrc�B�]oV*o[QU*]U*2FD�oUOQVRUQ59^tt^2UQU]UQ2oUVv2UOUOU2UO	U2PPP2UOQVRUQ59^tt^2UQU]UQ2oVgmUOUOU2UO	U2PPP2J�	P!)%fhKz9h)%fhJ�9h)r9r])rKr��new_endr;r<r_rF)r`rXr$rvr)r%rHr�r~rIrKr�r�s&&&&    rr|�,TestUnicodeError._test_unicode_error_set_end@s���������R�'�\�1�w�;�7�G����g�3�7��S�S��w��Q���B����%�� � ����'�2��$�$�S�)�T����h�C�G��T�T��w��Q���B��!��� � ����'�2��$�$�S�)�U�T�8�S�S��U�T�T�rbr)rrrrrr)r0r5r%rRrVrZrOrhrmrrrerr�r�r|rr^r_s@rrr�sk�����O�P�V�*�0O�P�V�*�$K�L�R�*�6K�L�R�*�*rrc�R``�\sQsQsnU1QksQsQsQsQsQs	Qs
UsU9s!)	�#Test_PyUnstable_Exc_PrepReraiseStar�Sc�:�[RU_2[Q[Q2[	]*2,2g[coXmPo=P!Po=hh9h)�egzbad type)r�setUp�ExceptionGrouprr�orig)r%r(r5s& �rr��)Test_PyUnstable_Exc_PrepReraiseStar.setUpUsC���
��
��	� ��	�*�(=�z�"�~�'N�O�O���	��I�I��	�s� 2�	A�A�A	�	Ac
���UO[Q29^tt^2[O]*P,2PPP2UO[Q29^tt^2[OUO]*2PPP2UO[Q29^tt^2[OUO[]*2]*,2PPP2UO[
Q29^tt^2[O[]*2[]*2,2PPP2UO[
Q29^tt^2[O[
Q[]*2,2[]*2,2PPP2P!)%fhCKW9h)%fhCK$9h)%fhK�9h)%fhK�9h)%fhP!9h)zorig must be an exceptionzexcs must be a listznot an exceptionzorig must be a raised exceptionr�)r�rr�unstable_exc_prep_reraise_starr�rr�r�s&r�test_invalid_args�5Test_PyUnstable_Exc_PrepReraiseStar.test_invalid_args\sR��
�
#�
#�I�/J�
K�
K��4�4�R�$��@�L��
#�
#�I�/D�
E�
E��4�4�T�Y�Y��C�F��
#�
#�I�/A�
B�
B��4�4�T�Y�Y��2��PR�@S�T�C��
#�
#�J�0Q�
R�
R��4�4�Z��^�i�PR�m�_�U�S��
#�
#�J�0Q�
R�
R��4�4�^�D�:�VX�>�JZ�5[�6?��m�_�
F�S�
R�L�
K�
K��F�
E�
E��C�
B��S�
R��S�
R�
R�sY�F�!F�%,F.�7*G�5G�F	�F	�F+	�#F+	�.F>	�7F>	�G	�
G	�G%	�G%	c��UO[OUOP,2P2[	]*2g[c
oSoPo=LPo=hh9hSO[OSP,2P2P!r�)r$rr�r�r)r%r(r�s&  r�test_nothing_to_reraise�;Test_PyUnstable_Exc_PrepReraiseStar.test_nothing_to_reraisensp������4�4�T�Y�Y���G��	O�	��R�.� ���	��D��	������4�4�T�D�6�B�D�	Js�?�	A�	A�
A�Ac�n�UOo[OV,2oUOV!2P!r�)r�rr��assertExceptionIsLike)r%r��ress&  r�test_reraise_orig�5Test_PyUnstable_Exc_PrepReraiseStar.test_reraise_origys+���y�y���6�6�t�V�D���"�"�3�-rc	�J�UOoUO[2vq#V#,U1V2,U1U,U1U,U1,P1,oSFDNvqVUOUQ59^tt^2[OV2oUO
Vv2PPP2JP	P!)%fhJe9h)N��input)r�rlrrXrr�r�)r%r�rt�rest�
test_casesr�rpr�s&       r�test_raise_orig_parts�9Test_PyUnstable_Exc_PrepReraiseStar.test_raise_orig_parts~s����y�y���j�j��+����]�D�!��]�D�!��W�e���V�T�N�
��J�
�
� *�O�E����E��*�*��>�>�t�K���*�*�3�9�+�*� *�*�*�*�s�'B	�B"
�B"
c���UOoUO[2vq#[Q2o[	Q2oVBU,[PVA,21V$U,[PVA,21V#U,[PVA,21VEV#,[PVEU,21VBVS,[PVEU,21VSV$,[PVTU,21V5V$,[PVTU,21VEU,[PVEU,21VBU,[PVEU,21V5U,[PVTU,21VE,[PVE,21VT,[PVT,21,oSFDNvqxUO
UQ59^tt^2[OV2o	UOV�2PPP2JP	P!)%fhJe9h)zbad filezbad runtimer�)
r�rlrr��RuntimeErrorr�rXrr�r�)
r%r�rtr��new1�new2r�r�rpr�s
&         r�test_raise_with_new_exceptions�BTest_PyUnstable_Exc_PrepReraiseStar.test_raise_with_new_exceptions�s����y�y���j�j��+����z�"���M�*���4�
 �.��d�\�"B�C��4�
 �.��d�\�"B�C��4�
 �.��d�\�"B�C��%�
&��r�D��;M�(N�O��4�
&��r�D��;M�(N�O��%�
&��r�D��;M�(N�O��%�
&��r�D��;M�(N�O��$�
���T��4F�!G�H��4�
 �.��d�%�5H�"I�J��$�
���T��4F�!G�H��\�>�"�t�l�;�<��\�>�"�t�l�;�<�
�
�$",��U����E��*�*��>�>�t�K���*�*�3�9�+�*�",�*�*�*�s�$'E	�E*
�"E*
)r�)
rrrrr�r�r�r�r�r�rr^rrs@@rr�r�Ss*�����F�$	J�.�
:�$:�:rr��__main__)%r�r�rfr!�unittestrB�testr�test.supportrr�test.support.os_helperrr�test.support.script_helperrr�test.support.testcaser	�	test_miscr
r�rrr�r�r�TestCaserrbr�UnicodeTranslateErrorrrr�r�mainrrr�<module>r�s����	�	�
����;�=�N�6�$�
�'�'��4�	�!�/�/�0C�D����	�)�	�h<�h�'�'�h<�V(/�h�'�'�(/�VGF�H�-�-�GF�Z*� 5�*�K*�x�(�(�K*�\Y:�*>��@Q�@Q�Y:�x�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit