[svn r63048] fix windows issues

--HG--
branch : trunk
This commit is contained in:
hpk
2009-03-18 18:05:37 +01:00
parent b7e47d0e3c
commit 6ba07a82ba
2 changed files with 3 additions and 3 deletions

View File

@@ -207,8 +207,8 @@ def test_subprocess_env(testdir, monkeypatch):
try:
monkeypatch.setitem(os.environ, "PYLIB", 'unknownconsider')
excinfo = py.test.raises(py.process.cmdexec.Error, """
py.process.cmdexec("python -c 'import py'")
""")
py.process.cmdexec('%s -c "import py"')
""" % py.std.sys.executable)
assert str(excinfo.value).find("ImportError") != -1
assert str(excinfo.value).find("unknownconsider") != -1
finally: