[svn r50606] don't fail for links to html files where we don'T have a .txt
--HG-- branch : trunk
This commit is contained in:
parent
efd732b035
commit
8569bd57a9
|
@ -240,6 +240,7 @@ def localrefcheck(tryfn, path, lineno):
|
||||||
fn = ishtml and fn.new(ext='.txt') or fn
|
fn = ishtml and fn.new(ext='.txt') or fn
|
||||||
print "filename is", fn
|
print "filename is", fn
|
||||||
if not fn.check(): # not ishtml or not fn.check():
|
if not fn.check(): # not ishtml or not fn.check():
|
||||||
|
if not py.path.local(tryfn).check(): # the html could be there
|
||||||
py.test.fail("reference error %r in %s:%d" %(
|
py.test.fail("reference error %r in %s:%d" %(
|
||||||
tryfn, path.basename, lineno+1))
|
tryfn, path.basename, lineno+1))
|
||||||
if anchor:
|
if anchor:
|
||||||
|
|
Loading…
Reference in New Issue