pytest-dev / pytest-dev/pytest
when warnings error - ensure the location is printed
Open
Nobody has claimed this yet.
type: enhancement
type: feature-branch
type: proposal
- Dominant language
- Python
- Stars
- 14.5k
- Forks
- 3.4k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 35
Description
based on https://github.com/pytest-dev/pytest-xdist/issues/406
the actual error was hidden since a warning as a exception will not carry on the provided location since it seems assumed that the warning happens soundly in line (which is arguably a python shortcoming)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the warning-as-error case described in the issue and read the linked pytest-xdist issue 406 for the hidden-error context. Trace how pytest converts warnings into exceptions and verify that the warning's location is preserved and printed when the fix is complete.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100