From: Tim Beale Date: Fri, 27 Jul 2018 01:33:26 +0000 (+1200) Subject: Fix PEP8 warning E711 comparison to None X-Git-Tag: tdb-1.3.17~2140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a39c8f44319b2bdff376ce690ec0fd4f94d0e6bc;p=thirdparty%2Fsamba.git Fix PEP8 warning E711 comparison to None Signed-off-by: Tim Beale Signed-off-by: Joe Guo Reviewed-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- diff --git a/source4/dsdb/tests/python/password_settings.py b/source4/dsdb/tests/python/password_settings.py index 9bd536592af..8e04b8513a5 100644 --- a/source4/dsdb/tests/python/password_settings.py +++ b/source4/dsdb/tests/python/password_settings.py @@ -593,7 +593,7 @@ class PasswordSettingsTestCase(PasswordTestCase): self.set_attribute(user.dn, "userAccountControl", str(dsdb.UF_WORKSTATION_TRUST_ACCOUNT), operation=FLAG_MOD_REPLACE) - self.assertTrue(user.get_resultant_PSO() == None) + self.assertIsNone(user.get_resultant_PSO()) # reset it back to a normal user account self.set_attribute(user.dn, "userAccountControl",