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 2 forks source link

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

Closed slayoo closed 5 months ago

slayoo commented 11 months 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 9 months ago

Stale issue message

github-actions[bot] commented 6 months ago

Stale issue message