parent
5f25395cdd
commit
eb68ec75aa
|
@ -29,8 +29,12 @@ def checkprocess(script):
|
||||||
script.basename.startswith("py.which"):
|
script.basename.startswith("py.which"):
|
||||||
cmd += " sys"
|
cmd += " sys"
|
||||||
print "executing", script
|
print "executing", script
|
||||||
|
try:
|
||||||
|
old = script.dirpath().chdir()
|
||||||
try:
|
try:
|
||||||
py.process.cmdexec(cmd)
|
py.process.cmdexec(cmd)
|
||||||
|
finally:
|
||||||
|
old.chdir()
|
||||||
except py.process.cmdexec.Error, e:
|
except py.process.cmdexec.Error, e:
|
||||||
if cmd.find("py.rest") != -1 and \
|
if cmd.find("py.rest") != -1 and \
|
||||||
e.out.find("module named") != -1:
|
e.out.find("module named") != -1:
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
|
||||||
""" rst generation tests
|
""" rst generation tests
|
||||||
"""
|
"""
|
||||||
|
import py
|
||||||
|
py.test.importorskip("docutils")
|
||||||
from py.__.rest.rst import *
|
from py.__.rest.rst import *
|
||||||
from py.__.misc.rest import process as restcheck
|
from py.__.misc.rest import process as restcheck
|
||||||
import traceback
|
import traceback
|
||||||
|
|
Loading…
Reference in New Issue