Merge lp:~cjwatson/canonical-identity-provider/readonly-requests into lp:canonical-identity-provider/release
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | no longer in the source branch. |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | lp:~cjwatson/canonical-identity-provider/readonly-requests |
Merge into: | lp:canonical-identity-provider/release |
Diff against target: |
421 lines (+88/-94) 8 files modified
requirements.txt (+1/-0) requirements_devel.txt (+3/-1) src/api/v10/tests/utils.py (+15/-8) src/identityprovider/readonly.py (+4/-11) src/identityprovider/tests/test_command_readonly.py (+5/-3) src/identityprovider/tests/test_readonly.py (+52/-69) src/identityprovider/tests/test_wsgi.py (+1/-2) src/identityprovider/tests/utils.py (+7/-0) |
To merge this branch: | bzr merge lp:~cjwatson/canonical-identity-provider/readonly-requests |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Adam Collard (community) | Approve | ||
Review via email: mp+336739@code.launchpad.net |
Commit message
Convert identityprovide
Description of the change
While working out what would be involved in a Python 3 port, I ran across the urllib2 mocks here, which are ugly and a bit difficult to make 2/3 bilingual, so I thought it'd be best to just port this code to requests.
Incidentally, the old code was buggy: it doesn't restore the previous default socket timeout if urlopen raises an exception. Who knows if this ever caused a problem ...
I had to upgrade wsgi-intercept to support requests. u1testutils.
Nice, responses is much easier to read.