amyangfei / GorMW

GoReplay Middleware in Python
MIT License
27 stars 5 forks source link

DeprecationWarning in asyncio implement #8

Closed amyangfei closed 2 years ago

amyangfei commented 2 years ago

ref ci job with python3.10: https://app.travis-ci.com/github/amyangfei/GorMW/jobs/578993409

=============================== warnings summary ===============================
tests/test_asyncio_gor.py::TestAsyncioGor::test_run
  /home/travis/build/amyangfei/GorMW/gor/asyncio_impl.py:56: DeprecationWarning: There is no current event loop
    self.io_loop = asyncio.get_event_loop()
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html