mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Suppress assert dialogs in test_cmd_line.
This commit is contained in:
parent
8acde7dcce
commit
79938f22ef
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue