Opened 2 years ago

Last modified 2 years ago

#6721 enhancement new

Mention the expectedExceptionTypes argument to failureResultOf

Reported by: tom.prince Owned by:
Priority: normal Milestone:
Component: trial Keywords: documentation policy
Cc: jml Branch:
Author: Launchpad Bug:


In a comment on #6588, exarkun pointed out that

self.failureResultOf(deferred, SomeException)

provides a nicer failure than

failure = failureResultOf(deferred)

and doesn't suffer from depending on raising an exception from a test as

failure = failureResultOf(deferred)


It seems like the first of these should be the preferred form, so we should document it, and suggest its usage in the trial howto.

Change History (1)

comment:1 Changed 2 years ago by DefaultCC Plugin

  • Cc jml added
Note: See TracTickets for help on using tickets.