Skip to content

Commit

Permalink
Use asyncio.run in test to avoid a DeprecationWarning from get_event_…
Browse files Browse the repository at this point in the history
…loop()
  • Loading branch information
npt committed Sep 30, 2024
1 parent 798cbdd commit 443804c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/refresh_all_apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ async def refresh_disc_docs_json():


if __name__ == "__main__":
asyncio.get_event_loop().run_until_complete(refresh_disc_docs_json())
asyncio.run(refresh_disc_docs_json())

0 comments on commit 443804c

Please sign in to comment.