You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most of them are deprecation warnings (which indicate the code needs to catch up or risk being broken when new upstream releases are made).
The PytestAssertRewriteWarning: assertion is always true looks like a testing bug and needs to be fixed.
Not sure what UserWarning is about but might be a bug too.
Bonus: Turn all pytest warnings into failures and explicitly handle them (either ignore on purpose globally or on a case-by-case basis for reason beyond your control, or mark them as expected warning using pytest.warns, or fix the use case so warning does not get raised at all).
Example log: https://github.com/Jammy2211/PyAutoGalaxy/runs/7808313167?check_suite_focus=true
In the log above, there are 59 warnings.
PytestAssertRewriteWarning: assertion is always true
looks like a testing bug and needs to be fixed.UserWarning
is about but might be a bug too.Bonus: Turn all pytest warnings into failures and explicitly handle them (either ignore on purpose globally or on a case-by-case basis for reason beyond your control, or mark them as expected warning using
pytest.warns
, or fix the use case so warning does not get raised at all).Also see https://docs.pytest.org/en/stable/how-to/capture-warnings.html
astropy/astropy.github.com#491 (comment)
The text was updated successfully, but these errors were encountered: