classification
Title: asyncio: get_event_loop() must always raise an exception, even when assertions are disabled by -O
Type: Stage:
Components: asyncio Versions: Python 3.4, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: gvanrossum, python-dev, vstinner, yselivanov
Priority: normal Keywords: patch

Created on 2014-12-17 22:49 by vstinner, last changed 2014-12-18 00:24 by vstinner. This issue is now closed.

Files
File name Uploaded Description Edit
get_event_loop.patch vstinner, 2014-12-17 22:49 review
Messages (4)
msg232830 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2014-12-17 22:49
Spinoff of the issue #22926: asyncio.get_event_loop() must always raise an exception, even when assertions are disabled by -O.

Attached patch implements this suggestion.
msg232844 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-12-18 00:22
New changeset b4dce0e695df by Victor Stinner in branch '3.4':
Issue #23074: asyncio.get_event_loop() now raises an exception if the thread
https://hg.python.org/cpython/rev/b4dce0e695df
msg232845 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2014-12-18 00:22
Change applied to Python 3.4, 3.5 and Tulip (c6115bc83acc).

Thanks for the review Guido.
msg232846 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2014-12-18 00:24
I also updated aiotest test suite:
https://bitbucket.org/haypo/aiotest/commits/d6f544a16a8f55729268d8d4b8d864d1b0af2d12
History
Date User Action Args
2014-12-18 00:24:25vstinnersetmessages: + msg232846
2014-12-18 00:22:53vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg232845
2014-12-18 00:22:04python-devsetnosy: + python-dev
messages: + msg232844
2014-12-17 22:49:12vstinnercreate