diff options
author | Steve Dower <steve.dower@microsoft.com> | 2015-03-08 04:32:16 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2015-03-08 04:32:16 (GMT) |
commit | 79938f22efb3414fb2fbfdc0ae81b908774a59b1 (patch) | |
tree | e7f5e82a38912c2a9b26b2da139deb4f6cf7218d /Lib/test/test_cmd_line.py | |
parent | 8acde7dccebd914ec4235f3ed1e9eef53a300978 (diff) | |
download | cpython-79938f22efb3414fb2fbfdc0ae81b908774a59b1.zip cpython-79938f22efb3414fb2fbfdc0ae81b908774a59b1.tar.gz cpython-79938f22efb3414fb2fbfdc0ae81b908774a59b1.tar.bz2 |
Suppress assert dialogs in test_cmd_line.
Diffstat (limited to 'Lib/test/test_cmd_line.py')
-rw-r--r-- | Lib/test/test_cmd_line.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |