Skip to content

Promote unexpected test warnings to errors - #1039

Open
sylvesterkaczmarek wants to merge 1 commit into
alan-turing-institute:mainfrom
sylvesterkaczmarek:ci/warnings-as-errors
Open

Promote unexpected test warnings to errors#1039
sylvesterkaczmarek wants to merge 1 commit into
alan-turing-institute:mainfrom
sylvesterkaczmarek:ci/warnings-as-errors

Conversation

@sylvesterkaczmarek

Copy link
Copy Markdown

Summary

Make AutoEmulate CI fail on unexpected Python warnings while preserving the existing allow-list for known dependency and backend warnings.

Changes

  • add error as the default pytest warning policy
  • suppress the known Pyro import-time DeprecationWarning through PYTHONWARNINGS, before pytest loads its warning filters

Validation

The PYTHONWARNINGS filter was independently checked against the same warning message, category, and module pattern.

Closes #1007.

@sylvesterkaczmarek
sylvesterkaczmarek marked this pull request as ready for review August 15, 2026 15:51
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.

Promote warnings to errors in CI

1 participant