Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
4b4706f6
Commit
4b4706f6
authored
Apr 26, 2014
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test__socket_dns.py: do not compare IPv6 addresses
parent
69436306
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
greentest/test__socket_dns.py
greentest/test__socket_dns.py
+2
-2
No files found.
greentest/test__socket_dns.py
View file @
4b4706f6
...
@@ -93,8 +93,8 @@ def compare_relaxed(a, b):
...
@@ -93,8 +93,8 @@ def compare_relaxed(a, b):
False
False
"""
"""
if
a
.
count
(
':'
)
==
5
and
b
.
count
(
':'
)
==
5
:
if
a
.
count
(
':'
)
==
5
and
b
.
count
(
':'
)
==
5
:
#
QQQ not actually sure if this is right thing to do
#
IPv6 address from different requests might be different
return
a
.
rsplit
(
':'
)[:
2
]
==
b
.
rsplit
(
':'
)[:
2
]
return
True
return
a
.
split
(
'.'
,
1
)[
-
1
]
==
b
.
split
(
'.'
,
1
)[
-
1
]
return
a
.
split
(
'.'
,
1
)[
-
1
]
==
b
.
split
(
'.'
,
1
)[
-
1
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment