Skip to content

Commit 28ddbfa

Browse files
committed
tests: Drop test_connect_silent_cancellation (not portable)
1 parent 98b7a0b commit 28ddbfa

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

tests/test_tcp.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -500,23 +500,6 @@ async def start_server():
500500

501501
self.loop.run_until_complete(start_server())
502502

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-
520503

521504
class Test_UV_TCP(_TestTCP, tb.UVTestCase):
522505

0 commit comments

Comments
 (0)