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.
This commit is contained in:
Eric Snow 2014-01-04 21:56:07 -07:00
parent 410d320703
commit 0dddf4258a
1 changed files with 2 additions and 2 deletions

View File

@ -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))