]> granicus.if.org Git - python/commit
bpo-30107: Make SuppressCrashReport quiet on macOS (#1279)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 25 Apr 2017 22:55:08 +0000 (00:55 +0200)
committerGitHub <noreply@github.com>
Tue, 25 Apr 2017 22:55:08 +0000 (00:55 +0200)
commitd819ad9832292d854e9710493ecdf959b69802e3
tree7017464f6c3b593673c8f07aed4f7cebad25dd67
parent08c16016e2a2d1368d001ddebfe9ca92465773c4
bpo-30107: Make SuppressCrashReport quiet on macOS (#1279)

On macOS, SuppressCrashReport now redirects /usr/bin/defaults command
stderr into a pipe to not pollute stderr. It fixes a
test_io.test_daemon_threads_shutdown_stderr_deadlock() failure when
the CrashReporter domain doesn't exists. Message logged into stderr:

2017-04-24 16:57:21.432 defaults[41046:2462851]
The domain/default pair of (com.apple.CrashReporter, DialogType) does not exist
Lib/test/support/__init__.py