[New-bugs-announce] [issue24837] await process.wait() does not work with a new_event_loop
Chetan Reddy
report at bugs.python.org
Mon Aug 10 11:30:38 CEST 2015
New submission from Chetan Reddy:
Attached test.py hangs with the following output when run with PYTHONASYNCIODEBUG1= and -Wdefault.
DEBUG:asyncio:Using selector: EpollSelector
DEBUG:asyncio:run shell command 'sleep 2'
DEBUG:asyncio:process 'sleep 2' created: pid 13801
INFO:asyncio:run shell command 'sleep 2': <_UnixSubprocessTransport pid=13801 running>
After i Ctrl-C it, i see the following traceback (paths edited)
^CTraceback (most recent call last):
File "/chetan/test.py", line 17, in <module>
main()
File "/chetan/test.py", line 12, in main
result =loop.run_until_complete(sleepWithShell(loop))
File "/Python-3.5.0b4-clang/lib/python3.5/asyncio/base_events.py", line 329, in run_until_complete
self.run_forever()
File "/Python-3.5.0b4-clang/lib/python3.5/asyncio/base_events.py", line 300, in run_forever
self._run_once()
File "/Python-3.5.0b4-clang/lib/python3.5/asyncio/base_events.py", line 1142, in _run_once
event_list = self._selector.select(timeout)
File "/Python-3.5.0b4-clang/lib/python3.5/selectors.py", line 432, in select
fd_event_list = self._epoll.poll(timeout, max_ev)
KeyboardInterrupt
/Python-3.5.0b4-clang/lib/python3.5/asyncio/base_subprocess.py:117: ResourceWarning: unclosed transport <_UnixSubprocessTransport pid=13801 running>
/Python-3.5.0b4-clang/lib/python3.5/asyncio/base_events.py:384: ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=True>
DEBUG:asyncio:Close <_UnixSelectorEventLoop running=False closed=False debug=True>
----------
components: asyncio
files: test.py
messages: 248353
nosy: chetan, gvanrossum, haypo, yselivanov
priority: normal
severity: normal
status: open
title: await process.wait() does not work with a new_event_loop
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file40155/test.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24837>
_______________________________________
More information about the New-bugs-announce
mailing list