File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -274,10 +274,7 @@ def test_tback_no_trace_from_py_file(self):
274274 html_error = exceptions .html_error_template ().render_unicode (
275275 error = v , traceback = None
276276 )
277- assert (
278- "local variable 'y' referenced before assignment"
279- in html_error
280- )
277+ assert "local variable 'y'" in html_error
281278
282279 def test_tback_trace_from_py_file (self ):
283280 t = self ._file_template ("runtimeerr.html" )
@@ -287,10 +284,7 @@ def test_tback_trace_from_py_file(self):
287284 except :
288285 html_error = exceptions .html_error_template ().render_unicode ()
289286
290- assert (
291- "local variable 'y' referenced before assignment"
292- in html_error
293- )
287+ assert "local variable 'y'" in html_error
294288
295289 def test_code_block_line_number (self ):
296290 l = TemplateLookup ()
You can’t perform that action at this time.
0 commit comments