[Pytest-commit] commit/pytest: hpk42: fix issue443: fix skip examples to use proper comparison. Thanks Alex
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Thu Apr 3 22:26:18 CEST 2014
1 new commit in pytest:
https://bitbucket.org/hpk42/pytest/commits/2c5cab474bb7/
Changeset: 2c5cab474bb7
User: hpk42
Date: 2014-04-03 22:26:10
Summary: fix issue443: fix skip examples to use proper comparison. Thanks Alex
Groenholm.
Affected #: 2 files
diff -r b5ef679ae0950d3baed67c96cd3cd13589e2e98b -r 2c5cab474bb76867fb6ac0f32b4b9276aa5696c7 CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -55,6 +55,9 @@
- 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
-----------------------------------
diff -r b5ef679ae0950d3baed67c96cd3cd13589e2e98b -r 2c5cab474bb76867fb6ac0f32b4b9276aa5696c7 doc/en/skipping.txt
--- a/doc/en/skipping.txt
+++ b/doc/en/skipping.txt
@@ -35,7 +35,7 @@
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 @@
# 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():
Repository URL: https://bitbucket.org/hpk42/pytest/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the pytest-commit
mailing list