-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
topic: parametrizerelated to @pytest.mark.parametrizerelated to @pytest.mark.parametrizetype: bugproblem that needs to be addressedproblem that needs to be addressed
Milestone
Description
Originally reported by: sergey chipiga (BitBucket: schipiga, GitHub: schipiga)
Code example:
import pytest
class A(object): pass
@pytest.mark.parametrize('x', [pytest.mark.xfail(A)])
def test(x):
assert False
or
import pytest
def b():pass
@pytest.mark.parametrize('x', [pytest.mark.xfail(b)])
def test(x):
assert False
The result: proba.py::test[x0] FAILED
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
topic: parametrizerelated to @pytest.mark.parametrizerelated to @pytest.mark.parametrizetype: bugproblem that needs to be addressedproblem that needs to be addressed