1 files changed, 7 insertions, 0 deletions
diff --git a/tests/utils.py b/tests/utils.py
index ba902dc077..5798b04eef 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -35,6 +35,13 @@ from synapse.storage.database import LoggingDatabaseConnection
from synapse.storage.engines import create_engine
from synapse.storage.prepare_database import prepare_database
+try:
+ import authlib # noqa: F401
+
+ HAS_AUTHLIB = True
+except ImportError:
+ HAS_AUTHLIB = False
+
# set this to True to run the tests against postgres instead of sqlite.
#
# When running under postgres, we first create a base database with the name
|