The SIGINT signal may happen earlier, during site.py initialization.

This commit is contained in:
Florent Xicluna 2010-03-23 19:19:16 +00:00
parent 9858f635a0
commit 3c919cf140
1 changed files with 1 additions and 4 deletions

View File

@ -669,10 +669,7 @@ def _kill_process(self, method, *args):
def test_send_signal(self): def test_send_signal(self):
p = self._kill_process('send_signal', signal.SIGINT) p = self._kill_process('send_signal', signal.SIGINT)
_, stderr = p.communicate() _, stderr = p.communicate()
self.assertStderrEqual(stderr, self.assertIn('KeyboardInterrupt', stderr)
"Traceback (most recent call last):\n"
" File \"<string>\", line 1, in <module>\n"
"KeyboardInterrupt\n")
self.assertNotEqual(p.wait(), 0) self.assertNotEqual(p.wait(), 0)
def test_kill(self): def test_kill(self):