mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
asyncio: use directly socket.socketpair() (#4597)
Since Python 3.5, socket.socketpair() is also available on Windows, and so can be used directly, rather than using asyncio.windows_utils.socketpair().
This commit is contained in:
parent
92f9339a58
commit
a10dc3efcb
7 changed files with 9 additions and 36 deletions
|
@ -154,9 +154,6 @@ class BaseSelectorEventLoopTests(test_utils.TestCase):
|
|||
self.loop.close()
|
||||
self.assertIsNone(self.loop._selector)
|
||||
|
||||
def test_socketpair(self):
|
||||
self.assertRaises(NotImplementedError, self.loop._socketpair)
|
||||
|
||||
def test_read_from_self_tryagain(self):
|
||||
self.loop._ssock.recv.side_effect = BlockingIOError
|
||||
self.assertIsNone(self.loop._read_from_self())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue