GH-90352: fix _SelectorDatagramTransport to inherit from DatagramTransport (#98844)

This commit is contained in:
Kumar Aditya 2022-10-29 22:13:42 +05:30 committed by GitHub
parent c0f2a5ef91
commit 9bdec0aa45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View file

@ -1081,6 +1081,10 @@ class SelectorDatagramTransportTests(test_utils.TestCase):
self.protocol.datagram_received.assert_called_with(
b'data', ('0.0.0.0', 1234))
def test_transport_inheritance(self):
transport = self.datagram_transport()
self.assertIsInstance(transport, asyncio.DatagramTransport)
def test_read_ready_tryagain(self):
transport = self.datagram_transport()