Author: Antonio Cuni <[email protected]>
Branch: faster-rstruct-2
Changeset: r91307:58756fc27659
Date: 2017-05-16 11:46 +0200
http://bitbucket.org/pypy/pypy/changeset/58756fc27659/

Log:    fix tests

diff --git a/rpython/rlib/test/test_mutbuffer.py 
b/rpython/rlib/test/test_mutbuffer.py
--- a/rpython/rlib/test/test_mutbuffer.py
+++ b/rpython/rlib/test/test_mutbuffer.py
@@ -7,6 +7,7 @@
 
     def test_finish(self):
         buf = MutableStringBuffer(4)
+        buf.setzeros(0, 4)
         pytest.raises(ValueError, "buf.as_str()")
         s = buf.finish()
         assert s == '\x00' * 4
@@ -22,6 +23,7 @@
 
     def test_setslice(self):
         buf = MutableStringBuffer(6)
+        buf.setzeros(0, 6)
         buf.setslice(2, 'ABCD')
         assert buf.finish() == '\x00\x00ABCD'
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to