Ticket #6478: 0003-Don-t-ignore-Ctrl-C-and-system-exit-in-tests.patch

File 0003-Don-t-ignore-Ctrl-C-and-system-exit-in-tests.patch, 803 bytes (added by Bastian Kleineidam <calvin@…>, 17 years ago)
  • django/test/testcases.py

    From 944e93aa545a182658c0100f61249ca3de2f1067 Mon Sep 17 00:00:00 2001
    From: Bastian Kleineidam <calvin@debian.org>
    Date: Fri, 25 Jan 2008 14:54:11 +0100
    Subject: Don't ignore Ctrl-C and system exit in tests
    
    The test runner should not silently ignore Ctrl-C and system
    exits.
    
    Signed-off-by: Bastian Kleineidam <calvin@debian.org>
    
    diff --git a/django/test/testcases.py b/django/test/testcases.py
    index 5b5c6f6..396aa2e 100644
    a b class TestCase(unittest.TestCase):  
    7272        self.client = Client()
    7373        try:
    7474            self._pre_setup()
     75        except (KeyboardInterrupt, SystemExit):
     76            raise
    7577        except Exception:
    7678            import sys
    7779            result.addError(self, sys.exc_info())
Back to Top