]> granicus.if.org Git - python/commit
bpo-30705: Fix test_regrtest.test_crashed() (#2439)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 27 Jun 2017 13:37:19 +0000 (15:37 +0200)
committerGitHub <noreply@github.com>
Tue, 27 Jun 2017 13:37:19 +0000 (15:37 +0200)
commit2d775589d98959abb9833121bd9d417003de56c0
tree0f3d4a2bcb266e060905efa9044b06a2fb9cdcf8
parent95a91df0363f88722ea2860d9d42a0b04b3f8be2
bpo-30705: Fix test_regrtest.test_crashed() (#2439)

* Add test.support._crash_python() which triggers a crash but uses
  test.support.SuppressCrashReport() to prevent a crash report from
  popping up.
* Modify test_child_terminated_in_stopped_state() of test_subprocess
  and test_crashed() of test_regrtest to use _crash_python().
Lib/test/support/__init__.py
Lib/test/test_regrtest.py
Lib/test/test_subprocess.py