summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/asyncio/selector_events.py2
-rw-r--r--Lib/test/test_asyncio/test_selector_events.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/Lib/asyncio/selector_events.py b/Lib/asyncio/selector_events.py
index d2ee49d..bfa4590 100644
--- a/Lib/asyncio/selector_events.py
+++ b/Lib/asyncio/selector_events.py
@@ -1126,7 +1126,7 @@ class _SelectorSocketTransport(_SelectorTransport):
self._empty_waiter = None
-class _SelectorDatagramTransport(_SelectorTransport):
+class _SelectorDatagramTransport(_SelectorTransport, transports.DatagramTransport):
_buffer_factory = collections.deque
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()