1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Clearer explanation when exception has no message

"No exception supplied" is misleading; actually there is an exception,
but there's no message string.
This commit is contained in:
Marti Raudsepp
2013-04-23 21:17:04 +03:00
parent 73c26f0c95
commit 172b50b722
2 changed files with 3 additions and 3 deletions

View File

@@ -128,7 +128,7 @@ class ExceptionReporterTests(TestCase):
reporter = ExceptionReporter(request, None, None, None)
html = reporter.get_traceback_html()
self.assertIn('<h1>Report at /test_view/</h1>', html)
self.assertIn('<pre class="exception_value">No exception supplied</pre>', html)
self.assertIn('<pre class="exception_value">No exception message supplied</pre>', html)
self.assertIn('<th>Request Method:</th>', html)
self.assertIn('<th>Request URL:</th>', html)
self.assertNotIn('<th>Exception Type:</th>', html)