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 r.david.murray
Recipients gvanrossum, r.david.murray, vstinner, yselivanov
Date 2014-10-06.22:22:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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).
Date User Action Args
2014-10-06 22:22:22r.david.murraysetrecipients: + r.david.murray, gvanrossum, vstinner, yselivanov
2014-10-06 22:22:22r.david.murraysetmessageid: <>
2014-10-06 22:22:22r.david.murraylinkissue22572 messages
2014-10-06 22:22:22r.david.murraycreate