diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-07-31 21:36:15 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-07-31 21:36:15 (GMT) |
commit | a0a28b076a537c11b63a9fd79b05d27ea9cb5bde (patch) | |
tree | a4accbe3c8bcb48a193cc0fbfedbfbd17d88de89 /Lib | |
parent | 19fae1a932e48d2fd6434ba39685ab733d463097 (diff) | |
parent | 9a82bd45cde8d41092b2ee8294acb9bd45a53807 (diff) | |
download | cpython-a0a28b076a537c11b63a9fd79b05d27ea9cb5bde.zip cpython-a0a28b076a537c11b63a9fd79b05d27ea9cb5bde.tar.gz cpython-a0a28b076a537c11b63a9fd79b05d27ea9cb5bde.tar.bz2 |
Merge 3.4 (asyncio test)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_asyncio/test_subprocess.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py index d138c26..38f0cee 100644 --- a/Lib/test/test_asyncio/test_subprocess.py +++ b/Lib/test/test_asyncio/test_subprocess.py @@ -417,7 +417,11 @@ class SubprocessMixin: def test_popen_error(self): # Issue #24763: check that the subprocess transport is closed # when BaseSubprocessTransport fails - with mock.patch('subprocess.Popen') as popen: + if sys.platform == 'win32': + target = 'asyncio.windows_utils.Popen' + else: + target = 'subprocess.Popen' + with mock.patch(target) as popen: exc = ZeroDivisionError popen.side_effect = exc |