HEX
Server: LiteSpeed
System: Linux server.nevid-deploma.com 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: smilepac (1037)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/cppython/lib/python3.8/test/test_tools/__pycache__/test_sundry.cpython-38.pyc
U

1D�gc�@shdZddlZddlZddlZddlmZddlmZmZm	Z	e	�Gdd�dej
�Zedkrde�
�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, such as h2py.py.
�N)�support)�
scriptsdir�import_tool�skip_if_missingc@sfeZdZddddgZdgZdgZddgZeeeeZd	d
�Ze	�
ejdkd�d
d��Z
dd�ZdS)�TestSundryScriptsZreindentZpdepsZ
gprof2htmlZmd5sumZ
make_ctypeZwin_add2path�analyze_dxpZ2to3cCsZt��}z@t�t�D]0}|�d�s$q|dd�}||jkr<qt|�qW5tj|�XdS)Nz.py���)	rZ
modules_setupZmodules_cleanup�os�listdirr�endswith�skiplistr)�selfZold_modules�fn�name�r�:/opt/cppython/lib/python3.8/test/test_tools/test_sundry.py�test_sundry s

zTestSundryScripts.test_sundry�win32zWindows-only testcCs|jD]}t|�qdS)N)�windows_onlyr)r
rrrr�test_sundry_windows0s
z%TestSundryScripts.test_sundry_windowsc	Cs6ttd�rtd�n|�t��td�W5QRXdS)NZgetdxpr)�hasattr�sysrZassertRaises�RuntimeError)r
rrr�test_analyze_dxp_import5s

z)TestSundryScripts.test_analyze_dxp_importN)�__name__�
__module__�__qualname__Z	whitelistZ	blacklistr�otherrr�unittestZskipIfr�platformrrrrrrrs
r�__main__)�__doc__r	rr�testrZtest.test_toolsrrrZTestCaserr�mainrrrr�<module>s,