From: Eric Snow Date: Sun, 5 Jan 2014 04:56:07 +0000 (-0700) Subject: Issue 20123: try using a different builtin module in a pydoc test. X-Git-Tag: v3.4.0b2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0dddf4258ac5b543b868e63adc9879dd932a46a4;p=python 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. --- diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py index 7fe0644c2f..16f7835c79 100644 --- a/Lib/test/test_pydoc.py +++ b/Lib/test/test_pydoc.py @@ -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))