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).

----------
components: asyncio
files: waiter_bug.py
messages: 228742
nosy: gvanrossum, haypo, r.david.murray, yselivanov
priority: normal
severity: normal
status: open
title: NoneType object is not iterable error when asyncio Server.close() called
type: behavior
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file36830/waiter_bug.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22572>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to