[pypy-commit] pypy cpyext-fast-typecheck: (anto, ronan): fix this test, because gcc (correctly :)) complains that the statement had no effect
antocuni
pypy.commits at gmail.com
Thu Mar 22 09:11:24 EDT 2018
Author: Antonio Cuni <anto.cuni at 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);
More information about the pypy-commit
mailing list