[pypy-commit] pypy py3k: fix test_bytesio
bdkearns
noreply at buildbot.pypy.org
Sun May 4 07:10:09 CEST 2014
Author: Brian Kearns <bdkearns at gmail.com>
Branch: py3k
Changeset: r71254:27d20a9db698
Date: 2014-05-04 01:09 -0400
http://bitbucket.org/pypy/pypy/changeset/27d20a9db698/
Log: fix test_bytesio
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
@@ -44,7 +44,7 @@
assert f.write(b"") == 0
assert f.write(b"hello") == 5
exc = raises(TypeError, f.write, u"lo")
- assert str(exc.value) == "'str' does not have the buffer interface"
+ assert str(exc.value) == "'str' does not support the buffer interface"
import gc; gc.collect()
assert f.getvalue() == b"hello"
f.close()
More information about the pypy-commit
mailing list