Remove support for 'code as string' from pytest.raises and pytest.warns

This commit is contained in:
Bruno Oliveira
2019-06-30 11:40:24 -03:00
parent be91c4d932
commit 279733a30b
8 changed files with 58 additions and 99 deletions

View File

@@ -25,7 +25,8 @@ class TestMark:
def test_pytest_mark_notcallable(self):
mark = Mark()
pytest.raises((AttributeError, TypeError), mark)
with pytest.raises(TypeError):
mark()
def test_mark_with_param(self):
def some_function(abc):