Module: check_mk
Branch: master
Commit: 25c26ebbe193ff81380ff1fb7815991d0f22f8d7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=25c26ebbe193ff…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Wed Mar 21 14:46:52 2018 +0100
checktestlib: Allow infotext to be unicode, as the check api converts to unicode anyway
Change-Id: I0da5c31c468151326a30db7eb8eebba2620ecd00
---
tests/checks/checktestlib.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/checks/checktestlib.py b/tests/checks/checktestlib.py
index a9f0488..68fa1a8 100644
--- a/tests/checks/checktestlib.py
+++ b/tests/checks/checktestlib.py
@@ -75,7 +75,7 @@ class BasicCheckResult(Tuploid):
assert status in [0, 1, 2, 3]
self.status = status
- assert type(infotext) == str
+ assert type(infotext) in [ str, unicode ]
assert "\n" not in infotext
self.infotext = infotext