Merge pull request #50 from cgohlke/patch-7

Fix `AttributeError: 'function' object has no attribute 'func_name'`
This commit is contained in:
Stefan van der Walt
2011-10-10 14:12:10 -07:00
@@ -9,7 +9,7 @@ def append_desc(func, description):
"""Append the test function ``func`` and append
``description`` to its name.
"""
func.description = func.__module__ + '.' + func.func_name + description
func.description = func.__module__ + '.' + func.__name__ + description
return func