Why not proxy ldap exceptions?
Bug #649941 reported by
Gustavo Narea
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dataflake.ldapconnection |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Hello,
I'm using fakeldap to test LDAP functionality in my package, but because the exceptions defined by fakeldap don't subclass the relevant ldap exceptions, they're not caught by my application.
It seems like the only way to get it working is by except'ing fakeldap exceptions too, but I think this would be an ugly solution because I'd have to insert test-related code in my package.
Why not proxy ldap exceptions, or at least subclass them?
Thanks in advance, and thanks for making this nice package :)
- Gustavo.
To post a comment you must log in.
I can't recall why the original code did not re-use the python-ldap exceptions and all tests run fine with the change, so here it is:
http:// svn.dataflake. org/viewvc? view=rev& revision= 1614