This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author chrysn
Recipients chrysn, gvanrossum, vstinner, yselivanov
Date 2014-09-24.11:22:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
the attached test.py snipplet, which runs an asyncio main loop to the completion of a coroutine raising SystemExit, runs cleanly when invoked using `python3 test.py`, but shows a logging error from the Task.__del__ method when invoked using `python3 -m test`.

the error message (attached as test.err) indicates that the builtins module has already been emptied by the time the Task's destructor is run.

i could reproduce the problem with an easier test case without asyncio (destructoretest.py), but then again, there the issue is slightly more obvious (one could argue a "don't do that, then"), and it occurs no matter how the program is run. i'm leaving this initially assigned to asyncio, because (to the best of my knowledge) test.py does not do bad things by itself, and the behavior is inconsistent only there.
History
Date User Action Args
2014-09-24 11:22:12chrysnsetrecipients: + chrysn, gvanrossum, vstinner, yselivanov
2014-09-24 11:22:12chrysnsetmessageid: <[email protected]>
2014-09-24 11:22:12chrysnlinkissue22480 messages
2014-09-24 11:22:11chrysncreate