From d5078001c9f57b86b26b047386ffcc807d36c3df Mon Sep 17 00:00:00 2001 From: Floris Bruynooghe Date: Mon, 11 Jun 2012 13:24:30 +0100 Subject: [PATCH] Don't use deprecated API in example --- doc/en/example/markers.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/en/example/markers.txt b/doc/en/example/markers.txt index 1d87f9617..3fef77e52 100644 --- a/doc/en/example/markers.txt +++ b/doc/en/example/markers.txt @@ -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')