Don't use deprecated API in example
This commit is contained in:
parent
8b3ac3b03a
commit
d5078001c9
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue