Author: Antonio Cuni <anto.c...@gmail.com> Branch: cpyext-fast-typecheck Changeset: r94067:a3b4293a2b1b Date: 2018-03-22 13:10 +0000 http://bitbucket.org/pypy/pypy/changeset/a3b4293a2b1b/
Log: (anto, ronan): fix this test, because gcc (correctly :)) complains that the statement had no effect diff --git a/pypy/module/cpyext/test/test_cpyext.py b/pypy/module/cpyext/test/test_cpyext.py --- a/pypy/module/cpyext/test/test_cpyext.py +++ b/pypy/module/cpyext/test/test_cpyext.py @@ -636,7 +636,8 @@ Py_ssize_t refcnt_after; Py_INCREF(true_obj); Py_INCREF(true_obj); - PyBool_Check(true_obj); + if (!PyBool_Check(true_obj)) + Py_RETURN_NONE; refcnt_after = true_obj->ob_refcnt; Py_DECREF(true_obj); Py_DECREF(true_obj); _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit