summaryrefslogtreecommitdiff
path: root/tests/utilities.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/utilities.py')
-rw-r--r--tests/utilities.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/utilities.py b/tests/utilities.py
index 402feb38..8123afd8 100644
--- a/tests/utilities.py
+++ b/tests/utilities.py
@@ -171,3 +171,13 @@ def make_key(revoked=False, expired=False, invalid=False, can_encrypt=True,
mock_key.can_sign = can_sign
return mock_key
+
+
+def expected_failure(func):
+ """For marking expected failures for twisted.trial based unit tests.
+
+ The builtin unittest.expectedFailure does not work with twisted.trail,
+ there is an outstanding bug for this, but no one has ever fixed it.
+ """
+ func.todo = 'expected failure'
+ return func