Don't use deprecated API in example

This commit is contained in:
Floris Bruynooghe 2012-06-11 13:24:30 +01:00
parent 8b3ac3b03a
commit d5078001c9
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ specifies via named environments::
"env(name): mark test to run only on named environment")
def pytest_runtest_setup(item):
if not isinstance(item, item.Function):
if not isinstance(item, pytest.Function):
return
if hasattr(item.obj, 'env'):
envmarker = getattr(item.obj, 'env')