summaryrefslogtreecommitdiff
path: root/tests/template_tests/test_parser.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-01-19 21:10:33 -0500
committerAymeric Augustin <aymeric.augustin@m4x.org>2017-01-20 08:49:47 +0100
commit109b33f64c8d3f48c9e0bd3ea8d42fe6f3cb02b7 (patch)
treece4c2311d5993e2e6b70062530834269314c0eb1 /tests/template_tests/test_parser.py
parentdc8834cad41aa407f402dc54788df3cd37ab3e22 (diff)
Refs #23919 -- Simplified assertRaisesRegex()'s that accounted for Python 2.
Diffstat (limited to 'tests/template_tests/test_parser.py')
-rw-r--r--tests/template_tests/test_parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/template_tests/test_parser.py b/tests/template_tests/test_parser.py
index 3b59424f47..cd2f2ddc05 100644
--- a/tests/template_tests/test_parser.py
+++ b/tests/template_tests/test_parser.py
@@ -68,7 +68,7 @@ class ParserTests(SimpleTestCase):
Variable("article._hidden")
# Variables should raise on non string type
- with self.assertRaisesRegex(TypeError, "Variable must be a string or number, got <(class|type) 'dict'>"):
+ with self.assertRaisesMessage(TypeError, "Variable must be a string or number, got <class 'dict'>"):
Variable({})
def test_filter_args_count(self):