Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment:

This test is wrong::
   if (!PyBool_Check(test_var) && test_var == Py_False)
the second part is never executed.
   if (test_var != Py_False)
is enough to test the return value.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10880>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to