]> granicus.if.org Git - python/commitdiff
Merged revisions 79543 via svnmerge from
authorBrian Curtin <brian.curtin@gmail.com>
Thu, 1 Apr 2010 04:03:45 +0000 (04:03 +0000)
committerBrian Curtin <brian.curtin@gmail.com>
Thu, 1 Apr 2010 04:03:45 +0000 (04:03 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79543 | brian.curtin | 2010-03-31 23:02:00 -0500 (Wed, 31 Mar 2010) | 2 lines

  Fix a test_pydoc failure on Neal Norwitz's buildbot.
........

Lib/pydoc.py

index 2314f275f288a3b9d7381a1f88bf1cd30ebd977d..4d6584b4fc6a16bc53b17841235f4501f374ac92 100755 (executable)
@@ -357,7 +357,7 @@ class Doc:
                                  'thread', 'zipimport') or
              (file.startswith(basedir) and
               not file.startswith(os.path.join(basedir, 'site-packages')))) and
-            object.__name__ != 'xml.etree'):
+            object.__name__ not in ('xml.etree', 'test.pydoc_mod')):
             if docloc.startswith("http://"):
                 docloc = "%s/%s" % (docloc.rstrip("/"), object.__name__)
             else: