Module: check_mk
Branch: master
Commit: 0933a81557046e9a9a7eaf27a68ae6b129c9b50c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0933a81557046e…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Fri Apr 26 12:42:22 2019 +0200
checktestlib: make error message work for tuples
Change-Id: I5219e19094b86f4d2d960c1f8bcfc82e47ac5fa3
---
tests/unit/checks/checktestlib.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/unit/checks/checktestlib.py b/tests/unit/checks/checktestlib.py
index 8e9515c..b74699f 100644
--- a/tests/unit/checks/checktestlib.py
+++ b/tests/unit/checks/checktestlib.py
@@ -104,7 +104,7 @@ class BasicCheckResult(Tuploid):
self.multiline = None
assert status in [0, 1, 2, 3], \
- "BasicCheckResult: status must be in (0, 1, 2, 3) - not %r" % status
+ "BasicCheckResult: status must be in (0, 1, 2, 3) - not %r" % (status,)
ti = type(infotext)
assert ti in [str, unicode], \