From 987ae8e943bbda8eeacc34100194dd73b7a185fd Mon Sep 17 00:00:00 2001 From: guido Date: Thu, 25 Jan 2007 13:56:12 +0100 Subject: [PATCH] [svn r37326] Fixed exec command on win32 --HG-- branch : trunk --- py/test/testing/test_config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/py/test/testing/test_config.py b/py/test/testing/test_config.py index c79904712..56c6ed42b 100644 --- a/py/test/testing/test_config.py +++ b/py/test/testing/test_config.py @@ -87,9 +87,11 @@ def test_siblingconftest_fails_maybe(): assert cfg.getvalue(path=o.join('sister1'), name='x') == 2 old = o.chdir() 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() - print py.process.cmdexec("py.test") + print py.process.cmdexec('python "%s"' % (pytestpath,)) finally: old.chdir()