summary refs log tree commit diff
path: root/tests/rest/client
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-12-10 11:13:15 +0000
committerErik Johnston <erik@matrix.org>2019-12-10 14:40:15 +0000
commit257ef2c727abbb289c460b930e8bac18ab80e053 (patch)
tree641bc2cc6b2c5244c0acf730486562e08a0042cd /tests/rest/client
parentPort handlers.account_data to async/await. (diff)
downloadsynapse-257ef2c727abbb289c460b930e8bac18ab80e053.tar.xz
Port handlers.account_validity to async/await.
Diffstat (limited to 'tests/rest/client')
-rw-r--r--tests/rest/client/v2_alpha/test_register.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/rest/client/v2_alpha/test_register.py b/tests/rest/client/v2_alpha/test_register.py
index c0d0d2b44e..d0c997e385 100644
--- a/tests/rest/client/v2_alpha/test_register.py
+++ b/tests/rest/client/v2_alpha/test_register.py
@@ -391,9 +391,8 @@ class AccountValidityRenewalByEmailTestCase(unittest.HomeserverTestCase):
         # Email config.
         self.email_attempts = []
 
-        def sendmail(*args, **kwargs):
+        async def sendmail(*args, **kwargs):
             self.email_attempts.append((args, kwargs))
-            return
 
         config["email"] = {
             "enable_notifs": True,