Module: check_mk
Branch: master
Commit: 3a55abdf28d47ef3902b463038b45fe065b0e032
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3a55abdf28d47e…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Fri Dec 22 11:39:47 2017 +0100
checktestlib: Use types.NoneType for assertions
Change-Id: Ifca027ede085b8b9dcb54c121c5ed743e229fea5
---
tests/checks/checktestlib.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/checks/checktestlib.py b/tests/checks/checktestlib.py
index 2d55171..492f10b 100644
--- a/tests/checks/checktestlib.py
+++ b/tests/checks/checktestlib.py
@@ -18,13 +18,13 @@ class PerfValue(object):
assert type(value) in [int, float]
self.value = value
- assert type(warn) in [int, float, type(None)]
+ assert type(warn) in [int, float, types.NoneType]
self.warn = warn
- assert type(crit) in [int, float, type(None)]
+ assert type(crit) in [int, float, types.NoneType]
self.crit = crit
- assert type(minimum) in [int, float, type(None)]
+ assert type(minimum) in [int, float, types.NoneType]
self.minimum = minimum
- assert type(maximum) in [int, float, type(None)]
+ assert type(maximum) in [int, float, types.NoneType]
self.maximum = maximum