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
7ba37362
Commit
7ba37362
authored
Oct 28, 2022
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spread the love further.
parent
d605cc61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
src/gevent/tests/test__socket_dns.py
src/gevent/tests/test__socket_dns.py
+11
-7
src/gevent/tests/test__socket_dns6.py
src/gevent/tests/test__socket_dns6.py
+1
-1
No files found.
src/gevent/tests/test__socket_dns.py
View file @
7ba37362
...
...
@@ -66,7 +66,8 @@ def add(klass, hostname, name=None,
def test_getaddrinfo_http(self):
x = hostname() if call else hostname
self._test('
getaddrinfo
', x, '
http
')
self._test('
getaddrinfo
', x, '
http
',
require_equal_errors=require_equal_errors)
test_getaddrinfo_http.__name__ = '
test_
%
s_getaddrinfo_http
' % name
_setattr(klass, test_getaddrinfo_http.__name__, test_getaddrinfo_http)
...
...
@@ -79,21 +80,24 @@ def add(klass, hostname, name=None,
test_gethostbyname.__name__ = '
test_
%
s_gethostbyname
' % name
_setattr(klass, test_gethostbyname.__name__, test_gethostbyname)
def test
3
(self):
def test
_gethostbyname_ex
(self):
x = hostname() if call else hostname
self._test('
gethostbyname_ex
', x)
test3.__name__ = '
test_
%
s_gethostbyname_ex
' % name
_setattr(klass, test3.__name__, test3)
self._test('
gethostbyname_ex
', x,
require_equal_errors=require_equal_errors)
test_gethostbyname_ex.__name__ = '
test_
%
s_gethostbyname_ex
' % name
_setattr(klass, test_gethostbyname_ex.__name__, test_gethostbyname_ex)
def test4(self):
x = hostname() if call else hostname
self._test('
gethostbyaddr
', x)
self._test('
gethostbyaddr
', x,
require_equal_errors=require_equal_errors)
test4.__name__ = '
test_
%
s_gethostbyaddr
' % name
_setattr(klass, test4.__name__, test4)
def test5(self):
x = hostname() if call else hostname
self._test('
getnameinfo
', (x, 80), 0)
self._test('
getnameinfo
', (x, 80), 0,
require_equal_errors=require_equal_errors)
test5.__name__ = '
test_
%
s_getnameinfo
' % name
_setattr(klass, test5.__name__, test5)
...
...
src/gevent/tests/test__socket_dns6.py
View file @
7ba37362
...
...
@@ -61,7 +61,7 @@ class Test6(TestCase):
if
not
OSX
and
RESOLVER_DNSPYTHON
:
# It raises gaierror instead of socket.error,
# which is not great and leads to failures.
def
_run_test_getnameinfo
(
self
,
*
_args
):
def
_run_test_getnameinfo
(
self
,
*
_args
,
**
_kwargs
):
return
(),
0
,
(),
0
def
_run_test_gethostbyname
(
self
,
*
_args
,
**
_kwargs
):
...
...
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