appium / python-client

Python language bindings for Appium
Apache License 2.0
1.62k stars 554 forks source link

fix: unclosed file <_io.BufferedReader name error by proper cleanup of subprocess.Popen process #965

Closed WrrngnCode closed 3 months ago

WrrngnCode commented 3 months ago

https://github.com/appium/python-client/issues/962

After self._process.terminate() a call to Popen.communicate()](https://docs.python.org/3/library/subprocess.html#subprocess.Popen.communicate) shall be made, which will close the file handles. This will ensure that file stdout and sdterr file descriptors are closed properly.

linux-foundation-easycla[bot] commented 3 months ago

CLA Signed


The committers listed above are authorized under a signed CLA.