summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2010-03-06 19:43:41 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2010-03-06 19:43:41 (GMT)
commit632df993dc638428e69b9b236477e97b70707753 (patch)
treea9ecaf617b3e907718c2d5a90d3b7afc16377804 /Lib
parent985478dbbb10a03787173720c803b4f36b32529d (diff)
downloadcpython-632df993dc638428e69b9b236477e97b70707753.zip
cpython-632df993dc638428e69b9b236477e97b70707753.tar.gz
cpython-632df993dc638428e69b9b236477e97b70707753.tar.bz2
Skip test_send_signal, test_kill, test_terminate on win32 platforms, for 2.7a4 release.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_subprocess.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index 7e96c21..937518a 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -768,24 +768,30 @@ class Win32ProcessTestCase(unittest.TestCase):
' -c "import sys; sys.exit(47)"')
self.assertEqual(rc, 47)
+ @unittest.skip("It fails on some win32 platforms. See issue #2777")
def test_send_signal(self):
- # Do not inherit file handles from the parent.
- # It should fix failure on some platforms.
- p = subprocess.Popen([sys.executable, "-c", "input()"], close_fds=True)
+ # Redirect the stdin file handle.
+ # It should fix failure on some win32 platforms.
+ p = subprocess.Popen([sys.executable, "-c", "input()"],
+ stdin=subprocess.PIPE)
self.assertIs(p.poll(), None)
p.send_signal(signal.SIGTERM)
self.assertNotEqual(p.wait(), 0)
+ @unittest.skip("It fails on some win32 platforms. See issue #2777")
def test_kill(self):
- p = subprocess.Popen([sys.executable, "-c", "input()"], close_fds=True)
+ p = subprocess.Popen([sys.executable, "-c", "input()"],
+ stdin=subprocess.PIPE)
self.assertIs(p.poll(), None)
p.kill()
self.assertNotEqual(p.wait(), 0)
+ @unittest.skip("It fails on some win32 platforms. See issue #2777")
def test_terminate(self):
- p = subprocess.Popen([sys.executable, "-c", "input()"], close_fds=True)
+ p = subprocess.Popen([sys.executable, "-c", "input()"],
+ stdin=subprocess.PIPE)
self.assertIs(p.poll(), None)
p.terminate()