Author: mattip <matti.pi...@gmail.com> Branch: Changeset: r72079:0b28e987bc19 Date: 2014-06-15 23:54 +0300 http://bitbucket.org/pypy/pypy/changeset/0b28e987bc19/
Log: prevent unexpected failures from opening the dreaded AppCrash dialog box on windows diff --git a/rpython/translator/c/genc.py b/rpython/translator/c/genc.py --- a/rpython/translator/c/genc.py +++ b/rpython/translator/c/genc.py @@ -313,7 +313,7 @@ def cmdexec(self, args='', env=None, err=False, expect_crash=False): assert self._compiled - if expect_crash and sys.platform == 'win32': + if sys.platform == 'win32': #Prevent opening a dialog box import ctypes winapi = ctypes.windll.kernel32 @@ -330,7 +330,7 @@ SetErrorMode(old_mode | flags) res = self.translator.platform.execute(self.executable_name, args, env=env) - if expect_crash and sys.platform == 'win32': + if sys.platform == 'win32': SetErrorMode(old_mode) if res.returncode != 0: if expect_crash: _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit