New submission from Brian Curtin <br...@python.org>: Attached is a patch which adds skip_unless_unattended, which ideally would be used with at least test_faulthandler when running on Windows.
Running the tests on a Windows desktop results in the user having to click through Windows Error Reporting dialogs in order to continue. Build slaves disable or handle WER dialogs in order to continue running without manual intervention. The patch looks in the common registry keys [0,1] to see the status of WER and skips tests when it finds that WER is enabled and would require user intervention. We may want to additionally hook this up to a regrtest command line parameter to override the registry setting. Maybe there's a better name for the decorator - I'm not stuck with what I suggested. I consider build slaves as running in "unattended" mode as opposed to a human kicking off the tests. [0] http://www.spyany.com/program/registry-disable-error-reporting.htm [1] http://msdn.microsoft.com/en-us/library/bb513638(v=vs.85).aspx ---------- assignee: brian.curtin components: Tests, Windows files: unattended_decorator.diff keywords: patch messages: 132699 nosy: brian.curtin priority: normal severity: normal stage: patch review status: open title: Skip decorator for tests requiring manual intervention on Windows type: behavior versions: Python 3.3 Added file: http://bugs.python.org/file21493/unattended_decorator.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11732> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com