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 @@ class POSIXProcessTestCase(BaseTestCase):
def test_send_signal(self):
p = self._kill_process('send_signal', signal.SIGINT)
_, stderr = p.communicate()
self.assertStderrEqual(stderr,
"Traceback (most recent call last):\n"
" File \"<string>\", line 1, in <module>\n"
"KeyboardInterrupt\n")
self.assertIn('KeyboardInterrupt', stderr)
self.assertNotEqual(p.wait(), 0)
def test_kill(self):