HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/test/test_tools/__pycache__/test_sundry.cpython-311.opt-1.pyc
�

��Vc����dZddlZddlZddlZddlmZddlmZmZm	Z	e	��Gd�dej
��Zedkrej
��dSdS)z�Tests for scripts in the Tools directory.

This file contains extremely basic regression tests for the scripts found in
the Tools directory of a Python checkout or tarball which don't have separate
tests of their own.
�N)�
import_helper)�
scriptsdir�import_tool�skip_if_missingc��eZdZgd�ZdgZdgZddgZeezezezZd�Ze	j
ejdkd��d	���Z
d
�ZdS)�TestSundryScripts)�reindent�pdeps�
gprof2html�md5sum�
make_ctype�win_add2path�analyze_dxp�2to3c��tj��}	tjt��D];}|�d��s�|dd�}||jvr�,t|���<	tj|�dS#tj|�wxYw)Nz.py���)	r�
modules_setup�os�listdirr�endswith�skiplistr�modules_cleanup)�self�old_modules�fn�names    �/D:\Python311\Lib\test\test_tools\test_sundry.py�test_sundryzTestSundryScripts.test_sundry s���#�1�3�3��	8��j��,�,�
"�
"���{�{�5�)�)����#�2�#�w���4�=�(����D�!�!�!�!�
"�
�)�;�7�7�7�7��M�)�;�7�7�7���s�AA;�;B�win32zWindows-only testc�8�|jD]}t|���dS)N)�windows_onlyr)rrs  r�test_sundry_windowsz%TestSundryScripts.test_sundry_windows0s/���%�	�	�D�������	�	�c���ttd��rtd��dS|�t��5td��ddd��dS#1swxYwYdS)N�getdxpr)�hasattr�sysr�assertRaises�RuntimeError)rs r�test_analyze_dxp_importz)TestSundryScripts.test_analyze_dxp_import5s����3��!�!�	+��
�&�&�&�&�&��"�"�<�0�0�
+�
+��M�*�*�*�
+�
+�
+�
+�
+�
+�
+�
+�
+�
+�
+�
+����
+�
+�
+�
+�
+�
+s�A�A"�%A"N)�__name__�
__module__�__qualname__�	allowlist�denylistr!�otherrr�unittest�skipIfr'�platformr"r*�r#rrrs�������
>�=�=�I��~�H�"�#�L�
�F�#�E��)�#�l�2�U�:�H�8�8�8� �X�_�S�\�W�,�.A�B�B���C�B��+�+�+�+�+r#r�__main__)�__doc__rr'r1�test.supportr�test.test_toolsrrr�TestCaserr+�mainr4r#r�<module>r;s�����
�	�	�	�
�
�
�
�����&�&�&�&�&�&�D�D�D�D�D�D�D�D�D�D������)+�)+�)+�)+�)+��)�)+�)+�)+�X�z����H�M�O�O�O�O�O��r#