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
During tox-dev/tox#1145 (comment) it came up that pytest injects different instance for capfd on the fixture and on test function. Any way to get the call/run capfd inside a fixture? (use case: the fixture provides a helper function that automatically collects output during the run, and ideally would like to avoid the need for the user to pass it through from the call site). Thanks!
The text was updated successfully, but these errors were encountered:
I'm short on time so I didn't follow the discussion in tox-dev/tox#1145, but the short example below shows that you get the same capfd instance in fixtures and test functions:
During tox-dev/tox#1145 (comment) it came up that pytest injects different instance for
capfd
on the fixture and on test function. Any way to get the call/run capfd inside a fixture? (use case: the fixture provides a helper function that automatically collects output during the run, and ideally would like to avoid the need for the user to pass it through from the call site). Thanks!The text was updated successfully, but these errors were encountered: