Merge lp:~rick-rickspencer3/lazr.restfulclient/add_gaurd_for_None_to_eq_functions into lp:lazr.restfulclient
Proposed by
Rick Spencer
Status: | Merged |
---|---|
Merge reported by: | Leonard Richardson |
Merged at revision: | not available |
Proposed branch: | lp:~rick-rickspencer3/lazr.restfulclient/add_gaurd_for_None_to_eq_functions |
Merge into: | lp:lazr.restfulclient |
Diff against target: |
28 lines (+11/-0) 1 file modified
src/lazr/restfulclient/resource.py (+11/-0) |
To merge this branch: | bzr merge lp:~rick-rickspencer3/lazr.restfulclient/add_gaurd_for_None_to_eq_functions |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Nelson (community) | code | Approve | |
Review via email: mp+16043@code.launchpad.net |
Commit message
I add a guard condition to return False in the _eq_ functions in the case where the object getting compared is None. This resolves the case where there is an exception due to NoneType not having expected members, see bug 495326.
I did not write any tests, unfortunately. The tests for docs were not very complete, and I couldn't figure out the api from it or how to use test fixtures.
To post a comment you must log in.
fix for bug 495326