Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r63760:dc67b5d68c34
Date: 2013-04-29 17:44 -0700
http://bitbucket.org/pypy/pypy/changeset/dc67b5d68c34/
Log: merge default
diff --git a/pypy/module/_cffi_backend/test/_backend_test_c.py
b/pypy/module/_cffi_backend/test/_backend_test_c.py
--- a/pypy/module/_cffi_backend/test/_backend_test_c.py
+++ b/pypy/module/_cffi_backend/test/_backend_test_c.py
@@ -2104,6 +2104,9 @@
py.test.raises(ValueError, 'buf[:] = b"this is much too long!"')
buf[4:2] = b"" # no effect, but should work
assert buf[:] == b"hi there\x00"
+ buf[:2] = b"HI"
+ assert buf[:] == b"HI there\x00"
+ buf[:2] = b"hi"
expected = list(map(bitem2bchr, b"hi there\x00"))
x = 0
for i in range(-12, 12):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit