From 79938f22efb3414fb2fbfdc0ae81b908774a59b1 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Sat, 7 Mar 2015 20:32:16 -0800 Subject: Suppress assert dialogs in test_cmd_line. --- Lib/test/test_cmd_line.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py index ebe557e..abaf3bb 100644 --- a/Lib/test/test_cmd_line.py +++ b/Lib/test/test_cmd_line.py @@ -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) -- cgit v0.12