]> granicus.if.org Git - python/commit
bpo-30107: don't dump core on expected test_io crash (#1235) (#1241)
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 21 Apr 2017 16:27:29 +0000 (18:27 +0200)
committerGitHub <noreply@github.com>
Fri, 21 Apr 2017 16:27:29 +0000 (18:27 +0200)
commitb984a05d557e78b928f38098d0b6c0e95f737b9a
tree87440a3423d33075e5d5d4c669ef46a8e09e0301
parent483729526e06cda0befc241190bb586d472a72e8
bpo-30107: don't dump core on expected test_io crash (#1235) (#1241)

test_io has two unit tests which trigger a deadlock:

* test_daemon_threads_shutdown_stdout_deadlock()
* test_daemon_threads_shutdown_stderr_deadlock()

These tests call Py_FatalError() if the expected bug is triggered
which calls abort(). Use test.support.SuppressCrashReport to prevent
the creation on a core dump, to fix the warning:

Warning -- files was modified by test_io
  Before: []
  After:  ['python.core']
(cherry picked from commit 2a1aed04b0943636f605543522e16cca1dc23e70)
Lib/test/test_io.py