Airtest icon indicating copy to clipboard operation
Airtest copied to clipboard

airtest1.2.0新增的清理程序报错

Open songzhenhua opened this issue 4 years ago • 0 comments
trafficstars

小几率出现,没升1.2.0前没遇过。用例都正常执行完了,走清理逻辑时报错了。 Exception ignored in: <module 'threading' from '/usr/lib/python3.6/threading.py'> Traceback (most recent call last): File "/home/magic/.local/lib/python3.6/site-packages/airtest/utils/snippet.py", line 89, in exitfunc _cleanup() File "/home/magic/.local/lib/python3.6/site-packages/airtest/utils/snippet.py", line 64, in _cleanup func(*args, **kwargs) File "/home/magic/.local/lib/python3.6/site-packages/airtest/utils/snippet.py", line 78, in kill_proc proc.communicate() File "/usr/lib/python3.6/subprocess.py", line 863, in communicate stdout, stderr = self._communicate(input, endtime, timeout) File "/usr/lib/python3.6/subprocess.py", line 1525, in _communicate selector.register(self.stdout, selectors.EVENT_READ) File "/usr/lib/python3.6/selectors.py", line 351, in register key = super().register(fileobj, events, data) File "/usr/lib/python3.6/selectors.py", line 237, in register key = SelectorKey(fileobj, self._fileobj_lookup(fileobj), events, data) File "/usr/lib/python3.6/selectors.py", line 224, in _fileobj_lookup return _fileobj_to_fd(fileobj) File "/usr/lib/python3.6/selectors.py", line 39, in _fileobj_to_fd "{!r}".format(fileobj)) from None ValueError: Invalid file object: <_io.BufferedReader name=12>

python 版本: python3.6.9

airtest 版本: 1.2.0

设备: SAMSUNG|SM-G9730

其他相关环境信息 Darwin localhost 19.5.0 Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64 x86_6

songzhenhua avatar Aug 05 '21 11:08 songzhenhua