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
Working through pypy/pypy#5481 and #6049. Fixes to PyPy no longer fail some tests. The xfail tests were marked with xfail(strict=True) (by default strict value), so now that they pass they are marked as failing. I run weekly testing of pybind11 HEAD + pypy HEAD at https://github.com/pypy/binary-testing, you can see the three unexpected tests pass here
Suggested changelog entry:
No changlog entry needed, these are really minor changes in multi-inheritance behavior that I doubt many users hit in practice.
Hi @mattip, this seems useful for pypy/binary-testing, but I'd prefer to avoid strict=False in the final PR. Instead, we should query the PyPy version in the xfail condition, something like:
@pytest.mark.xfail(
"env.PYPY and sys.pypy_version_info < fixed_version",
reason="Fixed in PyPy ...",
)
Or cleaner, add a PYPY_VERSION helper to tests/env.py and use that in the marker.
it seems the pattern elsewhere is to add strict=False and not probe sys.pypy_version_info.
Thanks for pointing out, I wasn't aware. We should probably fix what you found when we get a chance.
strict=False is useful for genuinely flaky tests, but here the behavior appears to have changed deterministically in PyPy. Leaving a broad env.PYPY, strict=Falsexfail means both "still broken" and "now fixed" remain acceptable indefinitely, so the test stops telling us when the workaround is obsolete or when a real regression appears.
What I'm suggesting is really simple, a few minutes worth of effort or so. It'll help us keep the project healthy. A version-gated xfail keeps the expected-failure window explicit and lets newer PyPy versions exercise the test normally.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Working through pypy/pypy#5481 and #6049. Fixes to PyPy no longer fail some tests. The xfail tests were marked with
xfail(strict=True)(by defaultstrictvalue), so now that they pass they are marked as failing. I run weekly testing of pybind11 HEAD + pypy HEAD at https://github.com/pypy/binary-testing, you can see the three unexpected tests pass hereSuggested changelog entry:
No changlog entry needed, these are really minor changes in multi-inheritance behavior that I doubt many users hit in practice.
📚 Documentation preview 📚: https://pybind11--6077.org.readthedocs.build/