Author: Matti Picus <matti.pi...@gmail.com> Branch: py3.5 Changeset: r95292:f6d45acb0aaf Date: 2018-11-02 20:09 +0200 http://bitbucket.org/pypy/pypy/changeset/f6d45acb0aaf/
Log: silence print statements in tests diff --git a/pypy/module/_io/test/test_bufferedio.py b/pypy/module/_io/test/test_bufferedio.py --- a/pypy/module/_io/test/test_bufferedio.py +++ b/pypy/module/_io/test/test_bufferedio.py @@ -169,12 +169,12 @@ # exc = raises(TypeError, readinto, u"hello") msg = str(exc.value) - print(msg) + # print(msg) assert " read-write b" in msg and msg.endswith(", not str") # exc = raises(TypeError, readinto, memoryview(b"hello")) msg = str(exc.value) - print(msg) + # print(msg) assert " read-write b" in msg and msg.endswith(", not memoryview") # f.close() diff --git a/pypy/module/_io/test/test_bytesio.py b/pypy/module/_io/test/test_bytesio.py --- a/pypy/module/_io/test/test_bytesio.py +++ b/pypy/module/_io/test/test_bytesio.py @@ -111,12 +111,12 @@ # exc = raises(TypeError, readinto, u"hello") msg = str(exc.value) - print(msg) + # print(msg) assert " read-write b" in msg and msg.endswith(", not str") # exc = raises(TypeError, readinto, memoryview(b"hello")) msg = str(exc.value) - print(msg) + # print(msg) assert " read-write b" in msg and msg.endswith(", not memoryview") # b.close() diff --git a/pypy/module/_io/test/test_fileio.py b/pypy/module/_io/test/test_fileio.py --- a/pypy/module/_io/test/test_fileio.py +++ b/pypy/module/_io/test/test_fileio.py @@ -164,12 +164,12 @@ # exc = raises(TypeError, f.readinto, u"hello") msg = str(exc.value) - print(msg) + # print(msg) assert " read-write b" in msg and msg.endswith(", not str") # exc = raises(TypeError, f.readinto, memoryview(b"hello")) msg = str(exc.value) - print(msg) + # print(msg) assert " read-write b" in msg and msg.endswith(", not memoryview") # f.close() _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit