[Python-checkins] r78509 - python/trunk/Lib/test/test_subprocess.py

florent.xicluna python-checkins at python.org
Sat Feb 27 22:15:27 CET 2010


Author: florent.xicluna
Date: Sat Feb 27 22:15:27 2010
New Revision: 78509

Log:
Fix an oversight in r78508: p.wait() should be compared to 0


Modified:
   python/trunk/Lib/test/test_subprocess.py

Modified: python/trunk/Lib/test/test_subprocess.py
==============================================================================
--- python/trunk/Lib/test/test_subprocess.py	(original)
+++ python/trunk/Lib/test/test_subprocess.py	Sat Feb 27 22:15:27 2010
@@ -643,7 +643,7 @@
 
         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 @@
 
         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 @@
 
         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 @@
 
         self.assertIs(p.poll(), None)
         p.terminate()
-        self.assertIsNot(p.wait(), None)
+        self.assertNotEqual(p.wait(), 0)
 
 
 @unittest.skipUnless(getattr(subprocess, '_has_poll', False),


More information about the Python-checkins mailing list