[py-svn] commit/pytest: flub: Don't use deprecated API in example

Bitbucket commits-noreply at bitbucket.org
Mon Jun 11 14:24:53 CEST 2012


1 new commit in pytest:


https://bitbucket.org/hpk42/pytest/changeset/3bdb19989d5e/
changeset:   3bdb19989d5e
user:        flub
date:        2012-06-11 14:24:30
summary:     Don't use deprecated API in example
affected #:  1 file

diff -r 5d0b5e72789428b1a481f0450779616f61eaba31 -r 3bdb19989d5e3244730305cd570963b94c7599fe doc/en/example/markers.txt
--- a/doc/en/example/markers.txt
+++ b/doc/en/example/markers.txt
@@ -201,7 +201,7 @@
             "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')

Repository URL: https://bitbucket.org/hpk42/pytest/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the pytest-commit mailing list