summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-11-16 00:11:36 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2021-11-17 00:47:56 +0000
commit89add577d755371fc2493225f4df6ea213c3881d (patch)
tree10d1a8dd827b3d70b04d624d54356dbb1e3a160e
parentRemove mock of non-existent property. (diff)
downloadsynapse-89add577d755371fc2493225f4df6ea213c3881d.tar.xz
Ignore monkey-patching functions. mypy doesn't currently allow this.
See https://github.com/python/mypy/issues/2427 for details/complaints.
-rw-r--r--tests/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/utils.py b/tests/utils.py

index 8b1b3f2e56..260c2e91a2 100644 --- a/tests/utils.py +++ b/tests/utils.py
@@ -341,12 +341,12 @@ def setup_test_homeserver( async def hash(p): return hashlib.md5(p.encode("utf8")).hexdigest() - hs.get_auth_handler().hash = hash + hs.get_auth_handler().hash = hash # type: ignore async def validate_hash(p, h): return hashlib.md5(p.encode("utf8")).hexdigest() == h - hs.get_auth_handler().validate_hash = validate_hash + hs.get_auth_handler().validate_hash = validate_hash # type: ignore return hs