[py-svn] r33712 - py/dist/py/documentation

guido at codespeak.net guido at codespeak.net
Wed Oct 25 13:16:41 CEST 2006


Author: guido
Date: Wed Oct 25 13:16:36 2006
New Revision: 33712

Modified:
   py/dist/py/documentation/conftest.py
Log:
Sm


Modified: py/dist/py/documentation/conftest.py
==============================================================================
--- py/dist/py/documentation/conftest.py	(original)
+++ py/dist/py/documentation/conftest.py	Wed Oct 25 13:16:36 2006
@@ -21,12 +21,15 @@
         py.test.skip("docutils not importable")
 
 def restcheck(path):
-    _checkskip(path.localpath)
+    localpath = path
+    if hasattr(path, 'localpath'):
+        localpath = path.localpath
+    _checkskip(localpath)
     checkdocutils() 
     import docutils.utils
 
     try: 
-        cur = path.localpath
+        cur = localpath
         for x in cur.parts(reverse=True):
             confrest = x.dirpath('confrest.py')
             if confrest.check(file=1): 



More information about the pytest-commit mailing list