mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
asyncio: Support host=b'' for getaddrinfo
This commit is contained in:
parent
6a8e626a60
commit
a8f895f051
2 changed files with 5 additions and 1 deletions
|
@ -130,6 +130,10 @@ class BaseEventTests(test_utils.TestCase):
|
|||
(INET, STREAM, TCP, '', ('1.2.3.4', 0)),
|
||||
base_events._ipaddr_info('1.2.3.4', None, INET, STREAM, TCP))
|
||||
|
||||
self.assertEqual(
|
||||
(INET, STREAM, TCP, '', ('1.2.3.4', 0)),
|
||||
base_events._ipaddr_info('1.2.3.4', b'', INET, STREAM, TCP))
|
||||
|
||||
self.assertEqual(
|
||||
(INET, STREAM, TCP, '', ('1.2.3.4', 0)),
|
||||
base_events._ipaddr_info('1.2.3.4', '', INET, STREAM, TCP))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue