Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
1d6dd1c2
Commit
1d6dd1c2
authored
5 years ago
by
Erik Johnston
Browse files
Options
Downloads
Patches
Plain Diff
Move patch_inline_callbacks into synapse/
parent
5c1f886c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
synapse/__init__.py
+1
-1
1 addition, 1 deletion
synapse/__init__.py
synapse/util/patch_inline_callbacks.py
+1
-1
1 addition, 1 deletion
synapse/util/patch_inline_callbacks.py
tests/__init__.py
+2
-2
2 additions, 2 deletions
tests/__init__.py
with
4 additions
and
4 deletions
synapse/__init__.py
+
1
−
1
View file @
1d6dd1c2
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
tests
/patch_inline_callbacks.py
→
synapse/util
/patch_inline_callbacks.py
+
1
−
1
View file @
1d6dd1c2
...
...
@@ -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.
"""
...
...
This diff is collapsed.
Click to expand it.
tests/__init__.py
+
2
−
2
View file @
1d6dd1c2
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment