-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error reporting of LDAPObject.set_option()
Fix error reporting of LDAPObject.set_option() The method LDAPObject.set_option() did not signal an exception in case the set option failed. The bug was caused by checking for the wrong error value. The internal C function LDAP_set_option() returns ``1`` for sucess and ``0`` for error, but LDAPObject.set_option() was checking for ``-1``. Add some tests for LDAPObject.set_option() and LDAPObject.get_option(). https://github.com/python-ldap/python-ldap/pull/101 Closes: https://github.com/python-ldap/python-ldap/issues/100 Signed-off-by: Christian Heimes <cheimes@redhat.com>
- Loading branch information
Christian Heimes
authored and
Petr Viktorin
committed
Dec 5, 2017
1 parent
c4bcf1d
commit eb9dbc1
Showing
2 changed files
with
85 additions
and
27 deletions.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters