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 <rep...@bugs.python.org> <http://bugs.python.org/issue24837> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com