mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue