fix issue443: fix skip examples to use proper comparison. Thanks Alex
Groenholm.
This commit is contained in:
parent
b0837693d0
commit
6ff0fdb977
|
@ -55,6 +55,9 @@ NEXT (2.6)
|
|||
- work a bit harder to break reference cycles when catching exceptions.
|
||||
Thanks Jurko Gospodnetic.
|
||||
|
||||
- fix issue443: fix skip examples to use proper comparison. Thanks Alex
|
||||
Groenholm.
|
||||
|
||||
|
||||
2.5.2
|
||||
-----------------------------------
|
||||
|
|
|
@ -35,7 +35,7 @@ Here is an example of marking a test function to be skipped
|
|||
when run on a Python3.3 interpreter::
|
||||
|
||||
import sys
|
||||
@pytest.mark.skipif(sys.version_info >= (3,3),
|
||||
@pytest.mark.skipif(sys.version_info < (3,3),
|
||||
reason="requires python3.3")
|
||||
def test_function():
|
||||
...
|
||||
|
@ -51,7 +51,7 @@ You can share skipif markers between modules. Consider this test module::
|
|||
# content of test_mymodule.py
|
||||
|
||||
import mymodule
|
||||
minversion = pytest.mark.skipif(mymodule.__versioninfo__ >= (1,1),
|
||||
minversion = pytest.mark.skipif(mymodule.__versioninfo__ < (1,1),
|
||||
reason="at least mymodule-1.1 required")
|
||||
@minversion
|
||||
def test_function():
|
||||
|
|
Loading…
Reference in New Issue