diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-23 19:19:16 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-23 19:19:16 (GMT) |
commit | 3c919cf140170a03c20ec68a8fe63586b718d057 (patch) | |
tree | 15f01c722b70236e092e2e7a7d8855ea85ebd6ea | |
parent | 9858f635a0345cea41d3475c076db605b11d0a59 (diff) | |
download | cpython-3c919cf140170a03c20ec68a8fe63586b718d057.zip cpython-3c919cf140170a03c20ec68a8fe63586b718d057.tar.gz cpython-3c919cf140170a03c20ec68a8fe63586b718d057.tar.bz2 |
The SIGINT signal may happen earlier, during site.py initialization.
-rw-r--r-- | Lib/test/test_subprocess.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 19eed15..a858c40 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -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): |