From 87eae6213e1bab4082e75cac268ac10b42efbf13 Mon Sep 17 00:00:00 2001 From: Anatoly Bubenkov Date: Thu, 11 Jul 2013 11:15:31 +0200 Subject: [PATCH] fixes for py25 in test_skipping --- .gitignore | 1 + testing/test_skipping.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c42cec477..79e1c6765 100644 --- a/.gitignore +++ b/.gitignore @@ -29,4 +29,5 @@ env/ .cache .coverage .ropeproject +.idea diff --git a/testing/test_skipping.py b/testing/test_skipping.py index 22d9fafec..a3074b191 100644 --- a/testing/test_skipping.py +++ b/testing/test_skipping.py @@ -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):