[issue22480] SystemExit out of run_until_complete causes AttributeError when using python3 -m

2014-10-11 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22480 ___ ___

[issue22480] SystemExit out of run_until_complete causes AttributeError when using python3 -m

2014-10-10 Thread STINNER Victor
STINNER Victor added the comment: I created a more specific issue for destructortest.py: issue #22599. It's not directly related to asyncio. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22480

[issue22480] SystemExit out of run_until_complete causes AttributeError when using python3 -m

2014-09-24 Thread chrysn
New submission from chrysn: 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

[issue22480] SystemExit out of run_until_complete causes AttributeError when using python3 -m

2014-09-24 Thread chrysn
Changes by chrysn chr...@fsfe.org: Added file: http://bugs.python.org/file36707/test.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22480 ___ ___

[issue22480] SystemExit out of run_until_complete causes AttributeError when using python3 -m

2014-09-24 Thread chrysn
Changes by chrysn chr...@fsfe.org: Added file: http://bugs.python.org/file36708/test.err ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22480 ___ ___

[issue22480] SystemExit out of run_until_complete causes AttributeError when using python3 -m

2014-09-24 Thread chrysn
Changes by chrysn chr...@fsfe.org: Added file: http://bugs.python.org/file36709/destructortest.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22480 ___

[issue22480] SystemExit out of run_until_complete causes AttributeError when using python3 -m

2014-09-24 Thread STINNER Victor
STINNER Victor added the comment: Running python test.py and python -m test changes how the code is loaded. With python test.py, test.py becomes the __main__ module, whereas python -m test uses the test module. At Python exit, the __main__ module and other modules are destroyed differently.