]> granicus.if.org Git - python/commitdiff
Issue 20123: try using a different builtin module in a pydoc test.
authorEric Snow <ericsnowcurrently@gmail.com>
Sun, 5 Jan 2014 04:56:07 +0000 (21:56 -0700)
committerEric Snow <ericsnowcurrently@gmail.com>
Sun, 5 Jan 2014 04:56:07 +0000 (21:56 -0700)
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

index 7fe0644c2fa0bf86be78216dce1b0ed817f0cde6..16f7835c79b7feb23bc48faf66a3bdd289bf7c1c 100644 (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))