summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2017-05-17 07:34:02 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2017-05-17 07:34:02 +0200
commitee57872eaceb8d29a1312fac13a757a81490610f (patch)
treed3d0ea943c7e33a46cbebd3437703059669cd04c
parentc883810963b208e60b714e2c222b32f20bd6138a (diff)
Fix an unorderable types error (if python 3)
Change-Id: I07c5a548f10a1779faead4d9c596a1976aff8866 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--functest/core/testcase.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/functest/core/testcase.py b/functest/core/testcase.py
index d8b63ef29..431615250 100644
--- a/functest/core/testcase.py
+++ b/functest/core/testcase.py
@@ -94,6 +94,7 @@ class TestCase(object):
"""
try:
assert self.criteria
+ assert self.result is not None
if (not isinstance(self.result, str) and
not isinstance(self.criteria, str)):
if self.result >= self.criteria: