Merge pull request #2 from bubenkoff/py25-test_skipping_faild

fixes for py25 in test_skipping
This commit is contained in:
holger krekel 2013-07-11 02:30:01 -07:00
commit 52838a7834
2 changed files with 2 additions and 2 deletions

1
.gitignore vendored
View File

@ -29,4 +29,5 @@ env/
.cache
.coverage
.ropeproject
.idea

View File

@ -108,8 +108,7 @@ class TestEvaluator:
pass
""")
ev = MarkEvaluator(item, 'skipif')
with pytest.raises(pytest.fail.Exception) as exc:
assert ev.istrue()
exc = pytest.raises(pytest.fail.Exception, "ev.istrue()")
assert """Failed: you need to specify reason=STRING when using booleans as conditions.""" in exc.value.msg
def test_skipif_class(self, testdir):