Opened 6 years ago

Last modified 6 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: Jonathan Lange Branch:


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 6 years ago by DefaultCC Plugin

Cc: Jonathan Lange added
Note: See TracTickets for help on using tickets.