From b9313a12c37362126128284aa31f27ee47b2e80c Mon Sep 17 00:00:00 2001 From: Michael E Brown Date: Mon, 31 Mar 2008 17:34:52 -0500 Subject: fix typo which causes exception in command-timeout code (which was trying to raise exception) --- py/mock/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/mock') diff --git a/py/mock/util.py b/py/mock/util.py index 9f0eb3a..7f46b94 100644 --- a/py/mock/util.py +++ b/py/mock/util.py @@ -306,7 +306,7 @@ def do(command, shell=False, chrootPath=None, cwd=None, timeout=0, raiseExc=True os.killpg(child.pid, 9) if not niceExit: - raise commandTimeoutExpired, ("Timeout(%s) expired for command:\n # %s\n%s" % (timeout, cmd, output)) + raise commandTimeoutExpired, ("Timeout(%s) expired for command:\n # %s\n%s" % (timeout, command, output)) logger.debug("Child returncode was: %s" % str(child.returncode)) if raiseExc and child.returncode: -- cgit