'The template system doesn\'t wrap exceptions, but annotates them.
Refs #16770'

@override_settings(DEBUG=True, TEMPLATE_DEBUG=True)
def test_no_wrapped_exception(self):

    c = Context({u'coconuts': (lambda : (42 / 0))})
    t = Template(u'{{    coconuts    }}')
    with self.assertRaises(ZeroDivisionError) as cm:
        t.render(c)
    self.assertEqual(cm.exception.django_template_source[1], (0, 14))
