Skip to content

test(pytest): skip instead of xfail where appropriate#1619

Open
scop wants to merge 1 commit into
mainfrom
test/skipif-xfail
Open

test(pytest): skip instead of xfail where appropriate#1619
scop wants to merge 1 commit into
mainfrom
test/skipif-xfail

Conversation

@scop
Copy link
Copy Markdown
Owner

@scop scop commented Apr 19, 2026

Skipping is appropriate for cases where there's no point in running the tests for some reason we can detect, whereas expecting failure is more like a TODO thing -- known bug or a missing feature.

Ref https://docs.pytest.org/en/stable/how-to/skipping.html

This only addresses pytest.mark.xfail/skipif for now, not yet our pytest.mark.complete skipif=/xfail= (there's a lot of that in the tree).

@scop scop marked this pull request as draft April 19, 2026 14:16
Comment thread test/t/unit/test_unit_compgen_ip_addresses.py
@scop scop force-pushed the test/skipif-xfail branch from e553b52 to c0fc068 Compare May 27, 2026 20:40
@scop scop force-pushed the test/skipif-xfail branch from c0fc068 to aacfa27 Compare June 6, 2026 07:31
Skipping is appropriate for cases where there's no point in running
the tests for some reason we can detect, whereas expecting failure is
more like a TODO thing -- known bug or a missing feature.

Ref https://docs.pytest.org/en/stable/how-to/skipping.html

This only addresses pytest.mark.xfail/skipif, not our
pytest.mark.complete skipif=/xfail=.
@scop scop force-pushed the test/skipif-xfail branch from aacfa27 to cbdf4fa Compare June 6, 2026 07:33
@scop scop marked this pull request as ready for review June 6, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant