]> granicus.if.org Git - python/commitdiff
Suppress assert dialogs in test_cmd_line.
authorSteve Dower <steve.dower@microsoft.com>
Sun, 8 Mar 2015 04:32:16 +0000 (20:32 -0800)
committerSteve Dower <steve.dower@microsoft.com>
Sun, 8 Mar 2015 04:32:16 +0000 (20:32 -0800)
Lib/test/test_cmd_line.py

index ebe557e73cd0b3e6e978c42daf97c589bad2b2ba..abaf3bb24dd92b658b1efa48428c181caf762017 100644 (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)