[py-svn] r50607 - py/dist/py/doc

hpk at codespeak.net hpk at codespeak.net
Mon Jan 14 17:43:39 CET 2008


Author: hpk
Date: Mon Jan 14 17:43:38 2008
New Revision: 50607

Modified:
   py/dist/py/doc/conftest.py
Log:
html-link fix 50606 to dist 


Modified: py/dist/py/doc/conftest.py
==============================================================================
--- py/dist/py/doc/conftest.py	(original)
+++ py/dist/py/doc/conftest.py	Mon Jan 14 17:43:38 2008
@@ -240,8 +240,9 @@
     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


More information about the py-svn mailing list