the behavior of pytest differs a bit bettween mark.usefixutres and usefixtures specified in pytest.ini #8402
-
I have acknoldeged a difference in invokation time of fixture teardown is performed when either it is specied with the Here is an example :
Here is the outcome :
I do see that the teardown of the fixture However, if instead of decorating the test class with
Outcome:
So here the invokation of the So down to my question : is this expected to have such a difference ? or is it a bug and both ways should have the same behavior. I am using pytest 4.6.11. I know it is an old version, is a newer version fix that problem ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
please try with a recent version as well |
Beta Was this translation helpful? Give feedback.
please try with a recent version as well