Ticket #16507: 16507.6.diff

File 16507.6.diff, 679 bytes (added by Claude Paroz, 13 years ago)

Set DEBUG_PROPAGATE_EXCEPTIONS to True for specific test

  • django/contrib/messages/tests/base.py

    diff --git a/django/contrib/messages/tests/base.py b/django/contrib/messages/tests/base.py
    index 8d04532..60649ce 100644
    a b class BaseTest(TestCase):  
    217217        TEMPLATE_CONTEXT_PROCESSORS=filter(
    218218            lambda p:'context_processors.messages' not in p,
    219219                 settings.TEMPLATE_CONTEXT_PROCESSORS),
    220         MESSAGE_LEVEL=constants.DEBUG
     220        MESSAGE_LEVEL=constants.DEBUG,
     221        # Prevent any custom 500.html template to interfere with this test
     222        DEBUG_PROPAGATE_EXCEPTIONS = True,
    221223    )
    222224    def test_middleware_disabled(self):
    223225        """
Back to Top