[Python-checkins] cpython: Issue 20123: try using a different builtin module in a pydoc test.

eric.snow python-checkins at python.org
Sun Jan 5 06:05:38 CET 2014


http://hg.python.org/cpython/rev/ff3be21338d5
changeset:   88309:ff3be21338d5
user:        Eric Snow <ericsnowcurrently at gmail.com>
date:        Sat Jan 04 21:56:07 2014 -0700
summary:
  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.

files:
  Lib/test/test_pydoc.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py
--- a/Lib/test/test_pydoc.py
+++ b/Lib/test/test_pydoc.py
@@ -635,12 +635,12 @@
         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))

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list