[Pytest-commit] Issue #443: Misleading documentation on the "skipped/xfail" page (hpk42/pytest)

Alex Grönholm issues-reply at bitbucket.org
Sun Feb 2 11:29:50 CET 2014


New issue 443: Misleading documentation on the "skipped/xfail" page
https://bitbucket.org/hpk42/pytest/issue/443/misleading-documentation-on-the-skipped

Alex Grönholm:

The test in the example code is incorrect:

```
#!python

@pytest.mark.skipif(sys.version_info >= (3,3),
                    reason="requires python3.3")
```
The test should obviously be sys.version_info < (3, 3) if at least Python 3.3 is required.
The test in the next example is also incorrect, for the same reason:

```
#!python

minversion = pytest.mark.skipif(mymodule.__versioninfo__ >= (1,1),
                                reason="at least mymodule-1.1 required")
```





More information about the pytest-commit mailing list