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

Resolve pytest warnings about the deprecated --strict flag #2862

Closed

Conversation

Zalathar
Copy link
Contributor

As of pytest 6.2, --strict is a deprecated alias for --strict-markers, which was renamed to reflect the flag's actual narrow behaviour.

https://docs.pytest.org/en/stable/deprecations.html#the-strict-command-line-option

This gets rid of an annoying warning that would appear when running pytest, making it harder to view the actual test results.

As of pytest 6.2, --strict is a deprecated alias for --strict-markers,
which was renamed to reflect the flag's actual narrow behaviour.

https://docs.pytest.org/en/stable/deprecations.html#the-strict-command-line-option
@Zalathar Zalathar added the tests/build/CI about testing or deployment *of* Hypothesis label Feb 20, 2021
@Zalathar
Copy link
Contributor Author

(I basically just did a search for --strict[^-] in all files, so hopefully this caught them all.)

@Zalathar
Copy link
Contributor Author

See also:

I do think we should try to enable a strict-everything flag when it exists, but for now there's no benefit in having warnings all over the place.

@Zalathar
Copy link
Contributor Author

Oh, it looks like this (understandably) fails in check-pytest43. I'll have to see if I can do something about that.

@Zalathar
Copy link
Contributor Author

Closing this for now in favour of #2863.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests/build/CI about testing or deployment *of* Hypothesis
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant