skip tests that want to invoke py.test without proper installation

--HG--
branch : trunk
This commit is contained in:
holger krekel 2010-10-20 22:10:35 +02:00
parent 5701ffa8d6
commit e3f48a81c5
2 changed files with 2 additions and 7 deletions

View File

@ -425,12 +425,7 @@ class TmpTestdir:
assert script, "script %r not found" % scriptname
return (script,)
else:
cmdlinename = scriptname.replace(".", "")
assert hasattr(py.cmdline, cmdlinename), cmdlinename
source = ("import sys;sys.path.insert(0,%r);"
"import py;py.cmdline.%s()" %
(str(py._pydir.dirpath()), cmdlinename))
return (sys.executable, "-c", source,)
py.test.skip("cannot run %r with --no-tools-on-path" % scriptname)
def runpython(self, script, prepend=True):
if prepend:

View File

@ -44,5 +44,5 @@ basepython=pypy-c
[testenv:jython]
changedir=testing
commands=
{envpython} {envbindir}/py.test-jython \
{envpython} {envbindir}/py.test-jython --no-tools-on-path \
-rfsxX --junitxml={envlogdir}/junit-{envname}2.xml [acceptance_test.py plugin]