summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-08-04 19:56:33 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-08-04 19:56:33 (GMT)
commit2a8911c0b7176aec2791460c9beac2bf22daa725 (patch)
tree158de9746b3513029e9b7cc59a42e57876cc9e7b /Lib/test/test_asyncio
parent996083d6e65a96304a3d7ff61420f99883d3137e (diff)
downloadcpython-2a8911c0b7176aec2791460c9beac2bf22daa725.zip
cpython-2a8911c0b7176aec2791460c9beac2bf22daa725.tar.gz
cpython-2a8911c0b7176aec2791460c9beac2bf22daa725.tar.bz2
asyncio: Sync with upstream (compat module)
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