diff options
author | Erik Johnston <erik@matrix.org> | 2017-03-28 13:03:50 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-03-28 13:27:21 +0100 |
commit | 650f0e69f2ff1c15739868c0e1a639d70ac13dbf (patch) | |
tree | 5fd92690d2a4fed1e61b8490bdefba7920577285 /tests/appservice/test_appservice.py | |
parent | Merge pull request #2070 from matrix-org/erikj/perf_send (diff) | |
download | synapse-650f0e69f2ff1c15739868c0e1a639d70ac13dbf.tar.xz |
Compile the regex's used in ASes
Diffstat (limited to 'tests/appservice/test_appservice.py')
-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 } |