stac-utils / stac-task

Provides a class interface for running custom algorithms on STAC ItemCollections
Apache License 2.0
21 stars 5 forks source link

DeprecationWarning: There is no current event loop #99

Open philvarner opened 7 months ago

philvarner commented 7 months ago

Running tests yields deprecation warning

tests/test_task_download.py::test_download_nosuch_asset
  /Users/philvarner/code/stac-task/stactask/task.py:238: DeprecationWarning: There is no current event loop
    loop = asyncio.get_event_loop()

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

Description of the issue is here: https://stackoverflow.com/questions/73361664/asyncio-get-event-loop-deprecationwarning-there-is-no-current-event-loop