mirror of https://github.com/python/cpython
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:
parent
410d320703
commit
0dddf4258a
|
@ -635,12 +635,12 @@ class PydocImportTest(PydocBaseTest):
|
||||||
self.assertIn(expected, result)
|
self.assertIn(expected, result)
|
||||||
|
|
||||||
def test_modules_search_builtin(self):
|
def test_modules_search_builtin(self):
|
||||||
expected = 'gc - '
|
expected = '_imp - '
|
||||||
|
|
||||||
output = StringIO()
|
output = StringIO()
|
||||||
helper = pydoc.Helper(output=output)
|
helper = pydoc.Helper(output=output)
|
||||||
with captured_stdout() as help_io:
|
with captured_stdout() as help_io:
|
||||||
helper('modules garbage')
|
helper('modules low-level')
|
||||||
result = help_io.getvalue()
|
result = help_io.getvalue()
|
||||||
|
|
||||||
self.assertTrue(result.startswith(expected))
|
self.assertTrue(result.startswith(expected))
|
||||||
|
|
Loading…
Reference in New Issue