Author: Ronan Lamy <ronan.l...@gmail.com>
Branch: 
Changeset: r87613:b0e70c0c2ac0
Date: 2016-10-06 16:43 +0100
http://bitbucket.org/pypy/pypy/changeset/b0e70c0c2ac0/

Log:    fix test on CPython: _PyObject_NewVar does not initialise the memory

diff --git a/pypy/module/cpyext/test/test_bytesobject.py 
b/pypy/module/cpyext/test/test_bytesobject.py
--- a/pypy/module/cpyext/test/test_bytesobject.py
+++ b/pypy/module/cpyext/test/test_bytesobject.py
@@ -105,7 +105,7 @@
              '''),
             ])
         s = module.alloc_rw()
-        assert s == b'works' + b'\x00' * 5
+        assert s[:6] == b'works\0'  # s[6:10] contains random garbage
         s = module.tpalloc()
         assert s == b'\x00' * 10
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to