fix unclosed file warnings when running python in debug mode

This commit is contained in:
Noah Levitt 2018-02-13 17:07:40 -08:00
parent 56e01b9078
commit 6086bfe4b4

View File

@ -308,6 +308,8 @@ class Chrome:
'SIGKILL', self.chrome_process.pid, status)
finally:
self.chrome_process.stdout.close()
self.chrome_process.stderr.close()
try:
self._home_tmpdir.cleanup()
except: