summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-11-16 00:10:04 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2021-11-17 00:47:56 +0000
commited833e3bc9fd0acc86dae8c80f3a17a5c3fae334 (patch)
tree21640c81ecf401f615f2c4da6caf95f1d5171c21
parentDon't re-use variable names with differing types. (diff)
downloadsynapse-ed833e3bc9fd0acc86dae8c80f3a17a5c3fae334.tar.xz
Again, don't re-use variable names.
Interestingly I noticed that the reactor argument is never actually set by any calling functions. Should we just remove it?
-rw-r--r--tests/utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/utils.py b/tests/utils.py

index fdf9958973..518254d633 100644 --- a/tests/utils.py +++ b/tests/utils.py
@@ -210,7 +210,9 @@ def setup_test_homeserver( HomeserverTestCase. """ if reactor is None: - from twisted.internet import reactor + from twisted.internet import reactor as _reactor + + reactor = _reactor if config is None: config_dict = default_config(name)