summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-08-04 19:56:53 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-08-04 19:56:53 (GMT)
commit78c89eb0aceeeaf67f537b8f6df8a3640acf4151 (patch)
tree557c450e141560bed0f3bb15b637f0252e1ce894 /Lib/test/test_asyncio
parent3563ccc9a0f9fc829a6a45a0a1717f03ca234e03 (diff)
parent2a8911c0b7176aec2791460c9beac2bf22daa725 (diff)
downloadcpython-78c89eb0aceeeaf67f537b8f6df8a3640acf4151.zip
cpython-78c89eb0aceeeaf67f537b8f6df8a3640acf4151.tar.gz
cpython-78c89eb0aceeeaf67f537b8f6df8a3640acf4151.tar.bz2
Merge 3.4
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r--Lib/test/test_asyncio/test_subprocess.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py
index 38f0cee..d138c26 100644
--- a/Lib/test/test_asyncio/test_subprocess.py
+++ b/Lib/test/test_asyncio/test_subprocess.py
@@ -417,11 +417,7 @@ class SubprocessMixin:
def test_popen_error(self):
# Issue #24763: check that the subprocess transport is closed
# when BaseSubprocessTransport fails
- if sys.platform == 'win32':
- target = 'asyncio.windows_utils.Popen'
- else:
- target = 'subprocess.Popen'
- with mock.patch(target) as popen:
+ with mock.patch('subprocess.Popen') as popen:
exc = ZeroDivisionError
popen.side_effect = exc