mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-29 06:56:15 -05:00
Move patch_inline_callbacks into synapse/
This commit is contained in:
parent
5c1f886c75
commit
1d6dd1c294
@ -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):
|
||||
|
@ -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.
|
||||
"""
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user