fix flakes issues

This commit is contained in:
holger krekel
2014-06-16 11:27:32 +02:00
parent 65a145e2a7
commit 54c88a6cf3
3 changed files with 4 additions and 22 deletions
+2 -2
View File
@@ -123,8 +123,8 @@ class TestConfigAPI:
parser.addoption("--hello")
""")
config = testdir.parseconfig()
pytest.raises(pytest.skip.Exception,
"config.getvalueorskip('hello')")
with pytest.raises(pytest.skip.Exception):
config.getvalueorskip('hello')
def test_getoption(self, testdir):
config = testdir.parseconfig()