mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
merge heads
This commit is contained in:
commit
529d130eda
1 changed files with 2 additions and 1 deletions
|
@ -83,7 +83,8 @@ class Test(unittest.TestCase):
|
||||||
script = os.path.join(scriptsdir, "fixcid.py")
|
script = os.path.join(scriptsdir, "fixcid.py")
|
||||||
with support.swap_attr(sys, "argv", argv), \
|
with support.swap_attr(sys, "argv", argv), \
|
||||||
support.swap_attr(sys, "stdin", StringIO(input)), \
|
support.swap_attr(sys, "stdin", StringIO(input)), \
|
||||||
support.captured_stdout() as output:
|
support.captured_stdout() as output, \
|
||||||
|
support.captured_stderr():
|
||||||
try:
|
try:
|
||||||
runpy.run_path(script, run_name="__main__")
|
runpy.run_path(script, run_name="__main__")
|
||||||
except SystemExit as exit:
|
except SystemExit as exit:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue