@@ -1334,47 +1334,6 @@ def test_url_search_package_error(self):
13341334 finally :
13351335 sys .path [:] = saved_paths
13361336
1337- @unittest .skip ('causes undesirable side-effects (#20128)' )
1338- def test_modules (self ):
1339- # See Helper.listmodules().
1340- num_header_lines = 2
1341- num_module_lines_min = 5 # Playing it safe.
1342- num_footer_lines = 3
1343- expected = num_header_lines + num_module_lines_min + num_footer_lines
1344-
1345- output = StringIO ()
1346- helper = pydoc .Helper (output = output )
1347- helper ('modules' )
1348- result = output .getvalue ().strip ()
1349- num_lines = len (result .splitlines ())
1350-
1351- self .assertGreaterEqual (num_lines , expected )
1352-
1353- @unittest .skip ('causes undesirable side-effects (#20128)' )
1354- def test_modules_search (self ):
1355- # See Helper.listmodules().
1356- expected = 'pydoc - '
1357-
1358- output = StringIO ()
1359- helper = pydoc .Helper (output = output )
1360- with captured_stdout () as help_io :
1361- helper ('modules pydoc' )
1362- result = help_io .getvalue ()
1363-
1364- self .assertIn (expected , result )
1365-
1366- @unittest .skip ('some buildbots are not cooperating (#20128)' )
1367- def test_modules_search_builtin (self ):
1368- expected = 'gc - '
1369-
1370- output = StringIO ()
1371- helper = pydoc .Helper (output = output )
1372- with captured_stdout () as help_io :
1373- helper ('modules garbage' )
1374- result = help_io .getvalue ()
1375-
1376- self .assertStartsWith (result , expected )
1377-
13781337 def test_importfile (self ):
13791338 try :
13801339 loaded_pydoc = pydoc .importfile (pydoc .__file__ )
0 commit comments