pytest-dev / pytest-dev/pytest

Disable assertion rewriting of external modules for `python_files = *.py`

Open
#13,403 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.