STINNER Victor added the comment: Here is a patch without unit:
- modify get_event_loop() to always raise a RuntimeError if the thread has no event loop. Before an AssertionError was not raised if python runs with -O option - modify BaseEventLoop._assert_is_current_event_loop() to fail if the thread has an event loop - modify tests to set the event loop to the newly created event loop, instead of setting it to None ---------- keywords: +patch Added file: http://bugs.python.org/file37303/asyncio_thread.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22926> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com