From f4f94e9b4bac67ce206c0a1bd9aaaaccf735788e Mon Sep 17 00:00:00 2001 From: Corey O'Brien Date: Tue, 16 Feb 2016 09:41:16 -0500 Subject: [PATCH] Fix string formatting bug Change-Id: I2dc6e64879eafa5aeb7179c5067b6066d27893ec Closes-Bug: 1546123 --- magnum/tests/functional/common/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/magnum/tests/functional/common/utils.py b/magnum/tests/functional/common/utils.py index 415bf8cf8d..83cd08e0d0 100644 --- a/magnum/tests/functional/common/utils.py +++ b/magnum/tests/functional/common/utils.py @@ -89,8 +89,8 @@ def wait_for_condition(condition, interval=1, timeout=40): if result: return result time.sleep(interval) - raise Exception("Timed out after %s seconds. Started " + - "on %s and ended on %s" % (timeout, start_time, end_time)) + raise Exception(("Timed out after %s seconds. Started " + + "on %s and ended on %s") % (timeout, start_time, end_time)) def memoized(func):