Fix AttributeError: 'function' object has no attribute 'func_name' on Python 3

This commit is contained in:
cgohlke
2011-10-10 14:01:19 -07:00
parent 4336361c34
commit d6a55c8b7b
@@ -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