]> granicus.if.org Git - python/commit
bpo-30107: don't dump core on expected test_io crash (#1235)
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 21 Apr 2017 15:59:23 +0000 (17:59 +0200)
committerGitHub <noreply@github.com>
Fri, 21 Apr 2017 15:59:23 +0000 (17:59 +0200)
commit2a1aed04b0943636f605543522e16cca1dc23e70
tree0d64e235a35655978d47ba84a4fbcc2c8609b73d
parenta2c877c3985aba4adb19755e21f477e1c639cfd9
bpo-30107: don't dump core on expected test_io crash (#1235)

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']
Lib/test/test_io.py