Kaydet (Commit) 3c919cf1 authored tarafından Florent Xicluna's avatar Florent Xicluna

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

üst 9858f635
...@@ -669,10 +669,7 @@ class POSIXProcessTestCase(BaseTestCase): ...@@ -669,10 +669,7 @@ class POSIXProcessTestCase(BaseTestCase):
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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment