[svn r37326] Fixed exec command on win32

--HG--
branch : trunk
This commit is contained in:
guido 2007-01-25 13:56:12 +01:00
parent eac3021405
commit 987ae8e943
1 changed files with 4 additions and 2 deletions

View File

@ -87,9 +87,11 @@ def test_siblingconftest_fails_maybe():
assert cfg.getvalue(path=o.join('sister1'), name='x') == 2 assert cfg.getvalue(path=o.join('sister1'), name='x') == 2
old = o.chdir() old = o.chdir()
try: try:
print py.process.cmdexec("py.test sister1") pytestpath = py.magic.autopath().dirpath().dirpath().dirpath().join(
'bin/py.test')
print py.process.cmdexec('python "%s" sister1' % (pytestpath,))
o.join('sister1').chdir() o.join('sister1').chdir()
print py.process.cmdexec("py.test") print py.process.cmdexec('python "%s"' % (pytestpath,))
finally: finally:
old.chdir() old.chdir()