Author: Brian Kearns <[email protected]>
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()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit