Commit 4b4706f6 authored by Denis Bilenko's avatar Denis Bilenko

test__socket_dns.py: do not compare IPv6 addresses

parent 69436306
......@@ -93,8 +93,8 @@ def compare_relaxed(a, b):
False
"""
if a.count(':') == 5 and b.count(':') == 5:
# QQQ not actually sure if this is right thing to do
return a.rsplit(':')[:2] == b.rsplit(':')[:2]
# IPv6 address from different requests might be different
return True
return a.split('.', 1)[-1] == b.split('.', 1)[-1]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment