diff options
author | Jonathan de Jong <jonathandejong02@gmail.com> | 2020-11-30 19:28:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-30 13:28:44 -0500 |
commit | ca60822b34416e524a80c5689734d870ceb6e130 (patch) | |
tree | dca86cc2cd690ac3e2f5c176432a98b4c0f1f81d /tests/utils.py | |
parent | Add `force_purge` option to delete-room admin api. (#8843) (diff) | |
download | synapse-ca60822b34416e524a80c5689734d870ceb6e130.tar.xz |
Simplify the way the `HomeServer` object caches its internal attributes. (#8565)
Changes `@cache_in_self` to use underscore-prefixed attributes.
Diffstat (limited to '')
-rw-r--r-- | tests/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utils.py b/tests/utils.py index acec74e9e9..c8d3ffbaba 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -271,7 +271,7 @@ def setup_test_homeserver( # Install @cache_in_self attributes for key, val in kwargs.items(): - setattr(hs, key, val) + setattr(hs, "_" + key, val) # Mock TLS hs.tls_server_context_factory = Mock() |