From 8569bd57a92c73af39fe5f940a8aa6e90670a79d Mon Sep 17 00:00:00 2001 From: hpk Date: Mon, 14 Jan 2008 17:43:08 +0100 Subject: [PATCH] [svn r50606] don't fail for links to html files where we don'T have a .txt --HG-- branch : trunk --- py/doc/conftest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/py/doc/conftest.py b/py/doc/conftest.py index 37e38d05a..ffd5f9884 100644 --- a/py/doc/conftest.py +++ b/py/doc/conftest.py @@ -240,8 +240,9 @@ def localrefcheck(tryfn, path, lineno): fn = ishtml and fn.new(ext='.txt') or fn print "filename is", fn if not fn.check(): # not ishtml or not fn.check(): - py.test.fail("reference error %r in %s:%d" %( - tryfn, path.basename, lineno+1)) + if not py.path.local(tryfn).check(): # the html could be there + py.test.fail("reference error %r in %s:%d" %( + tryfn, path.basename, lineno+1)) if anchor: source = unicode(fn.read(), 'latin1') source = source.lower().replace('-', ' ') # aehem