summaryrefslogtreecommitdiff
path: root/testtools/twistedsupport/_matchers.py
diff options
context:
space:
mode:
Diffstat (limited to 'testtools/twistedsupport/_matchers.py')
-rw-r--r--testtools/twistedsupport/_matchers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/testtools/twistedsupport/_matchers.py b/testtools/twistedsupport/_matchers.py
index d617f89..99985e3 100644
--- a/testtools/twistedsupport/_matchers.py
+++ b/testtools/twistedsupport/_matchers.py
@@ -164,7 +164,8 @@ def failed(matcher):
For example::
error = RuntimeError('foo')
- fails_at_runtime = failed(Equals(error))
+ fails_at_runtime = failed(
+ AfterPreprocessing(lambda f: f.value, Equals(error)))
deferred = defer.fail(error)
assert_that(deferred, fails_at_runtime)