mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-32636: Fix two bugs in test_asyncio (#5302)
This commit is contained in:
parent
fb5a7ad421
commit
789e359f51
2 changed files with 2 additions and 1 deletions
|
@ -1917,6 +1917,7 @@ class BaseLoopSendfileTests(test_utils.TestCase):
|
|||
|
||||
def test_nonstream_socket(self):
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
sock.setblocking(False)
|
||||
self.addCleanup(sock.close)
|
||||
with self.assertRaisesRegex(ValueError, "only SOCK_STREAM type"):
|
||||
self.run_loop(self.loop.sock_sendfile(sock, self.file))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue