~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/messaging/tests/test_rabbit.py

[r=allenap][no-qa] Suppress IOError in RabbitUnreliableSession.

Show diffs side-by-side

added added

removed removed

Lines of Context:
211
211
        session.finish()
212
212
        # Look, no exceptions!
213
213
 
 
214
    def raise_IOError(self):
 
215
        raise IOError("Leg eaten by cow.")
 
216
 
 
217
    def test_finish_suppresses_IOError(self):
 
218
        session = RabbitUnreliableSession()
 
219
        session.defer(self.raise_IOError)
 
220
        session.finish()
 
221
        # Look, no exceptions!
 
222
 
214
223
    def raise_Exception(self):
215
224
        raise Exception("That hent worked.")
216
225