pytest-dev / pytest-dev/pytest
Disable assertion rewriting of external modules for `python_files = *.py`
Open
Nobody has claimed this yet.
topic: collection
topic: rewrite
type: bug
- Dominant language
- Python
- Stars
- 14.5k
- Forks
- 3.4k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 35
Description
https://github.com/pytest-dev/pytest/issues/10845#issuecomment-2802869441
i think that part deserves a new issue that specifically handles that part
cc @RonnyPfannschmidt @The-Compiler
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 reading the linked issue and comment, then trace pytest's handling of assertion rewriting when python_files = *.py is configured. Identify the relevant tests or entry points before deciding the intended boundary, and consider the work done when external modules are no longer rewritten without changing rewriting for intended test modules.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100