]> granicus.if.org Git - python/commitdiff
Fix a test_pydoc failure on Neal Norwitz's buildbot.
authorBrian Curtin <brian.curtin@gmail.com>
Thu, 1 Apr 2010 04:02:00 +0000 (04:02 +0000)
committerBrian Curtin <brian.curtin@gmail.com>
Thu, 1 Apr 2010 04:02:00 +0000 (04:02 +0000)
Lib/pydoc.py

index 13b4904b25d0ed9ca5149d3e53f21383924ec751..dd7eb38f2ca12e799d31a1dfe4c004273e781455 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: