Skip to content

gh-97669: Remove outdated example scripts (#97675) #98167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions Lib/test/test_tools/test_gprof2html.py

This file was deleted.

78 changes: 0 additions & 78 deletions Lib/test/test_tools/test_md5sum.py

This file was deleted.

131 changes: 0 additions & 131 deletions Lib/test/test_tools/test_pathfix.py

This file was deleted.

11 changes: 2 additions & 9 deletions Lib/test/test_tools/test_sundry.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@ class TestSundryScripts(unittest.TestCase):
# added for a script it should be added to the allowlist below.

# scripts that have independent tests.
allowlist = ['reindent', 'pdeps', 'gprof2html', 'md5sum']
allowlist = ['reindent']
# scripts that can't be imported without running
denylist = ['make_ctype']
# scripts that use windows-only modules
windows_only = ['win_add2path']
# denylisted for other reasons
other = ['2to3']

skiplist = denylist + allowlist + windows_only + other
skiplist = denylist + allowlist + other

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

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


if __name__ == '__main__':
unittest.main()
2 changes: 0 additions & 2 deletions PCbuild/lib.pyproj
Original file line number Diff line number Diff line change
Expand Up @@ -1334,9 +1334,7 @@
<Compile Include="test\test_tkinter\test_widgets.py" />
<Compile Include="test\test_tkinter\widget_tests.py" />
<Compile Include="test\test_tokenize.py" />
<Compile Include="test\test_tools\test_gprof2html.py" />
<Compile Include="test\test_tools\test_i18n.py" />
<Compile Include="test\test_tools\test_md5sum.py" />
<Compile Include="test\test_tools\test_reindent.py" />
<Compile Include="test\test_tools\test_sundry.py" />
<Compile Include="test\test_tools\test_unparse.py" />
Expand Down
9 changes: 0 additions & 9 deletions Tools/scripts/README
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,11 @@ useful while building, extending or managing Python.
2to3 Main script for running the 2to3 conversion tool
abitype.py Converts a C file to use the PEP 384 type definition API
combinerefs.py A helper for analyzing PYTHONDUMPREFS output
diff.py Print file diffs in context, unified, or ndiff formats
gprof2html.py Transform gprof(1) output into useful HTML
idle3 Main program to start IDLE
md5sum.py Print MD5 checksums of argument files
ndiff.py Intelligent diff between text files (Tim Peters)
nm2def.py Create a template for PC/python_nt.def (Marc Lemburg)
parseentities.py Utility for parsing HTML entity definitions
parse_html5_entities.py Utility for parsing HTML5 entity definitions
patchcheck.py Perform common checks and cleanup before committing
pathfix.py Change #!/usr/local/bin/python into something else
ptags.py Create vi tags file for Python modules
pydoc3 Python documentation browser
reindent.py Change .py files to use 4-space indents
run_tests.py Run the test suite with more sensible default options
stable_abi.py Stable ABI checks and file generators.
untabify.py Replace tabs with spaces in argument files
win_add2path.py Add Python to the search path on Windows
87 changes: 0 additions & 87 deletions Tools/scripts/gprof2html.py

This file was deleted.

Loading