[pypy-commit] pypy default: trivial test fixes
mattip
pypy.commits at gmail.com
Fri Jul 1 01:41:40 EDT 2016
Author: Matti Picus <matti.picus at gmail.com>
Branch:
Changeset: r85479:f99e58901198
Date: 2016-07-01 08:39 +0300
http://bitbucket.org/pypy/pypy/changeset/f99e58901198/
Log: trivial test fixes
diff --git a/pypy/objspace/fake/objspace.py b/pypy/objspace/fake/objspace.py
--- a/pypy/objspace/fake/objspace.py
+++ b/pypy/objspace/fake/objspace.py
@@ -199,6 +199,9 @@
def newbytes(self, x):
return w_some_obj()
+ def newunicode(self, x):
+ return w_some_obj()
+
def wrap(self, x):
if not we_are_translated():
if isinstance(x, gateway.interp2app):
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
@@ -313,8 +313,10 @@
assert isinstance(lst, list)
found = False
for family, socktype, protocol, canonname, addr in lst:
- if addr.get_host() == '104.130.43.121':
+ if addr.get_host() in ('104.130.43.121', '23.253.135.79'):
found = True
+ elif family == AF_INET:
+ print 'pydotorg changed to', addr.get_host()
result[i] += found
def test_getaddrinfo_pydotorg():
More information about the pypy-commit
mailing list