diff options
Diffstat (limited to 'lib/testtools/MANUAL')
-rw-r--r-- | lib/testtools/MANUAL | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/testtools/MANUAL b/lib/testtools/MANUAL index db213669c9..1a43e70f23 100644 --- a/lib/testtools/MANUAL +++ b/lib/testtools/MANUAL @@ -42,6 +42,11 @@ logic in a try/finally block or tearDown method. e.g.:: self.addCleanup(foo.unlock) ... +Cleanups can also report multiple errors, if appropriate by wrapping them in +a testtools.MultipleExceptions object:: + + raise MultipleExceptions(exc_info1, exc_info2) + TestCase.addOnException ~~~~~~~~~~~~~~~~~~~~~~~ |