diff options
Diffstat (limited to 'test/test_exceptions.py')
-rw-r--r-- | test/test_exceptions.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_exceptions.py b/test/test_exceptions.py index 4a90b90..be573e6 100644 --- a/test/test_exceptions.py +++ b/test/test_exceptions.py @@ -274,7 +274,8 @@ ${foobar} html_error = exceptions.html_error_template().render_unicode( error=v, traceback=None ) - assert "local variable 'y'" in html_error + + assert self.indicates_unbound_local_error(html_error, "y") def test_tback_trace_from_py_file(self): t = self._file_template("runtimeerr.html") @@ -284,7 +285,7 @@ ${foobar} except: html_error = exceptions.html_error_template().render_unicode() - assert "local variable 'y'" in html_error + assert self.indicates_unbound_local_error(html_error, "y") def test_code_block_line_number(self): l = TemplateLookup() |