skip tests that want to invoke py.test without proper installation
--HG-- branch : trunk
This commit is contained in:
parent
5701ffa8d6
commit
e3f48a81c5
|
@ -425,12 +425,7 @@ class TmpTestdir:
|
||||||
assert script, "script %r not found" % scriptname
|
assert script, "script %r not found" % scriptname
|
||||||
return (script,)
|
return (script,)
|
||||||
else:
|
else:
|
||||||
cmdlinename = scriptname.replace(".", "")
|
py.test.skip("cannot run %r with --no-tools-on-path" % scriptname)
|
||||||
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,)
|
|
||||||
|
|
||||||
def runpython(self, script, prepend=True):
|
def runpython(self, script, prepend=True):
|
||||||
if prepend:
|
if prepend:
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -44,5 +44,5 @@ basepython=pypy-c
|
||||||
[testenv:jython]
|
[testenv:jython]
|
||||||
changedir=testing
|
changedir=testing
|
||||||
commands=
|
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]
|
-rfsxX --junitxml={envlogdir}/junit-{envname}2.xml [acceptance_test.py plugin]
|
||||||
|
|
Loading…
Reference in New Issue