[py-svn] r38831 - py/trunk/py/doc

hpk at codespeak.net hpk at codespeak.net
Wed Feb 14 15:07:24 CET 2007


Author: hpk
Date: Wed Feb 14 15:07:23 2007
New Revision: 38831

Modified:
   py/trunk/py/doc/conftest.py
Log:
be more careful to not work with svnwc() paths
when checking for mtimes


Modified: py/trunk/py/doc/conftest.py
==============================================================================
--- py/trunk/py/doc/conftest.py	(original)
+++ py/trunk/py/doc/conftest.py	Wed Feb 14 15:07:23 2007
@@ -98,6 +98,9 @@
 
 def _checkskip(lpath, htmlpath=None):
     if not option.forcegen:
+        lpath = py.path.local(lpath)
+        if htmlpath is not None:
+            htmlpath = py.path.local(htmlpath)
         if lpath.ext == '.txt': 
             htmlpath = htmlpath or lpath.new(ext='.html')
             if htmlpath.check(file=1) and htmlpath.mtime() >= lpath.mtime(): 



More information about the pytest-commit mailing list