From 7be2ffea6a93e1d16e548bcb1d4870dccbe38c8c Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: May 05 2020 17:11:37 +0000 Subject: Fix E721 do not compare types, use 'isinstance()' Related: https://pagure.io/freeipa/issue/8306 Signed-off-by: Christian Heimes Reviewed-By: Florence Blanc-Renaud --- diff --git a/ipatests/test_ipalib/test_parameters.py b/ipatests/test_ipalib/test_parameters.py index 406c5bc..6293539 100644 --- a/ipatests/test_ipalib/test_parameters.py +++ b/ipatests/test_ipalib/test_parameters.py @@ -680,7 +680,7 @@ class test_Data(ClassChecker): Test the `ipalib.parameters.Data.__init__` method. """ o = self.cls('my_data') - assert o.type is type(None) + assert o.type is type(None) # noqa assert o.password is False assert o.rules == tuple() assert o.class_rules == tuple() @@ -1221,7 +1221,7 @@ class test_Number(ClassChecker): Test the `ipalib.parameters.Number.__init__` method. """ o = self.cls('my_number') - assert o.type is type(None) + assert o.type is type(None) # noqa assert o.password is False assert o.rules == tuple() assert o.class_rules == tuple()