[issue4653] Patch to fix typos for Py3K

Johnny Lee report at bugs.python.org
Fri Dec 19 07:34:23 CET 2008


Johnny Lee <typo.pl at gmail.com> added the comment:

> It's difficult to really test such errors.

When I can't control the called function, I usually step through the 
code in a debugger and change the result variable in question to the 
appropriate value to see if the code handles failed function calls 
correctly. 

In the three Win32 API cases, it's clear that the failure path was not 
tested.

And I can't see how the ferr if statement was tested with a failure 
value either.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4653>
_______________________________________


More information about the Python-bugs-list mailing list