Skip to content

Commit e90c7d1

Browse files
pyldap contributorsencukou
authored andcommitted
Tests: Replace deprecated "failIf" name by "assertFalse"
1 parent d54539f commit e90c7d1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Tests/t_cext.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ def _open_conn(self, bind=True):
6464
return l
6565

6666
def assertNotNone(self, expr, msg=None):
67-
self.failIf(expr is None, msg or repr(expr))
67+
self.assertFalse(expr is None, msg or repr(expr))
6868

6969
def assertNone(self, expr, msg=None):
70-
self.failIf(expr is not None, msg or repr(expr))
70+
self.assertFalse(expr is not None, msg or repr(expr))
7171

7272
# Test for the existence of a whole bunch of constants
7373
# that the C module is supposed to export

Tests/t_ldapurl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def test_ldapurl(self):
178178
class TestLDAPUrl(unittest.TestCase):
179179

180180
def assertNone(self, expr, msg=None):
181-
self.failIf(expr is not None, msg or ("%r" % expr))
181+
self.assertFalse(expr is not None, msg or ("%r" % expr))
182182

183183
def test_combo(self):
184184
u = MyLDAPUrl(

0 commit comments

Comments
 (0)