Skip to content

Can't find cleanup pytest fixture #9137

@jrbourbeau

Description

@jrbourbeau

We started seeing

___________ ERROR at setup of test_blockwise_different_optimization ____________
[gw2] linux -- Python 3.9.12 /usr/share/miniconda3/envs/test-environment/bin/python
file /home/runner/work/dask/dask/dask/tests/test_distributed.py, line 472
  def test_blockwise_different_optimization(c):
file /usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/distributed/utils_test.py, line 617
  @pytest.fixture
  def client(loop, cluster_fixture):
file /usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/distributed/utils_test.py, line 138
  @pytest.fixture
  def loop(cleanup):
E       fixture 'cleanup' not found
>       available fixtures: c, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cluster_fixture, cov, doctest_namespace, loop, monkeypatch, no_cover, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, shuffle_method, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, worker_id
>       use 'pytest --fixtures [testpath]' for help on them.

/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/distributed/utils_test.py:138

on main in all our distributed-related tests. Probably related to dask/distributed#6231 cc @graingert

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs attentionIt's been a while since this was pushed on. Needs attention from the owner or a maintainer.testsUnit tests and/or continuous integration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions