fixes for py25 in test_skipping
This commit is contained in:
parent
7b54476d71
commit
87eae6213e
|
@ -29,4 +29,5 @@ env/
|
||||||
.cache
|
.cache
|
||||||
.coverage
|
.coverage
|
||||||
.ropeproject
|
.ropeproject
|
||||||
|
.idea
|
||||||
|
|
||||||
|
|
|
@ -108,8 +108,7 @@ class TestEvaluator:
|
||||||
pass
|
pass
|
||||||
""")
|
""")
|
||||||
ev = MarkEvaluator(item, 'skipif')
|
ev = MarkEvaluator(item, 'skipif')
|
||||||
with pytest.raises(pytest.fail.Exception) as exc:
|
exc = pytest.raises(pytest.fail.Exception, "ev.istrue()")
|
||||||
assert ev.istrue()
|
|
||||||
assert """Failed: you need to specify reason=STRING when using booleans as conditions.""" in exc.value.msg
|
assert """Failed: you need to specify reason=STRING when using booleans as conditions.""" in exc.value.msg
|
||||||
|
|
||||||
def test_skipif_class(self, testdir):
|
def test_skipif_class(self, testdir):
|
||||||
|
|
Loading…
Reference in New Issue