diff options
author | Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | 2022-10-29 16:43:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-29 16:43:42 (GMT) |
commit | 9bdec0aa4516650e51b998418fb6188427137fed (patch) | |
tree | 13a0051546bcae84c1fdaa9bf8800f58c4e6baf7 /Lib/test/test_asyncio | |
parent | c0f2a5ef9125f2b44b32cab92e1b0b1bfe0e3fdc (diff) | |
download | cpython-9bdec0aa4516650e51b998418fb6188427137fed.zip cpython-9bdec0aa4516650e51b998418fb6188427137fed.tar.gz cpython-9bdec0aa4516650e51b998418fb6188427137fed.tar.bz2 |
GH-90352: fix _SelectorDatagramTransport to inherit from DatagramTransport (#98844)
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r-- | Lib/test/test_asyncio/test_selector_events.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_selector_events.py b/Lib/test/test_asyncio/test_selector_events.py index 796037b..ca55538 100644 --- a/Lib/test/test_asyncio/test_selector_events.py +++ b/Lib/test/test_asyncio/test_selector_events.py @@ -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() |