summaryrefslogtreecommitdiff
path: root/testtools/deferredruntest.py
diff options
context:
space:
mode:
authorJonathan Lange <jml@canonical.com>2010-10-28 16:31:23 -0400
committerJonathan Lange <jml@canonical.com>2010-10-28 16:31:23 -0400
commit332d99a0d444b555e2fd69474a36ac86cf602d3e (patch)
tree6c41c60ca41ddba305254fd38b666c933b346af4 /testtools/deferredruntest.py
parent91b5a8a9af3aead1a3ab1b4a7fbb5149097bd6e8 (diff)
downloadtesttools-332d99a0d444b555e2fd69474a36ac86cf602d3e.tar.gz
Allow the reactor and timeout to be unspecified. Sometimes you only care
about one.
Diffstat (limited to 'testtools/deferredruntest.py')
-rw-r--r--testtools/deferredruntest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/testtools/deferredruntest.py b/testtools/deferredruntest.py
index 6582eb7..f2cac92 100644
--- a/testtools/deferredruntest.py
+++ b/testtools/deferredruntest.py
@@ -73,7 +73,8 @@ class AsynchronousDeferredRunTest(RunTest):
self._timeout = timeout
@classmethod
- def make_factory(cls, reactor, timeout):
+ def make_factory(cls, reactor=None, timeout=0.005):
+ """Make a factory that conforms to the RunTest factory interface."""
return lambda case, handlers=None: AsynchronousDeferredRunTest(
case, handlers, reactor, timeout)