Suppress assert dialogs in test_cmd_line.

This commit is contained in:
Steve Dower 2015-03-07 20:32:16 -08:00
parent 8acde7dcce
commit 79938f22ef
1 changed files with 2 additions and 1 deletions

View File

@ -340,7 +340,8 @@ class CmdLineTest(unittest.TestCase):
# Issue #5319: if stdout.flush() fails at shutdown, an error should
# be printed out.
code = """if 1:
import os, sys
import os, sys, test.support
test.support.SuppressCrashReport().__enter__()
sys.stdout.write('x')
os.close(sys.stdout.fileno())"""
rc, out, err = assert_python_ok('-c', code)