-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I suggest to add "self.loop.run_until_complete(asyncio.sleep(0.1))" in AioHTTPTestCase.tearDown #3388
Comments
GitMate.io thinks the contributor most likely able to help you is @asvetlov. Possibly related issues are #2706 (asyncio.sleep() raise RuntimeError exception in AioHTTPTestCase.), #2248 (Test only asyncio loop by default.), #1007 (Next aiohttp release will be 1.0), #526 (HTTP/1.0 Keep-Alive behaviour), and #1922 (aiohttp 2.1.0 release). |
Not |
This issue doesn't happens for me with a given test script and without custom tearDown, while it is reproduceable with script from #1115. Some flaky case? |
|
No flaky case on my macOS laptop with Python 3.7.0. |
Same warning message with Pytho
|
No ResourceWarnings for me on Gentoo Linux and FreeBSD. That's why I'm asking. |
Is this still an issue? I also can't reproduce (and the original reproducer is incomplete). |
In my test file, I need to add
self.loop.run_until_complete(asyncio.sleep(0.1))
intearDown
to removeResourceWarning: unclosed transport
, see #1115I suggest to add
self.loop.run_until_complete(asyncio.sleep(0.1))
in https://github.com/aio-libs/aiohttp/blob/master/aiohttp/test_utils.py#L432, example:What do you think of that?
Best regards,
Stéphane
The text was updated successfully, but these errors were encountered: