mirror of
https://github.com/django/django.git
synced 2025-01-03 06:55:47 +00:00
Refs #33476 -- Changed quotation marks in DebugViewTests.test_template_exceptions().
This prevents a failure after reformatting the code with Black.
This commit is contained in:
parent
cf5e61cf6c
commit
f68fa8b45d
@ -5,4 +5,4 @@ register = template.Library()
|
|||||||
|
|
||||||
@register.simple_tag
|
@register.simple_tag
|
||||||
def go_boom():
|
def go_boom():
|
||||||
raise Exception('boom')
|
raise Exception("boom")
|
||||||
|
@ -258,7 +258,8 @@ class DebugViewTests(SimpleTestCase):
|
|||||||
except Exception:
|
except Exception:
|
||||||
raising_loc = inspect.trace()[-1][-2][0].strip()
|
raising_loc = inspect.trace()[-1][-2][0].strip()
|
||||||
self.assertNotEqual(
|
self.assertNotEqual(
|
||||||
raising_loc.find("raise Exception('boom')"), -1,
|
raising_loc.find('raise Exception("boom")'),
|
||||||
|
-1,
|
||||||
"Failed to find 'raise Exception' in last frame of "
|
"Failed to find 'raise Exception' in last frame of "
|
||||||
"traceback, instead found: %s" % raising_loc
|
"traceback, instead found: %s" % raising_loc
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user