summaryrefslogtreecommitdiff
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2010-02-27 21:15:27 +0000
committerFlorent Xicluna <florent.xicluna@gmail.com>2010-02-27 21:15:27 +0000
commit78fd521f1a233016af31ebd37eee31a094236041 (patch)
tree9d29866c917405307f238034941137927bdeb3de /Lib/test/test_subprocess.py
parent98e3fc39bf8ee3e81560bba57b723af850e464e7 (diff)
downloadcpython-git-78fd521f1a233016af31ebd37eee31a094236041.tar.gz
Fix an oversight in r78508: p.wait() should be compared to 0
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r--Lib/test/test_subprocess.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index 92d149266c..c72b6e0b77 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -643,7 +643,7 @@ class POSIXProcessTestCase(unittest.TestCase):
self.assertIs(p.poll(), None)
p.send_signal(signal.SIGINT)
- self.assertIsNot(p.wait(), None)
+ self.assertNotEqual(p.wait(), 0)
@unittest.skip("See issue #2777")
def test_kill(self):
@@ -741,7 +741,7 @@ class Win32ProcessTestCase(unittest.TestCase):
self.assertIs(p.poll(), None)
p.send_signal(signal.SIGTERM)
- self.assertIsNot(p.wait(), None)
+ self.assertNotEqual(p.wait(), 0)
@unittest.skip("See issue #2777")
def test_kill(self):
@@ -749,7 +749,7 @@ class Win32ProcessTestCase(unittest.TestCase):
self.assertIs(p.poll(), None)
p.kill()
- self.assertIsNot(p.wait(), None)
+ self.assertNotEqual(p.wait(), 0)
@unittest.skip("See issue #2777")
def test_terminate(self):
@@ -757,7 +757,7 @@ class Win32ProcessTestCase(unittest.TestCase):
self.assertIs(p.poll(), None)
p.terminate()
- self.assertIsNot(p.wait(), None)
+ self.assertNotEqual(p.wait(), 0)
@unittest.skipUnless(getattr(subprocess, '_has_poll', False),