[pypy-commit] pypy default: add a note to tests that use dns results
bivab
noreply at buildbot.pypy.org
Tue Oct 8 11:29:33 CEST 2013
Author: David Schneider <david.schneider at picle.org>
Branch:
Changeset: r67194:5da47a126c0b
Date: 2013-10-08 04:27 -0500
http://bitbucket.org/pypy/pypy/changeset/5da47a126c0b/
Log: add a note to tests that use dns results
diff --git a/pypy/module/_socket/test/test_sock_app.py b/pypy/module/_socket/test/test_sock_app.py
--- a/pypy/module/_socket/test/test_sock_app.py
+++ b/pypy/module/_socket/test/test_sock_app.py
@@ -400,6 +400,8 @@
def test_socket_connect_ex(self):
import _socket
s = _socket.socket(_socket.AF_INET, _socket.SOCK_STREAM, 0)
+ # The following might fail if the DNS redirects failed requests to a
+ # catch-all address (i.e. opendns).
# Make sure we get an app-level error, not an interp one.
raises(_socket.gaierror, s.connect_ex, ("wrong.invalid", 80))
s.close()
diff --git a/rpython/rlib/test/test_rsocket.py b/rpython/rlib/test/test_rsocket.py
--- a/rpython/rlib/test/test_rsocket.py
+++ b/rpython/rlib/test/test_rsocket.py
@@ -301,6 +301,8 @@
addr.get_port() == 80):
found = True
assert found, lst
+ # The following might fail if the DNS redirects failed requests to a
+ # catch-all address (i.e. opendns).
e = py.test.raises(GAIError, getaddrinfo, 'www.very-invalidaddress.com', None)
assert isinstance(e.value.get_msg(), str)
More information about the pypy-commit
mailing list