diff --git a/tests/view_tests/tests/test_debug.py b/tests/view_tests/tests/test_debug.py
index 1ce4f3f800..3cbeb2e03a 100644
--- a/tests/view_tests/tests/test_debug.py
+++ b/tests/view_tests/tests/test_debug.py
@@ -401,6 +401,19 @@ class ExceptionReporterTests(SimpleTestCase):
self.assertIn('
Request information
', html)
self.assertIn('
Request data not supplied
', html)
+ def test_sharing_traceback(self):
+ try:
+ raise ValueError('Oops')
+ except ValueError:
+ exc_type, exc_value, tb = sys.exc_info()
+ reporter = ExceptionReporter(None, exc_type, exc_value, tb)
+ html = reporter.get_traceback_html()
+ self.assertIn(
+ '