bpo-32410: Implement loop.sock_sendfile() (#4976)

This commit is contained in:
Andrew Svetlov 2018-01-16 19:59:34 +02:00 committed by GitHub
parent c495e799ed
commit 6b5a27975a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 609 additions and 0 deletions

View file

@ -2555,6 +2555,8 @@ class AbstractEventLoopTests(unittest.TestCase):
await loop.sock_connect(f, f)
with self.assertRaises(NotImplementedError):
await loop.sock_accept(f)
with self.assertRaises(NotImplementedError):
await loop.sock_sendfile(f, mock.Mock())
with self.assertRaises(NotImplementedError):
await loop.connect_read_pipe(f, mock.sentinel.pipe)
with self.assertRaises(NotImplementedError):