Author: Ronan Lamy <[email protected]>
Branch: PyBuffer
Changeset: r91146:c03bad787f66
Date: 2017-04-28 18:22 +0100
http://bitbucket.org/pypy/pypy/changeset/c03bad787f66/
Log: fix test
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
@@ -555,11 +555,11 @@
except _socket.gaierror as ex:
skip("GAIError - probably no connection: %s" % str(ex.args))
exc = raises(TypeError, s.send, None)
- assert str(exc.value) == "'NoneType' does not support the buffer
interface"
+ assert str(exc.value).startswith("a bytes-like object is required,")
assert s.send(memoryview(b'')) == 0
assert s.sendall(memoryview(b'')) is None
exc = raises(TypeError, s.send, '')
- assert str(exc.value) == "'str' does not support the buffer interface"
+ assert str(exc.value).startswith("a bytes-like object is required,")
raises(TypeError, s.sendall, '')
s.close()
s = _socket.socket(_socket.AF_INET, _socket.SOCK_DGRAM, 0)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit