remove pytest.setup usage

This commit is contained in:
holger krekel
2012-10-08 08:34:21 +02:00
parent 30b10a6950
commit d630d02c5b
6 changed files with 33 additions and 39 deletions

View File

@@ -28,7 +28,7 @@ def test_setup_func_with_setup_decorator():
from _pytest.nose import call_optional
l = []
class A:
@pytest.setup()
@pytest.fixture( autoactive=True)
def f(self):
l.append(1)
call_optional(A(), "f")