[pypy-svn] r63059 - pypy/trunk/pypy/translator/sandbox/test
arigo at codespeak.net
arigo at codespeak.net
Thu Mar 19 10:22:09 CET 2009
Author: arigo
Date: Thu Mar 19 10:22:07 2009
New Revision: 63059
Modified:
pypy/trunk/pypy/translator/sandbox/test/test_sandlib.py
Log:
Test with codespeak.net instead of google.com (which returned a 302 at
least once).
Modified: pypy/trunk/pypy/translator/sandbox/test/test_sandlib.py
==============================================================================
--- pypy/trunk/pypy/translator/sandbox/test/test_sandlib.py (original)
+++ pypy/trunk/pypy/translator/sandbox/test/test_sandlib.py Thu Mar 19 10:22:07 2009
@@ -103,7 +103,7 @@
pass
def entry_point(argv):
- fd = os.open("tcp://google.com:80", os.O_RDONLY, 0777)
+ fd = os.open("tcp://codespeak.net:80", os.O_RDONLY, 0777)
os.write(fd, 'GET /\n')
print os.read(fd, 30)
return 0
@@ -111,7 +111,7 @@
proc = SocketProc([exe])
output, error = proc.communicate("")
- assert output.startswith('<HTML><HEAD>')
+ assert output.startswith('<!DOCTYPE')
def test_oserror():
def entry_point(argv):
More information about the Pypy-commit
mailing list