open-atmos / devops_tests

pytest test routines asserting for GitHub issue-linked TODO labelling in the code, README link consistency and some Jupyter notebook sanity checks
GNU General Public License v3.0
0 stars 4 forks source link

add a test depicting the `set_event_loop_policy()` issue #24

Open slayoo opened 1 year ago

slayoo commented 1 year ago

In test_notebooks, we have:

# pylint: disable=wrong-import-position
# https://bugs.python.org/issue37373
import sys

if sys.platform == "win32" and sys.version_info[:2] >= (3, 7):
    import asyncio

    asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

which is not covered by CI (i.e., moving it around does not trigger a CI failure, while the code suggests that it need to be placed before other imports).

We should add a test file that depicts the problem

github-actions[bot] commented 11 months ago

Stale issue message

github-actions[bot] commented 7 months ago

Stale issue message