cockpit
cockpit copied to clipboard
tox fails in pull requests since update to pytest-asyncio 1.0
@pytest.fixture(autouse=True)
def _check_settled(event_loop) -> Iterable[None]:
E fixture 'event_loop' not found
> available fixtures: _check_settled, _class_event_loop, _function_event_loop, _module_event_loop, _package_event_loop, _session_event_loop, bridge, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, event_loop_policy, fchown_mock, fsinfo_test_cases, login_messages_envvar, monkeypatch, no_cover, no_init_transport, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, transport, unused_tcp_port, unused_tcp_port_factory, unused_udp_port, unused_udp_port_factory, user_group_mock, worker_id
> use 'pytest --fixtures [testpath]' for help on them.
Reproducer:
tox -e py313-pytest --colored=yes -- -k test_priority
Release notes https://github.com/pytest-dev/pytest-asyncio/releases/tag/v1.0.0
Version locked under 1.0 while this is still an issue. Fixed in main as part of #22050
fixed in #22052