changeset 570:964a9744310c pytest2

docstring moved to inside of function
author pkumar <contactprashantat@gmail.com>
date Wed, 01 Jun 2011 19:16:42 +0530
parents 0d19b3f6d2fc
children 957d41c088db
files MoinMoin/conftest.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/conftest.py	Wed Jun 01 17:16:16 2011 +0530
+++ b/MoinMoin/conftest.py	Wed Jun 01 19:16:42 2011 +0530
@@ -89,8 +89,8 @@
     if collector.funcnamefilter(name) and inspect.isfunction(obj):
         return MoinTestFunction(name, parent = collector)
 
-"""hook to intercept generators and run them as a single test items"""       
 def pytest_pyfunc_call(pyfuncitem):
+    """hook to intercept generators and run them as a single test items"""       
     if inspect.isgeneratorfunction(pyfuncitem.obj):
         for item in pyfuncitem.obj():
             kwarg = item[1:]