[Python-Dev] Test failures under Windows?

Kristján Valur Jónsson kristjan at ccpgames.com
Tue Mar 24 22:29:07 CET 2009


There was a recent test added to test_fileio.py which triggered runtime checks on windows.
I fixed this and other related issues in a series of revisions around 70580.
Now, I know that this msvc behaviour can be disabled, but it was decided that it was not appropriate to meddle with runtime flags of the whole process for python.
It is unfortunate that a dialogue box is put up, even when the process is running without a UI.  I wonder if there is a way to fix that without changing the way python is compiled...

K

-----Original Message-----
From: python-dev-bounces+kristjan=ccpgames.com at python.org [mailto:python-dev-bounces+kristjan=ccpgames.com at python.org] On Behalf Of Curt Hagenlocher
Sent: 24. mars 2009 19:14
To: David Bolen
Cc: python-dev at python.org
Subject: Re: [Python-Dev] Test failures under Windows?

On Tue, Mar 24, 2009 at 11:49 AM, David Bolen <db3l.net at gmail.com> wrote:
>
> Kristján Valur Jónsson <kristjan at ccpgames.com> writes:
>
>> These issues should be resolved in the py3k branch, but it will need
>> porting to 2.6.  Dialogue boxes are annoying, but do they pop up if
>> you run your buildslave as a service without access to the console?
>
> Not sure what the MSVC++ runtime does with assertion dialogs if run
> without interactive access (they aren't console messages, but UI dialog
> popups).

At least at some point in the past, it didn't check to see if there
was an attached window station.  But the dialog can be disabled in
debug mode by using the _set_error_mode function.
(http://msdn.microsoft.com/en-us/library/sas1dkb2(VS.71).aspx)

--
Curt Hagenlocher
curt at hagenlocher.org
_______________________________________________
Python-Dev mailing list
Python-Dev at python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/kristjan%40ccpgames.com



More information about the Python-Dev mailing list