aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_asyncio/test_subprocess.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-02-09 02:51:40 +0100
committerVictor Stinner <victor.stinner@gmail.com>2014-02-09 02:51:40 +0100
commit0c3949c963c9f39095f85c5ec24d0f958e915ae9 (patch)
treea16ce129bb19d0494e3941f2bb02c6deaab7ec50 /Lib/test/test_asyncio/test_subprocess.py
parent313f829ce8f7160ea25bfd6f14ea0ac37264e0ae (diff)
downloadcpython-0c3949c963c9f39095f85c5ec24d0f958e915ae9.tar.gz
cpython-0c3949c963c9f39095f85c5ec24d0f958e915ae9.zip
asyncio: Remove Process.subprocess attribute; it's too easy to get inconsistent
Process and Popen objects
Diffstat (limited to 'Lib/test/test_asyncio/test_subprocess.py')
-rw-r--r--Lib/test/test_asyncio/test_subprocess.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py
index 785156c77fb..1b2f05bef28 100644
--- a/Lib/test/test_asyncio/test_subprocess.py
+++ b/Lib/test/test_asyncio/test_subprocess.py
@@ -7,9 +7,6 @@ from test import support
if sys.platform != 'win32':
from asyncio import unix_events
-# Program exiting quickly
-PROGRAM_EXIT_FAST = [sys.executable, '-c', 'pass']
-
# Program blocking
PROGRAM_BLOCKED = [sys.executable, '-c', 'import time; time.sleep(3600)']
@@ -119,23 +116,6 @@ class SubprocessMixin:
returncode = self.loop.run_until_complete(proc.wait())
self.assertEqual(-signal.SIGHUP, returncode)
- def test_subprocess(self):
- args = PROGRAM_EXIT_FAST
-
- @asyncio.coroutine
- def run():
- proc = yield from asyncio.create_subprocess_exec(*args,
- loop=self.loop)
- yield from proc.wait()
- # need to poll subprocess.Popen, otherwise the returncode
- # attribute is not set
- proc.subprocess.wait()
- return proc
-
- proc = self.loop.run_until_complete(run())
- self.assertEqual(proc.subprocess.returncode, proc.returncode)
- self.assertEqual(proc.subprocess.pid, proc.pid)
-
def test_broken_pipe(self):
large_data = b'x' * support.PIPE_MAX_SIZE