From 10a4d50b5b5289baefd1e7844d43cb8d41b8858a Mon Sep 17 00:00:00 2001 From: stroeder Date: Wed, 26 Apr 2017 20:33:12 +0000 Subject: [PATCH] cosmetics in TestLdapCExtension.test_errno107() --- Tests/t_cext.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/t_cext.py b/Tests/t_cext.py index ac0f335..398a4fa 100644 --- a/Tests/t_cext.py +++ b/Tests/t_cext.py @@ -655,14 +655,14 @@ def test_errno107(self): l = _ldap.initialize('ldap://127.0.0.1:42') try: m = l.simple_bind("", "") - result, pmsg, msgid, ctrls = l.result4(m, _ldap.MSG_ALL, self.timeout) + r = l.result4(m, _ldap.MSG_ALL, self.timeout) except _ldap.SERVER_DOWN, ldap_err: errno = ldap_err.args[0]['errno'] - if errno!=107: + if errno != 107: self.fail("expected errno=107, got %d" % errno) else: self.fail("expected SERVER_DOWN, got %r" % r) - + if __name__ == '__main__': unittest.main()