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
It looks like the output from the very first "When we run" statement is being captured, but when there are subsequent "When we run" statements in the same test, the output of those statements is no longer being captured.
It does seem related to inject_fixture in pytest bdd, since that's related to the only documented breaking change in pytest 8.1, but I'm not sure how exactly.
I’m keeping an eye on this, as we’re about to update to pytest 8.3 from 7.4.3 in Fedora Rawhide. In the short term, there are a few other packages that will need a python-pytest7 compat package, so jrnl can use that. In the medium term, it may become necessary to stop running jrnl’s tests in Fedora if this can’t be resolved.
I’m not sure if something changed, or if I tested incorrectly before, but I just tried this again (applying pytest-dev/pytest-bdd#690 as a patch to pytest-bdd 7.2.0 and running tests from jrnl 4.1, patched with #1878, using pytest 8.3.1), and it worked. So it seems that PR is in fact the solution to this issue.
Tests have been working with pytest 8.0 but not pytest 8.1.1. Discovered in #1878.
A fix to this ticket:
The text was updated successfully, but these errors were encountered: