avinassh/haxor

`asyncio.get_event_loop()`: DeprecationWarning: There is no current event loop

Open

#35 建立於 2023年12月11日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)Python (32 fork)github user discovery
help wanted

倉庫指標

Star
 (165 star)
PR 合併指標
 (PR 指標待抓取)

描述

While running tests, following is printed:

=============================== warnings summary ===============================
tests/test_ask_stories.py::TestAskStories::test_ask_stories
  /home/runner/work/haxor/haxor/hackernews/__init__.py:139: DeprecationWarning: There is no current event loop
    loop = asyncio.get_event_loop()

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

https://github.com/avinassh/haxor/actions/runs/7166888744/job/19511836841

on stackoverflow: https://stackoverflow.com/questions/73361664/asyncio-get-event-loop-deprecationwarning-there-is-no-current-event-loop

貢獻者指南