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
a0fb4cca
Commit
a0fb4cca
authored
Mar 22, 2019
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak for appveyor DNS returning interesting things for www.gevent.org. [travis skip]
parent
f8f1f487
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
src/gevent/tests/test__socket_dns.py
src/gevent/tests/test__socket_dns.py
+20
-0
No files found.
src/gevent/tests/test__socket_dns.py
View file @
a0fb4cca
...
...
@@ -15,6 +15,7 @@ import gevent.socket as gevent_socket
from
gevent.testing.util
import
log
from
gevent.testing
import
six
from
gevent.testing.six
import
xrange
from
gevent.testing
import
flaky
resolver
=
gevent
.
get_hub
().
resolver
...
...
@@ -224,6 +225,18 @@ class TestCase(greentest.TestCase):
switch_expected = None
verbose_dns = False
def setUp(self):
super(TestCase, self).setUp()
if not self.verbose_dns:
# Silence the default reporting of errors from the ThreadPool,
# we handle those here.
gevent.get_hub().exception_stream = None
def tearDown(self):
if not self.verbose_dns:
del gevent.get_hub().exception_stream
super(TestCase, self).tearDown()
def should_log_results(self, result1, result2):
if not self.verbose_dns:
return False
...
...
@@ -697,7 +710,14 @@ class Test_getnameinfo_fail(TestCase):
class
TestInvalidPort
(
TestCase
):
@
flaky
.
reraises_flaky_race_condition
()
def
test1
(
self
):
# An Appveyor beginning 2019-03-21, the system resolver
# sometimes returns ('23.100.69.251', '65535') instead of
# raising an error. That IP address belongs to
# readthedocs[.io?] which is where www.gevent.org is a CNAME
# to...but it doesn't actually *reverse* to readthedocs.io.
# Can't reproduce locally, not sure what's happening
self
.
_test
(
'getnameinfo'
,
(
'www.gevent.org'
,
-
1
),
0
)
def
test2
(
self
):
...
...
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