You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will now issue a RemovedInPytest4Warning when the user calls
a fixture function directly, instead of requesting it from test
functions as is expected
Fix#3661
Calling a fixture function directly, as opposed to request them in a test function, now issues a ``RemovedInPytest4Warning`` in Python 3. It will be changed into an error in pytest ``4.0``. In Python 2 nothing changed due to technical difficulties in implementing the warning reliably.
2
+
3
+
This is a great source of confusion to new users, which will often call the fixture functions and request them from test functions interchangeably, which breaks the fixture resolution model.
0 commit comments