mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-01 04:16:56 +08:00
Fix AttributeError: 'function' object has no attribute 'func_name' on Python 3
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user