From 0dddf4258ac5b543b868e63adc9879dd932a46a4 Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Sat, 4 Jan 2014 21:56:07 -0700 Subject: [PATCH] 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. --- Lib/test/test_pydoc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py index 7fe0644c2fa..16f7835c79b 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))