summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-03-28 13:03:50 +0100
committerErik Johnston <erik@matrix.org>2017-03-28 13:27:21 +0100
commit650f0e69f2ff1c15739868c0e1a639d70ac13dbf (patch)
tree5fd92690d2a4fed1e61b8490bdefba7920577285 /tests
parentMerge pull request #2070 from matrix-org/erikj/perf_send (diff)
downloadsynapse-650f0e69f2ff1c15739868c0e1a639d70ac13dbf.tar.xz
Compile the regex's used in ASes
Diffstat (limited to 'tests')
-rw-r--r--tests/appservice/test_appservice.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/appservice/test_appservice.py b/tests/appservice/test_appservice.py
index aa8cc50550..7586ea9053 100644
--- a/tests/appservice/test_appservice.py
+++ b/tests/appservice/test_appservice.py
@@ -19,10 +19,12 @@ from twisted.internet import defer
 from mock import Mock
 from tests import unittest
 
+import re
+
 
 def _regex(regex, exclusive=True):
     return {
-        "regex": regex,
+        "regex": re.compile(regex),
         "exclusive": exclusive
     }