Test is skipped without a skip mark added to the test #13079
Labels
invalid
topic: marks
related to marks, either the general marks or builtin
type: question
general question, might be closed after 2 weeks of inactivity
pip list
from the virtual environment you are usingTree of the project:
I have 2 test classes that are based on the same class (they use
Template Method
pattern).When I add a skip mark to only one test function from the
pytest_generate_test
hook, both tests are skipped.test.py
contentsconftest.py
contents:Output of the run:
If you take a look at the output, despite
metafunc
object is different for each test class, the underlyingfunction
object is the same object in both cases (id =0x7fb9d4e404a0
).If we take a look at plain classes in python, in similar structure they have different ids:
Environment:
System:
Ubuntu 24.04 in wsl2 under Windows 11
Also reproduces in original Ubuntu 24.04
Python & packages:
The text was updated successfully, but these errors were encountered: