File: D:/Python311/Lib/test/test_tools/__pycache__/test_sundry.cpython-311.pyc
�
��Vc� � � � d Z ddlZddlZddlZddlmZ ddlmZmZm Z e � � G d� dej
� � Zedk r ej
� � dS dS )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 � � e Zd Zg d�ZdgZdgZddgZeez ez ez Zd� Z e j
ej dk d� � d � � � Z
d
� ZdS )�TestSundryScripts)�reindent�pdeps�
gprof2html�md5sum�
make_ctype�win_add2path�analyze_dxp�2to3c � � t j � � } t j t � � D ];}|� d� � s�|d d� }|| j v r�,t |� � �< t j |� d S # t j |� w xY w)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 � | j D ]}t |� � �d S )N)�windows_onlyr )r r s r �test_sundry_windowsz%TestSundryScripts.test_sundry_windows0 s/ � ��%� � �D������� � � c �� � t t d� � rt d� � d S | � t � � 5 t d� � d d d � � d S # 1 swxY w Y d S )N�getdxpr )�hasattr�sysr �assertRaises�RuntimeError)r s r �test_analyze_dxp_importz)TestSundryScripts.test_analyze_dxp_import5 s� � ��3��!�!� +��
�&�&�&�&�&��"�"�<�0�0�
+�
+��M�*�*�*�
+�
+�
+�
+�
+�
+�
+�
+�
+�
+�
+�
+����
+�
+�
+�
+�
+�
+s �A�A"�%A"N)�__name__�
__module__�__qualname__� allowlist�denylistr! �otherr r �unittest�skipIfr'