Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Close stdin and stdout after the proc finishes.
  • Loading branch information
ericsnowcurrently committed May 23, 2017
commit 7d8f744f2202a8e27a7924c29bac250baf0fcf6c
4 changes: 2 additions & 2 deletions Lib/test/test__interpreters.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def test_still_running_at_exit(self):
time.sleep(1_000_000)
""")
filename = script_helper.make_script(self.dirname, 'interp', script)
proc = script_helper.spawn_python(filename)
retcode = proc.wait()
with script_helper.spawn_python(filename) as proc:
retcode = proc.wait()

self.assertEqual(retcode, 0)

Expand Down