__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

*�_i�o���SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSK	r	SSK
r
SSKrSSKrSSK
r
SSKrSSKrSSKJr SSKJr SSKJr SSKJr SSKJr SSKJr SSKJr \R4r"S	S
\R65r\R:S5r"SS
\R>\5r \!S:Xa\RD"5 gg)�N)�support)�
import_helper)�	os_helper)�
script_helper)�
socket_helper)�warnings_helper)�ExtraAssertionsc�>^�\rSrSrU4SjrSU4SjjrSrSrU=r$)�LogCaptureHandler�c�X>�[TU][R"55 /Ulg�N)�super�__init__�io�StringIO�records)�self�	__class__s ��(/usr/lib/python3.13/test/test_support.pyr�LogCaptureHandler.__init__s���
�������'����c�Z>�URRU5 [TU]
U5 gr)r�appendr�emit)r�recordrs  �rr�LogCaptureHandler.emit#s!��������F�#�
���V�rc��er�)rrs  r�handleError�LogCaptureHandler.handleError's��
r)r)�returnN)	�__name__�
__module__�__qualname__�__firstlineno__rrr �__static_attributes__�
__classcell__)rs@rrrs������rrc#��# �[5n[R"5nURU5 Uv� UR	U5 g!UR	U5 f=f7fr)r�logging�	getLogger�
addHandler�
removeHandler)�handler�root_loggers  r�_caplogr0+sO����!�G��#�#�%�K����7�#�+��
��!�!�'�*���!�!�'�*�s�1A �A
�A �
A�A c��\rSrSr\S5r\S5rSrSrSr	Sr
\R"S5S	5r
S
rSrSrS
r\R&"5S5r\R&"5S5r\R&"5S5rSrSrSrSr\R6"5S5rSrSrSrSr Sr!Sr"Sr#Sr$Sr%Sr&S r'S!r(S"r)S#r*S$r+S%r,S&r-S'r."S(S)5r/"S*S+5r0S,r1S-r2S.r3\Rh"\5"\6S/5=(a	 \5"\6S05S15\R6"5S255r7\Rp"5SFS4j5r9\Rt"S55S65r;S7r<\Rz"\R|S85\Rz"\R~S95\Rz"\R�S:5S;555rAS<rBS=rCS>rDS?rES@rFSArGSBrHSCrISDrJSErKg3)G�TestSupport�6c���[[R5n[R"SSS9Ul[R"[SS9Ul[[R5US-:Xdeg)Nztest.support.warnings_helperz.*used in test_support.*)�likez!.*You should NOT be seeing this.*�)�len�warnings�filtersr�ignore_deprecations_from�_warnings_helper_tokenr#�_test_support_token��cls�orig_filter_lens  r�
setUpClass�TestSupport.setUpClass7sf���h�.�.�/��%,�%E�%E�*�1K�&
��"�#*�"B�"B��>�#
����8�#�#�$��!�(;�;�;�;rc���[[R5n[R"UR
UR5 [[R5US-
:Xdeg)Nr6)r7r8r9r�clear_ignored_deprecationsr;r<r=s  r�
tearDownClass�TestSupport.tearDownClassBsR���h�.�.�/���*�*��&�&��#�#�	
��8�#�#�$��!�(;�;�;�;rc�L�[R"SS9n[R"5 [R"S[
5 UVs/sHn[
UR5PM nnSSS5 UR[W5SU5 gs snf!,(df   N0=f)z9Test support.ignore_deprecations_from() silences warningsT)rzYou should NOT be seeing this.Nr)
r8�catch_warningsr�_warn_about_deprecation�warn�DeprecationWarning�str�message�assertEqualr7)r�warning_objs�w�messagess    r�$test_ignored_deprecations_are_silent�0TestSupport.test_ignored_deprecations_are_silentKsu��
�
$�
$�D�
1�\��3�3�5��M�M�:�<N�O�0<�=��1��A�I�I���H�=�2�	
����X���8�4��>�2�
1�s�5B�
B�)B�B�
B#c��[R"S5 UR[R[RS5 g)N�ftplib�foo)r�
import_module�assertRaises�unittest�SkipTest�rs r�test_import_module�TestSupport.test_import_moduleSs1���#�#�H�-����(�+�+�'�5�5�u�	>rc�0�[R"S5 g)NrT)r�import_fresh_modulerZs r�test_import_fresh_module�$TestSupport.test_import_fresh_moduleXs���)�)�(�3rc���UR[R"US5UR5 UR	[
R[RUS5 g)N�test_get_attributerU)rMr�
get_attributerbrWrXrYrZs rrb�TestSupport.test_get_attribute[sI������.�.�t�5I�J��/�/�	1����(�+�+�W�-B�-B�D�%�Przfailing buildbotsc�j�UR[R"5[R5 gr)rMr�get_original_stdout�sys�stdoutrZs r�test_get_original_stdout�$TestSupport.test_get_original_stdout`s������4�4�6��
�
�Crc��SSKnURS[R5 [R
"S5 UR
S[R5 g)Nr�sched)rl�assertInrg�modulesr�unload�assertNotIn)rrls  r�test_unload�TestSupport.test_unloadds9����
�
�g�s�{�{�+����W�%�����#�+�+�.rc�$�[[SSS9nSSS5 [R"[5 UR	[
RR[55 [R"[5 g!,(df   Nu=f)NrO�utf-8��encoding)�open�TESTFNr�unlink�assertFalse�os�path�exists)r�fs  r�test_unlink�TestSupport.test_unlinkjsX��
�&�#��
0�A��1����� ����������/�0����� �	1�
0�s�B�
Bc��[RS-n[RR	US5n[R
"U5 [R
"U5 [R"U5 UR[RRU55 [R"[SS5 [R"U5 SSS5 [R
"U5 [R
"U5 [R"U[R[R-5 [R"[SS5 [R"U5 SSS5 UR[RRU55 [R
"U5 [R
"U5 [R"US5 [R"[SS5 [R"U5 SSS5 UR[RRU55 g!,(df   GN�=f!,(df   N�=f!,(df   N`=f)N�d�subdir�verboser)rrxr{r|�join�mkdir�rmtreerzr}r�	swap_attr�chmod�stat�S_IRUSR�S_IXUSR)r�dirpath�
subdirpaths   r�test_rmtree�TestSupport.test_rmtreeqs����"�"�S�(���W�W�\�\�'�8�4�
�
�����
���������!����������0�1�
�
�
�w�	�1�
5����W�%�6�	�����
�����
����$�,�,�t�|�|�3�4�
�
�
�w�	�1�
5����W�%�6����������0�1�
�����
�����
����!��
�
�
�w�	�1�
5����W�%�6����������0�1�6�
5��6�
5��6�
5�s$�I�I)�	I:�
I&�)
I7�:
Jc���[S-n[USSS9n[SUS9 SSS5 [RRS[R5 [R"5 [[5nUR[[R5 [R"[5 UR[[R5 [RS	[ R""U5 [ R$"S5 g!,(df   GN=f![RS	[ R""U5 [ R$"S5 f=f)	Nz.pyrOrtruzfoo = 1��filer�__pycache__)rxrw�printrgr|�insertr{�curdir�	importlib�invalidate_caches�
__import__rmrnr�forgetrprryr�)r�mod_filenamer~�mods    r�test_forget�TestSupport.test_forget�s�����~��
�,��g�
6�!��)�!�$�7�������2�9�9�%��#�#�%�		,��V�$�C��M�M�&�#�+�+�.�� � ��(����V�S�[�[�1���������\�*����]�+�7�
6����������\�*����]�+�s�D�,A1D-�
D*�-?E,c�p�[R"[RS45nUR	5 g)Nr)�socket�
create_serverr�HOST�close�r�ss  r�	test_HOST�TestSupport.test_HOST�s&��� � �-�"4�"4�a�!8�9��	���	rc��[R"5n[R"[RU45nUR5 gr)r�find_unused_portr�r�r�r�)r�portr�s   r�test_find_unused_port�!TestSupport.test_find_unused_port�s4���-�-�/��� � �-�"4�"4�d�!;�<��	���	rc��[R"5n[R"U5 UR5 UR	5 gr)r�r�	bind_port�listenr�r�s  r�test_bind_port�TestSupport.test_bind_port�s-���M�M�O������"�	���
�	���	rc��[R"5n[RR	U5n[RRUS5nUR
[RRU55 [R"U5nURX25 UR[RRU55 SSS5 UR
[RRU55 [R"U5 g!,(df   NS=f![R"U5 f=f)z8Test that temp_dir() creates and destroys its directory.�tempN)
�tempfile�mkdtempr{r|�realpathr�rz�isdirr�temp_dirrM�
assertTruer�)r�
parent_dirr|�	temp_paths    r�
test_temp_dir�TestSupport.test_temp_dir�s����%�%�'�
��W�W�%�%�j�1�
�	)��7�7�<�<�
�F�3�D����R�W�W�]�]�4�0�1��#�#�D�)�Y�� � ��1�������
�
�d� 3�4�*�
���R�W�W�]�]�4�0�1����Z�(�*�)��

���Z�(�s%�A$D8�AD'�6D8�'
D5�1D8�8Ec��[R"5nUR[RRU55 SSS5 UR
[RRW55 g!,(df   N==f)zTest passing no path.N)rr�r�r{r|r�rz)rr�s  r�test_temp_dir__path_none�$TestSupport.test_temp_dir__path_none�sR��
�
�
�
!�Y��O�O�B�G�G�M�M�)�4�5�"���������y�1�2�"�
!�s�/A<�<
B
c��Sn[R"5n[RR	U5nUR[RR
U55 UR[X5 UR[RR
U55 [R"U5 g![R"U5 f=f)z-Test passing a directory that already exists.c�h�[R"U5n[S5e!,(df   g=f�Nzshould not get here)rr��	Exception)r|r�s  r�
call_temp_dir�MTestSupport.test_temp_dir__existing_dir__quiet_default.<locals>.call_temp_dir�s'���#�#�D�)�Y�� 5�6�6�*�)���#�
1N)r�r�r{r|r�r�r�rW�FileExistsError�shutilr�)rr�r|s   r�*test_temp_dir__existing_dir__quiet_default�6TestSupport.test_temp_dir__existing_dir__quiet_default�s���	7����!���w�w����%��	 ��O�O�B�G�G�M�M�$�/�0����o�}�C��O�O�B�G�G�M�M�$�/�0��M�M�$���F�M�M�$��s�A2C�Cc��[R"5n[RR	U5n[
R"5n[5n[R"USS9nURX5 SSS5 URVs/sHn[UR5PM nnSSS5 SSS5 UR[RRU55 [ R""U5 UR%W/5 UR['WR(5S5 UR(SnUR+UR-5SU<S35 g!,(df   N�=fs snf!,(df   N�=f!,(df   N�=f![ R""U5 f=f)z=Test passing a directory that already exists with quiet=True.T��quietN�rz5tests may fail, unable to create temporary directory �: )r�r�r{r|r�r�check_warningsr0rr�rMr8rKrLr�r�r�r��assertListEqualr7r�assertStartsWith�
getMessage)rr|�recorder�caplogr�rOr8rs        r�'test_temp_dir__existing_dir__quiet_true�3TestSupport.test_temp_dir__existing_dir__quiet_true�sD�����!���w�w����%��	 � �/�/�1�X�w�y�F��'�'��D�9�Y��$�$�T�5�:�4<�4E�4E�F�4E�q�C��	�	�N�4E��F�@I�1�

�O�O�B�G�G�M�M�$�/�0��M�M�$�����X�r�*�����V�^�^�,�a�0�����"���������#�#'�(�"�
.�	
�:�9��F�@I�y��1�1��
�M�M�$��s_�F-�F�F�,E5�>F�F�3F�5F�=6F-�5
F�?F�
F	�F�
F*�&F-�-Gc�Z�[R"S[R"S55 g)z?Test that a forked child process does not remove the directory.�-ca
            import os
            from test import support
            from test.support import os_helper
            with os_helper.temp_cwd() as temp_path:
                pid = os.fork()
                if pid != 0:
                    # parent process

                    # wait for the child to terminate
                    support.wait_process(pid, exitcode=0)

                    # Make sure that temp_path is still present. When the child
                    # process leaves the 'temp_cwd'-context, the __exit__()-
                    # method of the context must not remove the temporary
                    # directory.
                    if not os.path.isdir(temp_path):
                        raise AssertionError("Child removed temp_path.")
        N)r�assert_python_ok�textwrap�dedentrZs r�test_temp_dir__forked_child�'TestSupport.test_temp_dir__forked_child�s$��
	�&�&�t�X�_�_�>�.
�	rc��[R"5n[R"5n[R"U5nURX25 UR[R"5U5 SSS5 SSS5 UR[R"5U5 g!,(df   N<=f!,(df   NE=fr)r{�getcwdrr��
change_cwdrM)r�original_cwdr��new_cwds    r�test_change_cwd�TestSupport.test_change_cwds����y�y�{��
�
�
�
!�Y��%�%�i�0�G�� � ��4�� � �����g�6�1�"�
	
�������l�3�	1�0��"�
!�s#�C�7B/�9C�/
B=	�9C�
Cc�J�[R"5nSn[R"5n[RRUS5nUR
[UU5 SSS5 UR[R"5U5 g!,(df   N4=f)z&Test passing a non-existent directory.c�h�[R"U5n[S5e!,(df   g=fr�)rr�r�)r|r�s  r�call_change_cwd�FTestSupport.test_change_cwd__non_existent_dir.<locals>.call_change_cwds'���%�%�d�+�w�� 5�6�6�,�+�r��does_not_existN)	r{r�rr�r|r�rW�FileNotFoundErrorrM)rr�r�r��non_existent_dirs     r�!test_change_cwd__non_existent_dir�-TestSupport.test_change_cwd__non_existent_dirst���y�y�{��	7��
�
�
!�Z�!�w�w�|�|�J�8H�I�����/��.�
0�"�
	
�������l�3�"�
!�s�8B�
B"c	�z�[R"5n[R"5n[RRUS5n[R"5n[5n[R"USS9nURXa5 UR[R"5U5 SSS5 URVs/sHn[UR5PM nnSSS5 SSS5 SSS5 URW/5 UR[WR 5S5 UR Sn	UR#U	R%5SW<S35 g!,(df   N�=fs snf!,(df   N�=f!,(df   N�=f!,(df   N�=f)	z6Test passing a non-existent directory with quiet=True.r�Tr�Nr�r�Btests may fail, unable to change the current working directory to r�)r{r�rr�r|r�rr�r0r�rMr8rKrLr�r7rr�r�)
rr�r��bad_dirr�r�r�rOr8rs
          r�-test_change_cwd__non_existent_dir__quiet_true�9TestSupport.test_change_cwd__non_existent_dir__quiet_trues@���y�y�{��
�
�
�
!�Z��g�g�l�l�:�/?�@�G� �/�/�1�X�w�y�F��)�)�'��>�'��$�$�W�;��$�$�R�Y�Y�[�'�:�?�5=�4E�4E�F�4E�q�C��	�	�N�4E��F�	@I�1�"�	
���X�r�*�����V�^�^�,�a�0�����"������������B�
 �	
�?�>��G�	@I�y��1�1��"�
!�s_�6F,�!F�,F
�7E4	�9F
�F
�.F
�0F�8F,�4
F
�>F
�

F�F�
F)	�%F,�,
F:c�Z�[S-n[R"5n[5n[R
"USS9 SSS5 URVs/sHn[UR5PM nnSSS5 SSS5 URW/5 UR[WR5S5 URSnURUR5SU<S35 g!,(df   N�=fs snf!,(df   N�=f!,(df   N�=f)	z0Check the warning message when os.chdir() fails.�_does_not_existT)r|r�Nr�rr�r�)rxrr�r0rr�r8rKrLr�rMr7rr�r�)rr|r�r�rOrPrs       r�test_change_cwd__chdir_warning�*TestSupport.test_change_cwd__chdir_warning7s����)�)��
�
+�
+�
-��7�9���%�%�4�t�<��=�08�0A�0A�B�0A�1��A�I�I��0A�H�B�<E�
-�
	
���X�r�*�����V�^�^�,�a�0�����"�������������
�	
�=�<��B�<E�9��
-�
-�sF�D�D�C5�D�D�7D�9D�5
D�?D�
D	�D�
D*c���[R"5n[R"[S9 UR[RR[R"55[5 SSS5 UR[RR[55 UR[R"5U5 g!,(df   Nf=f)N��name)
r{r�r�temp_cwdrxrMr|�basenamerzr})r�heres  r�
test_temp_cwd�TestSupport.test_temp_cwdKs���y�y�{��
�
�
�V�
,����R�W�W�-�-�b�i�i�k�:�F�C�-����������/�0��������d�+�-�
,�s�AC�
C#c��[R"5n[R"SS9nUR	X!5 UR[RRU55 UR[R"5U5 SSS5 UR[R"5U5 g!,(df   N4=f)z Test passing None to temp_cwd().Nr�)	r{r�rr��assertNotEqualr�r|r�rM)rr�r�s   r�test_temp_cwd__name_none�$TestSupport.test_temp_cwd__name_noneSs����y�y�{��
�
�
�T�
*�g�����6��O�O�B�G�G�M�M�'�2�3����R�Y�Y�[�'�2�+�	
�������l�3�	+�
*�s�A%B=�=
Cc�X�UR[R"SSSS.5S5 g)N�r6r�)rr6r�z{1: 1, 2: 2, 3: 3})rMr�sortdictrZs r�
test_sortdict�TestSupport.test_sortdict\s$������)�)�Q�!�q�/�:�<P�Qrc�"�[R"5nUR[5n[R
"US5 SSS5 UR
WRR[R5 g!,(df   NC=f)Nsfoo)
r�make_bad_fdrW�OSErrorr{�writerM�	exception�errno�EBADF)r�fd�cms   r�test_make_bad_fd�TestSupport.test_make_bad_fd_sZ��
�
"�
"�
$��
�
�
�w�
'�2��H�H�R�� �(�������+�+�U�[�[�9�(�
'�s�B�
Bc��[R"USSSS9 UR[5 [R"US5 SSS5 g!,(df   g=f)Nz	def classr��)�lineno�offsetzx=1)r�check_syntax_errorrW�AssertionErrorrZs r�test_check_syntax_error�#TestSupport.test_check_syntax_errores@���"�"�4��Q�q�I�
�
�
�~�
.��&�&�t�U�3�/�
.�
.�s�A�
Ac��SSKn[R"S5 UR"S5 SSS5 g!,(df   g=f)Nr�pprint)r�r�CleanImportrV)rr�s  r�test_CleanImport�TestSupport.test_CleanImportjs-���
�
&�
&�x�
0��#�#�H�-�1�
0�
0�s	�7�
Ac�f�[R"SS5 URS[R5 URS[R5 SSS5 URS[R5 URS[R5 g!,(df   NO=f)NrU�bar)r�
DirsOnSysPathrmrgr|rprZs r�test_DirsOnSysPath�TestSupport.test_DirsOnSysPathosn��
�
(�
(���
6��M�M�%����*��M�M�%����*�7�	
�������)��������)�	7�
6�s�AB"�"
B0c��[R"5n[S5 SSS5 URWR	5S5 g!,(df   N/=f)N�hello�hello
)r�captured_stdoutr�rM�getvalue)rrhs  r�test_captured_stdout� TestSupport.test_captured_stdoutvs<��
�
$�
$�
&�&��'�N�'�������*�I�6�'�
&�s�A�
Ac���[R"5n[S[RS9 SSS5 URWR
5S5 g!,(df   N/=f)Nr)r�r*)r�captured_stderrr�rg�stderrrMr,)rr1s  r�test_captured_stderr� TestSupport.test_captured_stderr{sC��
�
$�
$�
&�&��'��
�
�+�'�������*�I�6�'�
&�s�A�
A&c���[R"5nURS5 URS5 [	5nSSS5 URWS5 g!,(df   N!=f)Nr*rr))r�captured_stdinr�seek�inputrM)r�stdin�captureds   r�test_captured_stdin�TestSupport.test_captured_stdin�sN��
�
#�
#�
%���K�K�	�"��J�J�q�M��w�H�	&�
	
����7�+�&�
%�s�-A�
A,c�.�[R"5 gr)r�
gc_collectrZs r�test_gc_collect�TestSupport.test_gc_collect�s�����rc�V�UR[R"5[5 gr)�assertIsInstancer�python_is_optimized�boolrZs r�test_python_is_optimized�$TestSupport.test_python_is_optimized�s�����g�9�9�;�T�Brc��"SS5nU"5nSUl[R"USS5nURURS5 URUS5 SSS5 URURS5 [R"USS5nURURS5 URU5 SSS5 UR
[US55 [R"USS5 U?SSS5 UR
[US55 g!,(df   N�=f!,(df   Ny=f!,(df   NL=f)Nc��\rSrSrSrg)�'TestSupport.test_swap_attr.<locals>.Obji�rN)r#r$r%r&r'rrr�ObjrH�s��rrIr��xr�y)rJrr�rMrK�assertIsNonerz�hasattr)rrI�objrJrKs     r�test_swap_attr�TestSupport.test_swap_attr�s��	�	��e�����
�
�
�s�C��
+�q����S�U�U�A�&����Q��"�,�	
�������"�
�
�
�s�C��
+�q����S�U�U�A�&����a� �,�	
�����c�*�+�
�
�
�s�C��
+���,������c�*�+�,�
+��,�
+��,�
+�s#�/D,�.D=�E�,
D:�=
E�
Ec�J�SS0n[R"USS5nURUSS5 URUS5 SSS5 URUSS5 [R"USS5nURUSS5 URU5 SSS5 UR	SU5 [R"USS5 US	SSS5 UR	SU5 g!,(df   N�=f!,(df   Nh=f!,(df   NC=f)NrJr�rrK)r�	swap_itemrMrLrp)r�DrJrKs    r�test_swap_item�TestSupport.test_swap_item�s���
��G��
�
�
�q�#�q�
)�Q����Q�s�V�Q�'����Q��"�*�	
����3���#�
�
�
�q�#�q�
)�Q����Q�s�V�Q�'����a� �*�	
����a� �
�
�
�q�#�q�
)��#��*�����a� �*�
)��*�
)��*�
)�s#�(C2�:'D�D�2
D�
D�
D"c�$�\rSrSrSrSrSrSrSrg)�TestSupport.RefClassi�Nr)	r#r$r%r&�
attribute1�
attribute2�_hidden_attribute1�__magic_1__r'rrr�RefClassrW�s���
��
�!���rr\c�$�\rSrSrSrSrSrSrSrg)�TestSupport.OtherClassi�Nr)	r#r$r%r&rY�
attribute3r[�__magic_2__r'rrr�
OtherClassr^�s���
��
����rrac��[R"URUR5nUR	S1U5 [R"URUR5nUR	SS1U5 g)NrXr_r`)r�detect_api_mismatchr\rarM)r�
missing_itemss  r�test_detect_api_mismatch�$TestSupport.test_detect_api_mismatch�se���3�3�D�M�M�48�O�O�E�
����,���7��3�3�D�O�O�48�M�M�C�
����,�
�6�
�Frc��/SQn[R"URURUS9nUR	[5U5 [R"URURUS9nUR	[5U5 g)N)rXr_r`�
not_in_either)�ignore)rrcr\rarM�set)rrirds   r� test_detect_api_mismatch__ignore�,TestSupport.test_detect_api_mismatch__ignore�si��M���3�3��
�
�t���v�?�
������
�.��3�3�������v�?�
������
�.rc���S1nS1n[R"U[UUS9 SS1n1Skn[R"U[SUUS9 UR	[
[RU[5 g)N�tempdir�template)�extra�not_exported�TextTestResult�installHandler>�
load_tests�TestProgram�
BaseTestSuite)zunittest.resultz
unittest.casezunittest.suitezunittest.loaderz
unittest.mainzunittest.runnerzunittest.signalszunittest.async_case)r�check__all__r�rXrWr)rrprqs   r�test_check__all__�TestSupport.test_check__all__�s}�����"�|�����T�%�#(�*6�	8�
��
��F�����T�%�I�$)�*6�	8�	
���.�'�*>�*>��h�Or�waitpid�WNOHANGz need os.waitpid() and os.WNOHANGc��[R"5 [R"5nUS:Xa[R"S5 [R
nS[l[R"5n[R"[R5H^n[R"[RSU5 [R"5 SSS5 [R
(dM^ O SU-nURXSR55 UR[R
5 U[l[R"5 g!,(df   N�=f!U[lf=f)NrF�orig_stderrz2Warning -- reap_children() reaped child process %s)r�
reap_childrenr{�fork�_exit�environment_alteredrr�sleeping_retry�
SHORT_TIMEOUTr��
print_warningrmr,r�)r�pid�was_alteredr1�_�msgs      r�test_reap_children�TestSupport.test_reap_children�s��
	�����g�g�i���!�8��H�H�Q�K��1�1��	6�*/�G�'��[�[�]�F��+�+�G�,A�,A�B���&�&�w�'<�'<�m�V�T��)�)�+�U�
�.�.�.��C�G��L�C��M�M�#���0�1��O�O�G�7�7�8�*5�G�'�	����!U�T��+6�G�'�s,�A-E3�E"�E3�:AE3�"
E0	�,E3�3
FNc���SUSUS3n[R/UQSPUPn[RR	5VVs0sHupgURS5(aMXg_M! nnn[R"U[R[RSUS9n	UcUnURU	RR5[U55 URU	RS5 gs snnf)	Nzfrom test.support import z
; print(repr(z()))r��PYTHONT)rhr1�universal_newlines�envr)rg�
executabler{�environ�items�
startswith�
subprocess�run�PIPE�DEVNULLrMrh�rstrip�repr�
returncode)
r�args�func�expected�code�cmd�key�valuer��procs
          r�
check_options�TestSupport.check_options
s���*�4�&�
�d�V�4�H���~�~�1��1�d�1�D�1��,.�J�J�,<�,<�,>�0�,>�j�c��n�n�X�.��s�z�,>��0��~�~�c�%/�_�_�%/�%7�%7�15�"%�	'��
���H�������+�+�-�t�H�~�>�������!�,��0s�C4�"C4�cpuc��/S/S/S/S/S/S/S/S/S	/S
/S/S/S
S//SQS
S/S
S/S
S/S
S/S
S/4H-nURUS9 URUS5 SSS5 M/ UR/SQSS	/5 g!,(df   MW=f)Nz-B�-sz-S�-Ez-vz-b�-Pz-q�-Iz-bbz-vvv�-Wignore�-X�dev)r�r�r��faulthandler�
importtime�showrefcount�tracemallocz
tracemalloc=3��opts�args_from_interpreter_flags)r�r�r�r���subTestr��rr�s  r� test_args_from_interpreter_flags�,TestSupport.test_args_from_interpreter_flagss���

�
�F�
�F�
�F�
�F�
�F�
�F�
�F�
�F�
�F�
�G�
�H�
�L�
�5�M�%�
�>�"�
�<� �
�>�"�
�=�!�
�?�#�3
�D�6���4��(��"�"�4�)F�G�)�(�7
�<	
���3�8� �6�	#�)�(�s�A9�9
B	c��/S/S/S/4H-nURUS9 URUS5 SSS5 M/ g!,(df   MA=f)Nz-Oz-OOz-OOOOr��!optim_args_from_interpreter_flagsr�r�s  r�&test_optim_args_from_interpreter_flags�2TestSupport.test_optim_args_from_interpreter_flags?sT��
�
�F�
�G�
�I�
�D����4��(��"�"�4�)L�M�)�(�
�)�(�s	�<�
A	zUnstable on Apple MobilezUnstable in EmscriptenzUnavailable on WASIc�6�[R"5n[R"[[R
5n[R"5n[R"U5 URX1-
S5 g![R"U5 f=f�Nr�)r�fd_countr{rw�__file__�O_RDONLYr�rM)r�startr�mores    r�
test_fd_count�TestSupport.test_fd_countKse���"�"�$��
�W�W�X�r�{�{�
+��	��%�%�'�D��H�H�R�L������q�)��
�H�H�R�L�s�B�Bc��[R"5n[R"[RSU5 [R"U5 SSS5 URUR
5U5 g!,(df   N/=f)Nr})rrrr�r�rMr,)rr�r�r1s    r�check_print_warning�TestSupport.check_print_warning\sZ�������
�
�
�w�4�4�m�V�
L��!�!�#�&�M�������*�H�5�M�
L�s�A<�<
B
c�L�URSS5 URSS5 g)Nr�zWarning -- msg
za
bzWarning -- a
Warning -- b
)r�rZs r�test_print_warning�TestSupport.test_print_warningbs)��� � ��!3�	5�� � ��!?�	Arc���[R(d[RS:Xa UR	[R
5 gUR
[R
5 g)N�win32)r�
is_emscriptenrg�platformrz�has_strftime_extensionsr�rZs r�test_has_strftime_extensions�(TestSupport.test_has_strftime_extensionshs<��� � �C�L�L�G�$;����W�<�<�=��O�O�G�;�;�<rc�^�[R"S5n[R"SU5 g)Nap
            from test import support
            import sys

            def check(cond):
                if not cond:
                    raise AssertionError("test failed")

            # depth 1
            check(support.get_recursion_depth() == 1)

            # depth 2
            def test_func():
                check(support.get_recursion_depth() == 2)
            test_func()

            def test_recursive(depth, limit):
                if depth >= limit:
                    # cannot call get_recursion_depth() at this depth,
                    # it can raise RecursionError
                    return
                get_depth = support.get_recursion_depth()
                print(f"test_recursive: {depth}/{limit}: "
                      f"get_recursion_depth() says {get_depth}")
                check(get_depth == depth)
                test_recursive(depth + 1, limit)

            # depth up to 25
            with support.infinite_recursion(max_depth=25):
                limit = sys.getrecursionlimit()
                print(f"test with sys.getrecursionlimit()={limit}")
                test_recursive(2, limit)

            # depth up to 500
            with support.infinite_recursion(max_depth=500):
                limit = sys.getrecursionlimit()
                print(f"test with sys.getrecursionlimit()={limit}")
                test_recursive(2, limit)
        r�)r�r�rr�)rr�s  r�test_get_recursion_depth�$TestSupport.test_get_recursion_depthns(�����& �&
��N	�&�&�t�T�2rc��^�U4SjmSH\n[R"U5 [R"5nT"U5 T"US-5 URS5 SSS5 M^ [R"S5 T"S5 URS5 SSS5 g![a NRf=f!,(df   M�=f![a N7f=f!,(df   g=f)Nc�,>�U(aT"US-
5 ggr�r)�depth�recursive_functions �rr��6TestSupport.test_recursion.<locals>.recursive_function�s����"�5�1�9�-�r)r��i�	r�zRecursionError was not raisedr)r�infinite_recursion�get_recursion_available�fail�RecursionError)r�	max_depth�	availabler�s   @r�test_recursion�TestSupport.test_recursion�s����	.�,�I��+�+�I�6�#�;�;�=�	�#�9�-�
?�&�y�1�}�5��I�I�=�>�7�6�,�$�
'�
'��
*�
;�"�1�%��	�	�9�:�
+�
*��
&�����7�6��("�
��
��+�
*�s_�B4�B$�
B4�C�C�
C�$
B1�.B4�0B1�1B4�4
C	�
C�C�C�C�
C$c�@�[RnSnUS-nUS-nUS-nURU"S5S5 URU"S5SU-5 URU"S5[SU-55 URU"S5[S	U-55 URU"S
5U5 SHAnUR	US9 UR[5 U"U5 SSS5 SSS5 MC g!,(df   N=f!,(df   Mf=f)
Ni�0kr�3krz2.4mg333333@�4g��1t)��3z3.5.10k�10x)�limit)r�_parse_memlimitrM�intr�rW�
ValueError)r�parse�KiB�MiB�GiB�TiBr�s       r�test_parse_memlimit�TestSupport.test_parse_memlimit�s����'�'�����D�j���D�j���D�j������t��a�(�����t��a�#�g�.�����v���C�#�I��7�����t��c�!�c�'�l�3�����t��c�*�0�E����E��*��&�&�z�2��%�L�3�+�*�1�2�2��+�*�s$�	D�	C=�(D�=
D�D�
D	c�0�SnSn[Rn[Rn[RS:�a�[R
"S5 UR
[RU5 UR
[RU5 SS-U-n[R
"US35 UR
[R[R5 UR
[RXR-5 Od[R
"S5 UR
[R[R5 UR
[RU5 U[lU[lg!U[lU[lf=f)Nllr�r6�d�t)r�
max_memuse�real_max_memuserg�maxsize�set_memlimitrM)r�_4GiBr��old_max_memuse�old_real_max_memuse�bigs      r�test_set_memlimit�TestSupport.test_set_memlimit�s#������ �+�+��%�5�5��	:��{�{�U�"��$�$�T�*�� � ��!3�!3�U�;�� � ��!8�!8�%�@���f��m���$�$��u�A�Y�/�� � ��!3�!3�S�[�[�A�� � ��!8�!8�#�)�D��$�$�T�*�� � ��!3�!3�S�[�[�A�� � ��!8�!8�%�@�!/�G��&9�G�#��"0�G��&9�G�#�s�EE=�=Fc���[R"S5nU(d[R"S5n[RR	U5n[RRU5(dUR
SU<35 [RRUS5n[RRU5(dUR
SU<S35 SS1n[R"U5nUR[R"X5US1-5 [RRUS	5nUR[R"U[R"U55USS
1-5 [RRUS5nUR[R"U[R"U55U5 g)N�
abs_srcdir�srcdirz,cannot access Python source code directory: �Modulesz landmark is missingz.gitr��build�Doc�venv�Objects)�	sysconfig�get_config_varr{r|�abspathr}�skipTestr��listdirrMr�copy_python_src_ignore)r�src_dir�landmark�ignored�namesr|s      r�test_copy_python_src_ignore�'TestSupport.test_copy_python_src_ignore�sv���*�*�<�8����.�.�x�8�G��'�'�/�/�'�*���w�w�~�~�g�&�&��M�M��%�[�*�
+��7�7�<�<���3���w�w�~�~�h�'�'��M�M��&�\�)=�?�
@��=�)���
�
�7�#������7�7��G� �G�9�,�	.��w�w�|�|�G�U�+������7�7��b�j�j��>N�O� �G�V�#4�4�	6��w�w�|�|�G�Y�/������7�7��b�j�j��>N�O� �	"rc�Z�[R"5nURU[5 gr)r�linked_to_muslrArC)r�linkeds  r�test_linked_to_musl�TestSupport.test_linked_to_musls ���'�'�)�����f�d�+rrr)Lr#r$r%r&�classmethodr@rDrQr[r_rbrX�skiprirqrr�r�r�requires_working_socketr�r�r�r�r�r�r��
requires_forkr�r�r�r�r�rrr	rrr!r&r-r2r:r>rDrOrTr\rarerkrx�
skipUnlessrMr{r��requires_subprocessr��requires_resourcer�r��skipIf�is_apple_mobiler��is_wasir�r�r�r�r�r�r�rrrr'rrrr2r26s����<��<��<��<�5�>�
4�Q�
�]�]�&�'�D�(�D�/�!�2�0,�"
�$�$�&��'��
�$�$�&��'��

�$�$�&��'��
)�3� � 
�0
�������44�
4�
�0
�(,�4�R�:�4�
.�
*�7�
7�
,��C�,�"!�����G�	/�P�0�����Y�/�J�G�B�	�4J�;�=�����  ��=�  �D
� � �"�
-�#�
-�
���u�%�"#�&�"#�H
N��_�_�W�,�,�.H�I�
�_�_�W�*�*�,D�E�
�_�_�W�_�_�&;�<�*�=�F�J�*�6�A�=�)3�V;�@!�":�.""�H,rr2�__main__)#�
contextlibrr�rr*r{r�r�r�r�rgrr�r�rXr8�testr�test.supportrrrrr�test.support.testcaser	rx�
StreamHandlerr�contextmanagerr0�TestCaser2r#�mainrrr�<module>r2s������	��	�
�
���
�������&�"�&�&�(�1�	�	�	����-�-�����+��+�Q,�(�#�#�_�Q,�R�z���M�M�O�r

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 133 B 0644
__main__.cpython-313.pyc File 227 B 0644
regrtest.cpython-313.pyc File 1.5 KB 0644
test_support.cpython-313.pyc File 47.29 KB 0644
Filemanager