Move patch_inline_callbacks into synapse/

This commit is contained in:
Erik Johnston 2019-10-10 10:53:06 +01:00
parent 5c1f886c75
commit 1d6dd1c294
3 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@
import os
import sys
from tests.patch_inline_callbacks import do_patch
from synapse.util.patch_inline_callbacks import do_patch
# Check that we're not running on an unsupported Python version.
if sys.version_info < (3, 5):

View File

@ -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.
"""

View File

@ -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