Author: Armin Rigo <ar...@tunes.org> Branch: py3.5 Changeset: r89020:f04b5764c0e2 Date: 2016-12-12 14:30 +0100 http://bitbucket.org/pypy/pypy/changeset/f04b5764c0e2/
Log: fix test diff --git a/pypy/module/struct/test/test_struct.py b/pypy/module/struct/test/test_struct.py --- a/pypy/module/struct/test/test_struct.py +++ b/pypy/module/struct/test/test_struct.py @@ -377,7 +377,7 @@ assert bytes(b2) == self.struct.pack("ii", 17, 42) + (b'\x00' * 11) exc = raises(TypeError, self.struct.pack_into, "ii", b'test', 0, 17, 42) - assert str(exc.value) == "must be read-write buffer, not bytes" + assert str(exc.value) == "a read-write buffer is requried, not bytes" exc = raises(self.struct.error, self.struct.pack_into, "ii", b[0:1], 0, 17, 42) assert str(exc.value) == "pack_into requires a buffer of at least 8 bytes" _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit