]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-30107: Make SuppressCrashReport quiet on macOS (#1279) (#1335)
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 28 Apr 2017 01:27:51 +0000 (03:27 +0200)
committerGitHub <noreply@github.com>
Fri, 28 Apr 2017 01:27:51 +0000 (03:27 +0200)
commitc9ca57eeea4d9da748d84281506c5803512b79ac
treed6b38e4f2f235e57d6ffa8420cbf2fbd3579af71
parent4dc3b9cf2a868a8378ecbc2221a15e7b59e8e944
bpo-30107: Make SuppressCrashReport quiet on macOS (#1279) (#1335)

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
(cherry picked from commit d819ad9832292d854e9710493ecdf959b69802e3)
Lib/test/support/__init__.py