I took pytest from features
branch because it has --setup-plan
flag
that makes it display the order of setup and teardown of fixtures. This
information is quite useful for understanding what happens in this
issue.
I added the following lines to Metafunc.parametrize
in
_pytest/python.py
to observe parametrization (I used python 2 for
consistency with the examples from the issue):
diff --git a/_pytest/python.py b/_pytest/python.py