We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98b7a0b commit 28ddbfaCopy full SHA for 28ddbfa
1 file changed
tests/test_tcp.py
@@ -500,23 +500,6 @@ async def start_server():
500
501
self.loop.run_until_complete(start_server())
502
503
- def test_connect_silent_cancellation(self):
504
- logger = logging.getLogger('asyncio')
505
-
506
- srv_sock = socket.socket()
507
- with srv_sock, unittest.mock.patch.object(logger, 'error') as log:
508
- srv_sock.bind(('127.0.0.1', 0))
509
510
- with self.assertRaises(asyncio.TimeoutError):
511
- self.loop.run_until_complete(
512
- asyncio.wait_for(self.loop.create_connection(
513
- asyncio.Protocol, *srv_sock.getsockname()),
514
- loop=self.loop, timeout=0.1))
515
516
- self.loop.run_until_complete(asyncio.sleep(0, loop=self.loop))
517
518
- log.assert_not_called()
519
520
521
class Test_UV_TCP(_TestTCP, tb.UVTestCase):
522
0 commit comments