[Python-Dev] Test failures under Windows?

Kristján Valur Jónsson kristjan at ccpgames.com
Wed Mar 25 10:25:53 CET 2009


Right.
In fact, having embedded python25.dll into an app once, I'm inclined to think that there is a lot of stuff that should be moved from that dll into python.exe, like argument parsing, path magic, and so on.  Py_Initialize() really is designed in terms of python.exe
Anyway,
What I was trying to say is that there are other things that can cause dialogue boxes to pop up beside this.  Assertions in other libraries, unhandled exceptions, and whatnot.  Surely, all of this poses a problem on windows?

Are the windows buildbots currently run as services, or are they started manually?

I'm going to poke my contacts at Microsoft and ask them if there is a way to disable popups like this for a process that runs unattended and/or is running as a windows service.

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 Mark Hammond
Sent: 25. mars 2009 08:44
To: David Bolen
Cc: python-dev at python.org
Subject: Re: [Python-Dev] Test failures under Windows?

On 25/03/2009 10:05 AM, David Bolen wrote:
> Kristján Valur Jónsson<kristjan at ccpgames.com>  writes:
>
>> 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.
>
> I must have missed that discussion, but I can't see what the problem
> is if such an override only occurs during the buildbot non-interactive
> test runs?  Isn't that what using -n in the buildbot test.bat did?

The issue was that Python unconditionally changed the behaviour of the 
CRT, not only during the test suite.  I'm inclined to agree that Python 
itself (ie, pythonxx.dll on windows) has no business changing these 
flags, but it should be up to the application - ie, either python.exe 
itself, or exposed to the python app - the latter of which is what my 
patch offers.  Note however that my patch doesn't cause any .py code to 
actually change the flags, just offers the ability for them to do so.

Curt's suggestion of redirecting to a file is better still - I'll look 
at tweaking my patch to also offer that capability...

Cheers,

Mark
_______________________________________________
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