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):
|
| 72 | 72 | self.client = Client() |
| 73 | 73 | try: |
| 74 | 74 | self._pre_setup() |
| | 75 | except (KeyboardInterrupt, SystemExit): |
| | 76 | raise |
| 75 | 77 | except Exception: |
| 76 | 78 | import sys |
| 77 | 79 | result.addError(self, sys.exc_info()) |