diff options
| author | Jarrod Johnson <jjohnson2@lenovo.com> | 2016-06-02 14:37:50 -0400 |
|---|---|---|
| committer | Sergey Shepelev <temotor@gmail.com> | 2016-08-30 19:25:23 +0500 |
| commit | ac4e28fd1a52dc6488ed5d80e37db19a2ed997dd (patch) | |
| tree | d733519f49a9e5699b86179aa6470a6371943b06 /tests | |
| parent | 23ea43a65f808759597317f9e6fc22909fab619a (diff) | |
| download | eventlet-ac4e28fd1a52dc6488ed5d80e37db19a2ed997dd.tar.gz | |
ipv6: getaddrinfo would fail with scope index
Discard any '%' delimited suffix.
https://github.com/eventlet/eventlet/pull/322
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/socket_test.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/socket_test.py b/tests/socket_test.py index 8fcaaa3..09afc5d 100644 --- a/tests/socket_test.py +++ b/tests/socket_test.py @@ -62,3 +62,10 @@ def test_socket_api_family(): # It was named family_or_realsock # https://github.com/eventlet/eventlet/issues/319 socket.socket(family=socket.AF_INET) + + +def test_getaddrinfo_ipv6_scope(): + greendns.is_ipv6_addr('::1%2') + if not socket.has_ipv6: + return + socket.getaddrinfo('::1%2', 80, socket.AF_INET6) |
