mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
bpo-32166: Drop Python 3.4 code from asyncio (#4612)
* Drop Python 3.4 code from asyncio * Fix notes * Add missing imports * Restore comment * Resort imports * Drop Python 3.4-3.5 specific code * Drop redunant check * Fix tests * Restore _COROUTINE_TYPES order * Remove useless code
This commit is contained in:
parent
5d39e04290
commit
cc83920ad2
3 changed files with 25 additions and 131 deletions
|
@ -394,7 +394,7 @@ class UnixReadPipeTransportTests(test_utils.TestCase):
|
|||
self.pipe = mock.Mock(spec_set=io.RawIOBase)
|
||||
self.pipe.fileno.return_value = 5
|
||||
|
||||
blocking_patcher = mock.patch('asyncio.unix_events._set_nonblocking')
|
||||
blocking_patcher = mock.patch('os.set_blocking')
|
||||
blocking_patcher.start()
|
||||
self.addCleanup(blocking_patcher.stop)
|
||||
|
||||
|
@ -544,7 +544,7 @@ class UnixWritePipeTransportTests(test_utils.TestCase):
|
|||
self.pipe = mock.Mock(spec_set=io.RawIOBase)
|
||||
self.pipe.fileno.return_value = 5
|
||||
|
||||
blocking_patcher = mock.patch('asyncio.unix_events._set_nonblocking')
|
||||
blocking_patcher = mock.patch('os.set_blocking')
|
||||
blocking_patcher.start()
|
||||
self.addCleanup(blocking_patcher.stop)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue