summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--synapse/util/patch_inline_callbacks.py (renamed from tests/patch_inline_callbacks.py)2
-rw-r--r--tests/__init__.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/patch_inline_callbacks.py b/synapse/util/patch_inline_callbacks.py

index a35a1d3305..4fb49b0b2b 100644 --- a/tests/patch_inline_callbacks.py +++ b/synapse/util/patch_inline_callbacks.py
@@ -105,7 +105,7 @@ def do_patch(): def _check_yield_points(f, changes, start_context): - """Wraps a generator that is about to passed to defer.inlineCallbacks + """Wraps a generator that is about to be passed to defer.inlineCallbacks checking that after every yield the log contexts are correct. """ diff --git a/tests/__init__.py b/tests/__init__.py
index f7fc502f01..ed805db1c2 100644 --- a/tests/__init__.py +++ b/tests/__init__.py
@@ -16,9 +16,9 @@ from twisted.trial import util -import tests.patch_inline_callbacks +from synapse.util.patch_inline_callbacks import do_patch # attempt to do the patch before we load any synapse code -tests.patch_inline_callbacks.do_patch() +do_patch() util.DEFAULT_TIMEOUT_DURATION = 20