From e90c7d15a870f1ac33fa6f177c42830c7d2271d7 Mon Sep 17 00:00:00 2001 From: pyldap contributors Date: Thu, 23 Nov 2017 22:46:08 +0100 Subject: [PATCH] Tests: Replace deprecated "failIf" name by "assertFalse" --- Tests/t_cext.py | 4 ++-- Tests/t_ldapurl.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/t_cext.py b/Tests/t_cext.py index 7c1417b..3cbdbe7 100644 --- a/Tests/t_cext.py +++ b/Tests/t_cext.py @@ -64,10 +64,10 @@ def _open_conn(self, bind=True): return l def assertNotNone(self, expr, msg=None): - self.failIf(expr is None, msg or repr(expr)) + self.assertFalse(expr is None, msg or repr(expr)) def assertNone(self, expr, msg=None): - self.failIf(expr is not None, msg or repr(expr)) + self.assertFalse(expr is not None, msg or repr(expr)) # Test for the existence of a whole bunch of constants # that the C module is supposed to export diff --git a/Tests/t_ldapurl.py b/Tests/t_ldapurl.py index 407538f..a68b032 100644 --- a/Tests/t_ldapurl.py +++ b/Tests/t_ldapurl.py @@ -178,7 +178,7 @@ def test_ldapurl(self): class TestLDAPUrl(unittest.TestCase): def assertNone(self, expr, msg=None): - self.failIf(expr is not None, msg or ("%r" % expr)) + self.assertFalse(expr is not None, msg or ("%r" % expr)) def test_combo(self): u = MyLDAPUrl(