diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-04-09 11:43:32 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-04-09 11:43:32 -0400 |
commit | 9b8da4b1e2bdc025b643f2061aa32bf7ae0c78a8 (patch) | |
tree | 2d8a8d74f4bc2bcefd2baf8ab7eb2e932a4764f6 | |
parent | cc3794f67b4346103af3a3a5777f1e1e5f83b43f (diff) | |
download | mako-9b8da4b1e2bdc025b643f2061aa32bf7ae0c78a8.tar.gz |
reduce exception message tested for py311 compat
Change-Id: I519d4a840fd456ea042a5b0735da183a1e340aa4
-rw-r--r-- | test/test_exceptions.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/test/test_exceptions.py b/test/test_exceptions.py index b1930c5..7a2e6b0 100644 --- a/test/test_exceptions.py +++ b/test/test_exceptions.py @@ -274,10 +274,7 @@ ${foobar} html_error = exceptions.html_error_template().render_unicode( error=v, traceback=None ) - assert ( - "local variable 'y' referenced before assignment" - in html_error - ) + assert "local variable 'y'" in html_error def test_tback_trace_from_py_file(self): t = self._file_template("runtimeerr.html") @@ -287,10 +284,7 @@ ${foobar} except: html_error = exceptions.html_error_template().render_unicode() - assert ( - "local variable 'y' referenced before assignment" - in html_error - ) + assert "local variable 'y'" in html_error def test_code_block_line_number(self): l = TemplateLookup() |