[pypy-commit] pypy default: fix network tests for new python.org
bdkearns
noreply at buildbot.pypy.org
Fri Feb 21 19:19:34 CET 2014
Author: Brian Kearns <bdkearns at gmail.com>
Branch:
Changeset: r69241:05178cffe8df
Date: 2014-02-21 13:18 -0500
http://bitbucket.org/pypy/pypy/changeset/05178cffe8df/
Log: fix network tests for new python.org
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() == '82.94.164.162':
+ if addr.get_host() == '140.211.10.69':
found = True
assert found, lst
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
@@ -104,17 +104,17 @@
class SocketProc(VirtualizedSocketProc, SimpleIOSandboxedProc):
def build_virtual_root(self):
pass
-
+
def entry_point(argv):
fd = os.open("tcp://python.org:80", os.O_RDONLY, 0777)
os.write(fd, 'GET /\n')
- print os.read(fd, 30)
+ print os.read(fd, 50)
return 0
exe = compile(entry_point)
proc = SocketProc([exe])
output, error = proc.communicate("")
- assert output.startswith('<!DOCTYPE')
+ assert output.startswith('HTTP/1.0 503 Service Unavailable')
def test_oserror():
def entry_point(argv):
More information about the pypy-commit
mailing list