]> granicus.if.org Git - python/commitdiff
Fix an oversight in r78508: p.wait() should be compared to 0
authorFlorent Xicluna <florent.xicluna@gmail.com>
Sat, 27 Feb 2010 21:15:27 +0000 (21:15 +0000)
committerFlorent Xicluna <florent.xicluna@gmail.com>
Sat, 27 Feb 2010 21:15:27 +0000 (21:15 +0000)
Lib/test/test_subprocess.py

index 92d149266c3f7c7533496f78dc9e64317663057d..c72b6e0b77dd7cc2f449ebbc87fca773264f029b 100644 (file)
@@ -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),