Skip to content

Commit

Permalink
Tests: Replace deprecated "failIf" name by "assertFalse"
Browse files Browse the repository at this point in the history
  • Loading branch information
pyldap contributors authored and Petr Viktorin committed Nov 24, 2017
1 parent d54539f commit e90c7d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Tests/t_cext.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Tests/t_ldapurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e90c7d1

Please sign in to comment.