[Pytest-commit] Issue #750: py.test can't xfail tests parametrized with classes (pytest-dev/pytest)

sergey chipiga issues-reply at bitbucket.org
Sat May 23 08:41:04 CEST 2015


New issue 750: py.test can't xfail tests parametrized with classes
https://bitbucket.org/pytest-dev/pytest/issue/750/pytest-cant-xfail-tests-parametrized-with

sergey chipiga:

Code example:

```
import pytest


class A(object): pass

@pytest.mark.parametrize('x', [pytest.mark.xfail(A)])
def test(x):
    assert False
```

The result: ```proba.py::test[x0] FAILED```



Responsible: hpk42


More information about the pytest-commit mailing list