pymc-devs/pymc

Fail tests with unexpected warnings

Open

#6408 aperta il 21 dic 2022

Vedi su GitHub
 (6 commenti) (0 reazioni) (0 assegnatari)Python (1902 fork)batch import
beginner friendlyhelp wantedmaintenancetests

Metriche repository

Star
 (7926 star)
Metriche merge PR
 (Merge medio 11g 6h) (12 PR mergiate in 30 g)

Descrizione

Description

Some great maintenance work to cleanup warnings was done in #6067 and #6074 (probably more)

More recently, I started adding pytestmark = pytest.mark.filterwarnings("error"), as in #6407

Ideally, we would move to failing with warnings in the entire test suite, so that we don't regress and catch deprecation issues earlier on. The approach taken in #6407 might be a good start if there's too much going on.

https://docs.pytest.org/en/7.1.x/how-to/capture-warnings.html

Guida contributor