[Python-checkins] [python/cpython] b984a0: bpo-30107: don't dump core on expected test_io cra...

GitHub noreply at github.com
Fri Apr 21 12:27:31 EDT 2017


  Branch: refs/heads/3.6
  Home:   https://github.com/python/cpython
  Commit: b984a05d557e78b928f38098d0b6c0e95f737b9a
      https://github.com/python/cpython/commit/b984a05d557e78b928f38098d0b6c0e95f737b9a
  Author: Victor Stinner <victor.stinner at gmail.com>
  Date:   2017-04-21 (Fri, 21 Apr 2017)

  Changed paths:
    M Lib/test/test_io.py

  Log Message:
  -----------
  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)




More information about the Python-checkins mailing list