summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2017-03-31 09:43:10 +0100
committerGitHub <noreply@github.com>2017-03-31 09:43:10 +0100
commit350333a09a2047b2587706d68143894d008f039e (patch)
tree1319a9f8265f3f07b3a51c8448af65b42a2aa664 /tests
parentMerge pull request #2083 from matrix-org/erikj/copy_replace_speed (diff)
parentAdd comment (diff)
downloadsynapse-350333a09a2047b2587706d68143894d008f039e.tar.xz
Merge pull request #2076 from matrix-org/erikj/as_perf
Make AS's faster
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
     }