Skip to content

bpo-30764: Windows support.SuppressCrashReport - #2423

Merged
vstinner merged 1 commit into
python:2.7from
vstinner:suppress_crash_win27
Jun 27, 2017
Merged

vstinner merged 1 commit into
python:2.7from
vstinner:suppress_crash_win27

Conversation

@vstinner

Copy link
Copy Markdown
Member
  • Add Windows support to test.support.SuppressCrashReport: call
    SetErrorMode() and CrtSetReportMode().
  • _testcapi: add CrtSetReportMode() and CrtSetReportFile() functions
    and CRT_xxx and CRTDBG_xxx constants needed by SuppressCrashReport.
* Add Windows support to test.support.SuppressCrashReport: call
  SetErrorMode() and CrtSetReportMode().
* _testcapi: add CrtSetReportMode() and CrtSetReportFile() functions
  and CRT_xxx and CRTDBG_xxx constants needed by SuppressCrashReport.
@vstinner

Copy link
Copy Markdown
Member Author

I tried to implement a pure ctypes version but failed: see http://bugs.python.org/issue30764#msg296965

IMHO this PR is more reliable.

@vstinner
vstinner requested review from zooba and zware June 26, 2017 22:48
@vstinner

Copy link
Copy Markdown
Member Author
@vstinner

Copy link
Copy Markdown
Member Author

This PR will allow to fix http://bugs.python.org/issue30705

@zooba

zooba commented Jun 27, 2017 •

Copy link
Copy Markdown
Member

Don't we already have these functions in PC/msvcrtmodule.c?

@vstinner

Copy link
Copy Markdown
Member Author

Don't we already have these functions in PC/msvcrtmodule.c?

None of the added functions or constants is already available in msvcrt. Otherwise, I would just use them ;-)

Reminder: Python 2.7 was released 7 years ago. A lot of things evolved in Python 3 in the meanwhile ;-)

@vstinner
vstinner merged commit 95a91df into python:2.7 Jun 27, 2017
@vstinner
vstinner deleted the suppress_crash_win27 branch June 27, 2017 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants