Description
Getting the error AttributeError: 'MiniMetafunc' object has no attribute '_params_directness' during test collection. Curiously it is only reported for 5 tests out of a few thousand.
python 3.9.22 on Ubuntu 22.04.5
pytest 8.4.0
pytest-cases 3.8.6
pytest-mock 3.14.1
models/v1/test_feature_dao.py:471: in <module> def test_validate_name(val): /usr/local/lib/python3.9/dist-packages/pytest_cases/common_pytest.py:952: in apply return apply_decorator(test_or_fixture_func, container) /usr/local/lib/python3.9/dist-packages/pytest_cases/case_parametrizer_new.py:158: in _apply_parametrization argvalues = get_parametrize_args(host_class_or_module, cases_funs, prefix=prefix, /usr/local/lib/python3.9/dist-packages/pytest_cases/case_parametrizer_new.py:354: in get_parametrize_args return [c for _f in cases_funs for c in case_to_argvalues(host_class_or_module, _f, prefix, scope, import_fixtures, /usr/local/lib/python3.9/dist-packages/pytest_cases/case_parametrizer_new.py:354: in <listcomp> return [c for _f in cases_funs for c in case_to_argvalues(host_class_or_module, _f, prefix, scope, import_fixtures, /usr/local/lib/python3.9/dist-packages/pytest_cases/case_parametrizer_new.py:438: in case_to_argvalues meta = MiniMetafunc(case_fun) /usr/local/lib/python3.9/dist-packages/pytest_cases/common_pytest.py:718: in __init__ self.update_callspecs() /usr/local/lib/python3.9/dist-packages/pytest_cases/common_pytest.py:753: in update_callspecs self.parametrize(argnames=pmark.param_names, argvalues=argvals, ids=pmark.param_ids, /usr/local/lib/python3.9/dist-packages/_pytest/python.py:1281: in parametrize self._params_directness.update(arg_directness) E AttributeError: 'MiniMetafunc' object has no attribute '_params_directness'