cockpit icon indicating copy to clipboard operation
cockpit copied to clipboard

tox fails in pull requests since update to pytest-asyncio 1.0

Open jelly opened this issue 6 months ago • 2 comments

  @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

jelly avatar May 27 '25 09:05 jelly

Release notes https://github.com/pytest-dev/pytest-asyncio/releases/tag/v1.0.0

jelly avatar May 27 '25 10:05 jelly

Version locked under 1.0 while this is still an issue. Fixed in main as part of #22050

Venefilyn avatar May 27 '25 11:05 Venefilyn

fixed in #22052

tomasmatus avatar Jul 07 '25 07:07 tomasmatus