Merge lp:~cjwatson/lazr.restful/py3-safe-hasattr-tests into lp:lazr.restful
Proposed by
Colin Watson
Status: | Merged |
---|---|
Merged at revision: | 289 |
Proposed branch: | lp:~cjwatson/lazr.restful/py3-safe-hasattr-tests |
Merge into: | lp:lazr.restful |
Diff against target: |
31 lines (+8/-2) 1 file modified
src/lazr/restful/docs/utils.rst (+8/-2) |
To merge this branch: | bzr merge lp:~cjwatson/lazr.restful/py3-safe-hasattr-tests |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ioana Lasc (community) | Approve | ||
Cristian Gonzalez (community) | Approve | ||
Review via email: mp+396625@code.launchpad.net |
Commit message
Adjust tests for hasattr() fix in Python 3.2.
Description of the change
Python 3.2 fixed hasattr() to only catch AttributeError rather than masking other errors, giving it similar behaviour to safe_hasattr() for most purposes. Adjust the tests to handle this.
To post a comment you must log in.
Looks good!