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/django/test/testcases.py
+++ b/django/test/testcases.py
@@ -72,6 +72,8 @@ class TestCase(unittest.TestCase):
         self.client = Client()
         try:
             self._pre_setup()
+        except (KeyboardInterrupt, SystemExit):
+            raise
         except Exception:
             import sys
             result.addError(self, sys.exc_info())
-- 
1.5.3.8

