diff options
author | Travis Howse <tjhowse@gmail.com> | 2024-02-05 04:01:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-05 04:01:37 (GMT) |
commit | 5ce076fd92306a0c41cf574221b930d54374bb47 (patch) | |
tree | da54b4b0357f7e5b7353d3c17d09ecdba7973b82 /Lib/test/test_asyncio/test_base_events.py | |
parent | 510eb4e6a8f1153119ac51031913676abdc44bb7 (diff) | |
download | cpython-5ce076fd92306a0c41cf574221b930d54374bb47.zip cpython-5ce076fd92306a0c41cf574221b930d54374bb47.tar.gz cpython-5ce076fd92306a0c41cf574221b930d54374bb47.tar.bz2 |
[3.11] gh-114887 Reject only sockets of type SOCK_STREAM in create_da… (#114979)
Also improve exception message.
(cherry picked from commit 94ec2b9c9ce898723c3fe61fbc64d6c8f4f68700)
Co-authored-by: Donghee Na <donghee.na92@gmail.com>
Diffstat (limited to 'Lib/test/test_asyncio/test_base_events.py')
-rw-r--r-- | Lib/test/test_asyncio/test_base_events.py | 2 |
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 f3f83ad..e1fc7e6 100644 --- a/Lib/test/test_asyncio/test_base_events.py +++ b/Lib/test/test_asyncio/test_base_events.py @@ -1191,7 +1191,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): |