diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2016-06-02 20:43:52 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2016-06-02 20:43:52 (GMT) |
commit | a8f895f051588cc5186650f13118b0149ae7e3d5 (patch) | |
tree | 907d0a08cd880cddb722201fd2d2c3e4c57e8f60 /Lib/test/test_asyncio | |
parent | 6a8e626a60baef76b03df81a0b087dc9fdc3efcf (diff) | |
download | cpython-a8f895f051588cc5186650f13118b0149ae7e3d5.zip cpython-a8f895f051588cc5186650f13118b0149ae7e3d5.tar.gz cpython-a8f895f051588cc5186650f13118b0149ae7e3d5.tar.bz2 |
asyncio: Support host=b'' for getaddrinfo
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r-- | Lib/test/test_asyncio/test_base_events.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py index 678ba30..81c35c8 100644 --- a/Lib/test/test_asyncio/test_base_events.py +++ b/Lib/test/test_asyncio/test_base_events.py @@ -132,6 +132,10 @@ class BaseEventTests(test_utils.TestCase): 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)) self.assertEqual( |