]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[2.7] bpo-30764: test_subprocess uses SuppressCrashReport (#2405) (#2412) 2427/head
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 26 Jun 2017 22:00:51 +0000 (00:00 +0200)
committerGitHub <noreply@github.com>
Mon, 26 Jun 2017 22:00:51 +0000 (00:00 +0200)
commit2097b9e0ef32ab7a0d745edc0f707c615780c006
treee95ac6fa96f9e660c4485e42aae7a371c997a1cc
parent828488393ca79f2ceb0acc2d7c30fb68baad85f8
[2.7] bpo-30764: test_subprocess uses SuppressCrashReport (#2405) (#2412)

* bpo-30764: Backport support.SuppressCrashReport

Backport test.support.SuppressCrashReport context-manager from
master. Drop the Windows implementation since it depends on
msvcrt.CrtSetReportMode() which isn't available on Python 2.7.

* bpo-30764: test_subprocess uses SuppressCrashReport (#2405)

bpo-30764, bpo-29335: test_child_terminated_in_stopped_state() of
test_subprocess now uses support.SuppressCrashReport() to prevent the
creation of a core dump on FreeBSD.
(cherry picked from commit cdee3f14f7f4c995e7eedb0bf6a67e260c739f7d)
Lib/test/support/__init__.py
Lib/test/test_subprocess.py