Unskip accidentally skipped tests by dstansby · Pull Request #738 · zarr-developers/numcodecs · GitHub
Skip to content

Unskip accidentally skipped tests#738

Merged
jakirkham merged 1 commit into
zarr-developers:mainfrom
dstansby:unskip-tests
Apr 11, 2025
Merged

Unskip accidentally skipped tests#738
jakirkham merged 1 commit into
zarr-developers:mainfrom
dstansby:unskip-tests

Conversation

@dstansby

Copy link
Copy Markdown
Contributor

When a pytest.skip() is executed it skips the entire running test, not just the current for loop. This means putting a pytest.skip() inside a for loop can accidentally skip tests. The fix here is to parametrize the tests instead of using for loops.

@codecov

codecov Bot commented Apr 10, 2025

Copy link
Copy Markdown

@jakirkham jakirkham merged commit 85eeed3 into zarr-developers:main Apr 11, 2025
@jakirkham

Copy link
Copy Markdown
Member

@dstansby dstansby deleted the unskip-tests branch April 11, 2025 07:09
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.

2 participants