[py-svn] r10777 - py/dist/py/documentation
hpk at codespeak.net
hpk at codespeak.net
Sun Apr 17 17:40:28 CEST 2005
Author: hpk
Date: Sun Apr 17 17:40:28 2005
New Revision: 10777
Modified:
py/dist/py/documentation/conftest.py
Log:
get rid of global state
Modified: py/dist/py/documentation/conftest.py
==============================================================================
--- py/dist/py/documentation/conftest.py (original)
+++ py/dist/py/documentation/conftest.py Sun Apr 17 17:40:28 2005
@@ -10,9 +10,6 @@
)
)
-docdir = py.path.svnwc(py.magic.autopath().dirpath())
-ddir = docdir.localpath
-
def checkdocutils():
try:
import docutils
@@ -103,7 +100,7 @@
def localrefcheck(tryfn, path, lineno):
# assume it should be a file
- fn = ddir.join(tryfn)
+ fn = path.dirpath(tryfn)
fn = fn.new(ext='.txt')
if not fn.check(file=1):
py.test.fail("reference error %r in %s:%d" %(
More information about the pytest-commit
mailing list