Skip to content

Commit e0ae9dd

Browse files
authored
gh-97669: Remove outdated example scripts (#97675) (#98167)
Remove outdated example scripts of the Tools/scripts/ directory: * gprof2html.py * md5sum.py * nm2def.py * pathfix.py * win_add2path.py Remove test_gprof2html, test_md5sum and test_pathfix of test_tools.
1 parent b399115 commit e0ae9dd

File tree

11 files changed

+2
-831
lines changed

11 files changed

+2
-831
lines changed

Lib/test/test_tools/test_gprof2html.py

-35
This file was deleted.

Lib/test/test_tools/test_md5sum.py

-78
This file was deleted.

Lib/test/test_tools/test_pathfix.py

-131
This file was deleted.

Lib/test/test_tools/test_sundry.py

+2-9
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,13 @@ class TestSundryScripts(unittest.TestCase):
1919
# added for a script it should be added to the allowlist below.
2020

2121
# scripts that have independent tests.
22-
allowlist = ['reindent', 'pdeps', 'gprof2html', 'md5sum']
22+
allowlist = ['reindent']
2323
# scripts that can't be imported without running
2424
denylist = ['make_ctype']
25-
# scripts that use windows-only modules
26-
windows_only = ['win_add2path']
2725
# denylisted for other reasons
2826
other = ['2to3']
2927

30-
skiplist = denylist + allowlist + windows_only + other
28+
skiplist = denylist + allowlist + other
3129

3230
def test_sundry(self):
3331
old_modules = import_helper.modules_setup()
@@ -45,11 +43,6 @@ def test_sundry(self):
4543
# Unload all modules loaded in this test
4644
import_helper.modules_cleanup(*old_modules)
4745

48-
@unittest.skipIf(sys.platform != "win32", "Windows-only test")
49-
def test_sundry_windows(self):
50-
for name in self.windows_only:
51-
import_tool(name)
52-
5346

5447
if __name__ == '__main__':
5548
unittest.main()

PCbuild/lib.pyproj

-2
Original file line numberDiff line numberDiff line change
@@ -1334,9 +1334,7 @@
13341334
<Compile Include="test\test_tkinter\test_widgets.py" />
13351335
<Compile Include="test\test_tkinter\widget_tests.py" />
13361336
<Compile Include="test\test_tokenize.py" />
1337-
<Compile Include="test\test_tools\test_gprof2html.py" />
13381337
<Compile Include="test\test_tools\test_i18n.py" />
1339-
<Compile Include="test\test_tools\test_md5sum.py" />
13401338
<Compile Include="test\test_tools\test_reindent.py" />
13411339
<Compile Include="test\test_tools\test_sundry.py" />
13421340
<Compile Include="test\test_tools\test_unparse.py" />

Tools/scripts/README

-9
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,11 @@ useful while building, extending or managing Python.
44
2to3 Main script for running the 2to3 conversion tool
55
abitype.py Converts a C file to use the PEP 384 type definition API
66
combinerefs.py A helper for analyzing PYTHONDUMPREFS output
7-
diff.py Print file diffs in context, unified, or ndiff formats
8-
gprof2html.py Transform gprof(1) output into useful HTML
97
idle3 Main program to start IDLE
10-
md5sum.py Print MD5 checksums of argument files
11-
ndiff.py Intelligent diff between text files (Tim Peters)
12-
nm2def.py Create a template for PC/python_nt.def (Marc Lemburg)
13-
parseentities.py Utility for parsing HTML entity definitions
148
parse_html5_entities.py Utility for parsing HTML5 entity definitions
159
patchcheck.py Perform common checks and cleanup before committing
16-
pathfix.py Change #!/usr/local/bin/python into something else
17-
ptags.py Create vi tags file for Python modules
1810
pydoc3 Python documentation browser
1911
reindent.py Change .py files to use 4-space indents
2012
run_tests.py Run the test suite with more sensible default options
2113
stable_abi.py Stable ABI checks and file generators.
2214
untabify.py Replace tabs with spaces in argument files
23-
win_add2path.py Add Python to the search path on Windows

Tools/scripts/gprof2html.py

-87
This file was deleted.

0 commit comments

Comments
 (0)