Merge lp:~lifeless/python-oops-amqp/0.0.3 into lp:python-oops-amqp
Proposed by
Robert Collins
Status: | Merged |
---|---|
Merged at revision: | 4 |
Proposed branch: | lp:~lifeless/python-oops-amqp/0.0.3 |
Merge into: | lp:python-oops-amqp |
Diff against target: |
150 lines (+47/-9) 6 files modified
NEWS (+7/-0) oops_amqp/__init__.py (+1/-1) oops_amqp/publisher.py (+14/-5) oops_amqp/receiver.py (+8/-2) oops_amqp/utils.py (+13/-0) setup.py (+4/-1) |
To merge this branch: | bzr merge lp:~lifeless/python-oops-amqp/0.0.3 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Steve Kowalik (community) | code | Approve | |
Review via email: mp+80524@code.launchpad.net |
Description of the change
Handle IOError raised from within amqplib. This is sadly broad so I've narrowed it by checking the args. However, as its near-impossible (Read I haven't managed via automated means) to trigger this, I can't test it. Mocking things out would give false coverage: we're at primary risk of skew if amqplib decides to 'improve' its behaviour here. So - no tests :(. Other than that, should be straight forward and the existing socket.error tests should cover most situations.
To post a comment you must log in.
You're right, this does look a little odd, and the lack of tests also makes me sad.