summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
authorTravis Howse <tjhowse@gmail.com>2024-02-03 17:14:02 (GMT)
committerGitHub <noreply@github.com>2024-02-03 17:14:02 (GMT)
commit94ec2b9c9ce898723c3fe61fbc64d6c8f4f68700 (patch)
treeab379dde3a2f67767902ba4d4836cbde3b1c5312 /Lib/test/test_asyncio
parent6b53d5fe04eadad76fb3706f0a4cc42d8f19f948 (diff)
downloadcpython-94ec2b9c9ce898723c3fe61fbc64d6c8f4f68700.zip
cpython-94ec2b9c9ce898723c3fe61fbc64d6c8f4f68700.tar.gz
cpython-94ec2b9c9ce898723c3fe61fbc64d6c8f4f68700.tar.bz2
gh-114887 Reject only sockets of type SOCK_STREAM in create_datagram_endpoint() (#114893)
Also improve exception message. Co-authored-by: Donghee Na <donghee.na92@gmail.com>
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r--Lib/test/test_asyncio/test_base_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py
index c208097..82071ed 100644
--- a/Lib/test/test_asyncio/test_base_events.py
+++ b/Lib/test/test_asyncio/test_base_events.py
@@ -1232,7 +1232,7 @@ class BaseEventLoopWithSelectorTests(test_utils.TestCase):
with sock:
coro = self.loop.create_datagram_endpoint(MyProto, sock=sock)
with self.assertRaisesRegex(ValueError,
- 'A UDP Socket was expected'):
+ 'A datagram socket was expected'):
self.loop.run_until_complete(coro)
def test_create_connection_no_host_port_sock(self):