Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r1247:4602333ca746 Date: 2013-04-29 23:35 +0200 http://bitbucket.org/cffi/cffi/changeset/4602333ca746/
Log: Add a few lines in a test diff --git a/c/test_c.py b/c/test_c.py --- a/c/test_c.py +++ b/c/test_c.py @@ -2115,6 +2115,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 pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit