diff options
author | Erik Johnston <erikj@jki.re> | 2017-03-31 09:43:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-31 09:43:10 +0100 |
commit | 350333a09a2047b2587706d68143894d008f039e (patch) | |
tree | 1319a9f8265f3f07b3a51c8448af65b42a2aa664 /tests | |
parent | Merge pull request #2083 from matrix-org/erikj/copy_replace_speed (diff) | |
parent | Add comment (diff) | |
download | synapse-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.py | 4 |
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 } |