Surprising parametrized fixtures order #5054
Labels
topic: fixtures
anything involving fixtures directly or indirectly
type: question
general question, might be closed after 2 weeks of inactivity
Hi,
The example below seems to always lead to the same tests execution order, in both pytest 2, 3, and 4. However the order is counter intuitive:
leads to
However it seems counter-intuitive to me. Indeed all the fixtures are function-scopes fixtures, and the function uses
arg1
(so,arg1_arg2_root
) first, thenarg2
(same root), thenarg3
. I would therefore expect:Do you agree ? If so that's maybe a bug happening when the fixture closure is computed?
The text was updated successfully, but these errors were encountered: