Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r78225:6042b77b9402
Date: 2015-06-21 12:15 +0200
http://bitbucket.org/pypy/pypy/changeset/6042b77b9402/

Log:    fix this 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
@@ -390,9 +390,9 @@
                                       self.struct.pack("ii", 17, 42) +
                                       '\x00' * (19-sz-2))
         exc = raises(TypeError, self.struct.pack_into, "ii", buffer(b), 0, 17, 
42)
-        assert str(exc.value) == "argument must be read-write buffer, not 
buffer"
+        assert str(exc.value) == "must be read-write buffer, not buffer"
         exc = raises(TypeError, self.struct.pack_into, "ii", 'test', 0, 17, 42)
-        assert str(exc.value) == "argument must be read-write buffer, not str"
+        assert str(exc.value) == "must be read-write buffer, not str"
         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

Reply via email to