Handle assertion dialog box with python subprocess
<p>I am using python to create a sub process to check and see that no assertions occur. </p>

<p>I want to catch the error output along with the return code. That works fine, but the problem I run into is that when it runs into the assertion it gives me a dialog box that just hangs there. I have to then click the assertion box before I retrieve any information. Is there a way to make it not pop up and continue with the program or to send a message to close the window? </p>

<p>This is a problem since this is an automation service.</p>

<pre><code>import subprocess

pipe = subprocess.Popen('test2.exe', shell=True, stderr=subprocess.PIPE)

for line in pipe.stderr:
    print line
</code></pre>

<p>The executable is compiled from c++ code and has an assertion that will fail for testing purposes.</p>
