[Python-Dev] Test failures under Windows?

Curt Hagenlocher curt at hagenlocher.org
Tue Mar 24 23:50:31 CET 2009


On Tue, Mar 24, 2009 at 3:45 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:
> Mark Hammond <skippy.hammond <at> gmail.com> writes:
>>
>> Note that I previously opened http://bugs.python.org/issue5116 with a
>> patch to enable this to be controlled from Python via the msvcrt module.
>>   This would enable the test suite to disable assertions for its entire run.
>
> We certainly don't want to disable assertions during the test suite if it
> silences bugs which can crash the user's interpreter.

I assume the goal would be to write them to stdout or stderr instead
of hanging the process by throwing up a dialog box.  For that matter,
you could use CrtSetReportFile to redirect them to any given file and
then assert at the end of the test run that the file is empty.

--
Curt Hagenlocher
curt at hagenlocher.org


More information about the Python-Dev mailing list