Author: David Schneider <david.schnei...@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) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit