Commit 0dddf425 authored by Eric Snow's avatar Eric Snow

Issue 20123: try using a different builtin module in a pydoc test.

The test is failing on one of the stable FreeBSD buildbots.  It seems
unlikely that the gc module would not be available, so switching to
_imp may not fix the problem.
parent 410d3207
......@@ -635,12 +635,12 @@ class PydocImportTest(PydocBaseTest):
self.assertIn(expected, result)
def test_modules_search_builtin(self):
expected = 'gc - '
expected = '_imp - '
output = StringIO()
helper = pydoc.Helper(output=output)
with captured_stdout() as help_io:
helper('modules garbage')
helper('modules low-level')
result = help_io.getvalue()
self.assertTrue(result.startswith(expected))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment