Author: Antonio Cuni <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to