[pypy-commit] pypy py3k: str vs bytes
antocuni
noreply at buildbot.pypy.org
Thu May 31 11:57:55 CEST 2012
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r55220:a489b95c8a0e
Date: 2012-05-31 11:21 +0200
http://bitbucket.org/pypy/pypy/changeset/a489b95c8a0e/
Log: str vs bytes
diff --git a/pypy/objspace/std/test/test_bytearrayobject.py b/pypy/objspace/std/test/test_bytearrayobject.py
--- a/pypy/objspace/std/test/test_bytearrayobject.py
+++ b/pypy/objspace/std/test/test_bytearrayobject.py
@@ -449,5 +449,5 @@
count = 1024
b = bytearray(count)
for i in range(count):
- b[i:i+1] = 'y'
- assert str(b) == 'y' * count
+ b[i:i+1] = b'y'
+ assert bytes(b) == b'y' * count
More information about the pypy-commit
mailing list