You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tested with textual version 1.0.0 and python version 3.12.8
When updating pytest-asyncio to from 0.24.0 to 0.25.0, some tests start failing:
=========================== short test summary info ============================FAILED tests/test_focus.py::test_focus_chain - RuntimeError: There is no current event loop in thread 'MainThread'.FAILED tests/test_focus.py::test_allow_focus - RuntimeError: There is no current event loop in thread 'MainThread'.FAILED tests/test_focus.py::test_focus_next_and_previous_with_type_selector_without_self - RuntimeError: There is no current event loop in thread 'MainThread'.ERROR tests/test_focus.py::test_focus_next_wrap_around - RuntimeError: There is no current event loop in thread 'MainThread'.ERROR tests/test_focus.py::test_focus_next_and_previous - RuntimeError: There is no current event loop in thread 'MainThread'.ERROR tests/test_focus.py::test_focus_previous_wrap_around - RuntimeError: There is no current event loop in thread 'MainThread'.ERROR tests/test_focus.py::test_no_focus_empty_selector - RuntimeError: There is no current event loop in thread 'MainThread'.ERROR tests/test_focus.py::test_wrap_around_selector - RuntimeError: There is no current event loop in thread 'MainThread'.ERROR tests/test_focus.py::test_focus_next_and_previous_with_type_selector - RuntimeError: There is no current event loop in thread 'MainThread'.ERROR tests/test_focus.py::test_focus_next_and_previous_with_str_selector - RuntimeError: There is no current event loop in thread 'MainThread'.ERROR tests/test_focus.py::test_focus_next_and_previous_with_str_selector_without_self - RuntimeError: There is no current event loop in thread 'MainThread'.
Re-running just the failed tests makes them pass, to reproduce this you need to run the whole test suite or at least a larger part.
I'm not familiar with packaging, but FWIW I don't think Textual will currently ever test using the latest version of pytest-asyncio. Textual still supports Python 3.8, whereas it looks like pytest-asyncio now requires Python 3.9.
Tested with textual version 1.0.0 and python version 3.12.8
When updating pytest-asyncio to from 0.24.0 to 0.25.0, some tests start failing:
Re-running just the failed tests makes them pass, to reproduce this you need to run the whole test suite or at least a larger part.
Possibly related upstream issues:
We noticed this failure in nixpkgs where we recently bumped many python packages and some of textual's tests started failing: https://hydra.nixos.org/job/nixpkgs/trunk/python312Packages.textual.x86_64-linux
Textual Diagnostics
Versions
Python
Operating System
Terminal
Rich Console options
The text was updated successfully, but these errors were encountered: