[New-bugs-announce] [issue22572] NoneType object is not iterable error when asyncio Server.close() called
R. David Murray
report at bugs.python.org
Tue Oct 7 00:22:22 CEST 2014
New submission from R. David Murray:
I'm writing a little web server using aiohttp. I tried to write a unit test...since this is a client server situation I launched the asyncio program in a thread and did a urlopen from the main thread. That all works fine...the problem is in the cleanup code. When I try to stop the server I created via create_server, I get the error in the title.
I've attached a stripped down version of my attempted unit test. It does require aiohttp...I'm not well enough versed in asyncio yet to rewrite it using more fundamental pieces.
I may be doing something stupid here, but it seems to me that even if I am close should not throw this error (the error implies that it is already shut down, so I'd think the close would be a no-op).
nosy: gvanrossum, haypo, r.david.murray, yselivanov
title: NoneType object is not iterable error when asyncio Server.close() called
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file36830/waiter_bug.py
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce