pytest
pytest copied to clipboard
Deduplicate pythonwarnings to fix -W duplication
Here is a quick checklist that should be present in PRs.
- [ ] Include documentation when adding new features.
- [ ] Include new tests or update existing tests when applicable.
- [X] Allow maintainers to push and squash when merging my commits. Please uncheck this if you prefer to squash the commits yourself.
What this PR does:
This PR adds deduplication step after the second command-line argument parse in _pytest/config/init.py to ensure that --pythonwarnings (-W) values are unique.
closes #13484
Who can review: @bluetech @nicoddemus @RonnyPfannschmidt