From d6a55c8b7b9481b59b4e60c60deacf7f60d0ba7d Mon Sep 17 00:00:00 2001 From: cgohlke Date: Mon, 10 Oct 2011 14:01:19 -0700 Subject: [PATCH] Fix `AttributeError: 'function' object has no attribute 'func_name'` on Python 3 --- scikits/image/transform/tests/test_hough_transform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scikits/image/transform/tests/test_hough_transform.py b/scikits/image/transform/tests/test_hough_transform.py index 13593150..52c70d7a 100644 --- a/scikits/image/transform/tests/test_hough_transform.py +++ b/scikits/image/transform/tests/test_hough_transform.py @@ -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