Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX New pytest version errors on warning test #1056

Merged
merged 1 commit into from
May 27, 2024

Conversation

BenjaminBossan
Copy link
Collaborator

We had a test that basically called pytest.warns(None), which newer pytest versions don't allow. Instead, now using recwarn to assert that there is no error.

The suggested pytest.does_not_warn() (pytest issues 9404) does not appear to work.

We had a test that basically called pytest.warns(None), which newer
pytest versions don't allow. Instead, now using recwarn to assert that
there is _no_ error.

The suggested
pytest.does_not_warn() (pytest-dev/pytest#9404)
does not appear to work.
@BenjaminBossan BenjaminBossan merged commit dd341d3 into master May 27, 2024
15 checks passed
@BenjaminBossan BenjaminBossan deleted the tst-fix-no-warning-error-new-pytest branch May 27, 2024 14:59
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