]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-64327: Remove skipped pydoc tests (#139512)
authorVictor Stinner <vstinner@python.org>
Sun, 5 Oct 2025 10:49:03 +0000 (12:49 +0200)
committerGitHub <noreply@github.com>
Sun, 5 Oct 2025 10:49:03 +0000 (12:49 +0200)
Tests skipped since 2014:
since commit a46ef70bdfa0273a9d2cc40014c0ab74967fe654.

Lib/test/test_pydoc/test_pydoc.py

index 1793ef148703b1c6647921fd552cd15b4eea87b8..65ad7649b9e2dba2714fa4ce1dcb5419185af429 100644 (file)
@@ -1334,47 +1334,6 @@ class PydocImportTest(PydocBaseTest):
             finally:
                 sys.path[:] = saved_paths
 
-    @unittest.skip('causes undesirable side-effects (#20128)')
-    def test_modules(self):
-        # See Helper.listmodules().
-        num_header_lines = 2
-        num_module_lines_min = 5  # Playing it safe.
-        num_footer_lines = 3
-        expected = num_header_lines + num_module_lines_min + num_footer_lines
-
-        output = StringIO()
-        helper = pydoc.Helper(output=output)
-        helper('modules')
-        result = output.getvalue().strip()
-        num_lines = len(result.splitlines())
-
-        self.assertGreaterEqual(num_lines, expected)
-
-    @unittest.skip('causes undesirable side-effects (#20128)')
-    def test_modules_search(self):
-        # See Helper.listmodules().
-        expected = 'pydoc - '
-
-        output = StringIO()
-        helper = pydoc.Helper(output=output)
-        with captured_stdout() as help_io:
-            helper('modules pydoc')
-        result = help_io.getvalue()
-
-        self.assertIn(expected, result)
-
-    @unittest.skip('some buildbots are not cooperating (#20128)')
-    def test_modules_search_builtin(self):
-        expected = 'gc - '
-
-        output = StringIO()
-        helper = pydoc.Helper(output=output)
-        with captured_stdout() as help_io:
-            helper('modules garbage')
-        result = help_io.getvalue()
-
-        self.assertStartsWith(result, expected)
-
     def test_importfile(self):
         try:
             loaded_pydoc = pydoc.importfile(pydoc.__file__)