1.如果哪位大佬有其他解决办法,希望在评论区回答。
2.网址:https://github.com/gusutabopb/aioinflux/pull/4提供的解决方案
1)Added __aenter__, __aexit__, and close functions
2)Removed __del__ function. For well-handled cleanup, clients can either explicitly close,
or use the context guard. This also avoids unwanted side effects where __del__ is called
after the event loop closes.
3)async_client fixture is now async, and uses a module scoped event loop
**这个似乎是基于上下文管理器的思想解决的。。。(2019/9/22)
3.python添加、修改、删除、访问类对象属性的2种方法:https://www.cnblogs.com/reyinever/p/8627833.html
4.另一解决方案,据说官方已经解决这个问题了:https://github.com/aio-libs/aiohttp/issues/2036
5.我觉得 https://juejin.im/entry/57b138e1165abd00542ab1fa 这个里面的这句话说的有点道理
所以基于这个的想法,我让协程等待N秒,如下
基本解决了这个问题,如果没有那一定是等待时间不够(机智)