Skip to content

test: enforce warnings-as-errors in pytest config#725

Open
kostakost2 wants to merge 1 commit intosimonw:mainfrom
kostakost2:fix/pytest-warnings-as-errors
Open

test: enforce warnings-as-errors in pytest config#725
kostakost2 wants to merge 1 commit intosimonw:mainfrom
kostakost2:fix/pytest-warnings-as-errors

Conversation

@kostakost2
Copy link
Copy Markdown

@kostakost2 kostakost2 commented Mar 29, 2026

Summary

Closes #541.

All 1040 tests already pass with pytest -W error (Python 3.13, with hypothesis installed). This PR codifies that constraint in pyproject.toml so the guarantee is automatically enforced on every future run — no need to remember the manual flag.

[tool.pytest.ini_options]
filterwarnings = ["error"]

Test plan

  • pytest tests/ — 1040 passed, 16 skipped, 0 errors (with filterwarnings = ["error"] active)
  • Verified the test_hypothesis.py file also passes (requires hypothesis to be installed)

🤖 Generated with Claude Code


📚 Documentation preview 📚: https://sqlite-utils--725.org.readthedocs.build/en/725/

All 1040 tests already pass with `pytest -W error`; this commit codifies
that constraint in `pyproject.toml` so future regressions are caught
automatically without needing to remember the manual flag.

Closes simonw#541

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

Get tests to pass with pytest -Werror

1 participant