mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Merge 3.4
This commit is contained in:
commit
78c89eb0ac
7 changed files with 14 additions and 16 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue