Author: Brian Kearns <bdkea...@gmail.com>
Branch: 
Changeset: r74620:4c456cd88383
Date: 2014-11-20 18:46 -0500
http://bitbucket.org/pypy/pypy/changeset/4c456cd88383/

Log:    fix some socket tests for python.org changes

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
@@ -311,7 +311,7 @@
     assert isinstance(lst, list)
     found = False
     for family, socktype, protocol, canonname, addr in lst:
-        if addr.get_host() == '140.211.10.69':
+        if addr.get_host() == '104.130.43.121':
             found = True
     result[i] += found
 
diff --git a/rpython/translator/sandbox/test/test_sandlib.py 
b/rpython/translator/sandbox/test/test_sandlib.py
--- a/rpython/translator/sandbox/test/test_sandlib.py
+++ b/rpython/translator/sandbox/test/test_sandlib.py
@@ -117,7 +117,7 @@
 
     proc = SocketProc([exe])
     output, error = proc.communicate("")
-    assert output.startswith('HTTP/1.0 503 Service Unavailable')
+    assert output.startswith('HTTP/1.1 301 Moved Permanently')
 
 @supported
 def test_oserror():
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to