Author: Armin Rigo <[email protected]>
Branch:
Changeset: r84093:f05e9998737c
Date: 2016-05-01 11:49 +0200
http://bitbucket.org/pypy/pypy/changeset/f05e9998737c/
Log: Fix another test using PyString_Concat() in a way that is now
crashing---and wrong according to the CPython documentation
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
@@ -145,6 +145,7 @@
"""
PyObject ** v;
PyObject * left = PyTuple_GetItem(args, 0);
+ Py_INCREF(left); /* the reference will be stolen! */
v = &left;
PyString_Concat(v, PyTuple_GetItem(args, 1));
return *v;
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit