Merge "py3: Replace func.func_name with func.__name__"
This commit is contained in:
commit
6705ef1db0
@ -396,7 +396,7 @@ class Column(html.HTMLElement):
|
||||
except Exception:
|
||||
msg = ("Filter '%(filter)s' failed with data "
|
||||
"'%(data)s' on column '%(col_name)s'")
|
||||
args = {'filter': filter_func.func_name,
|
||||
args = {'filter': filter_func.__name__,
|
||||
'data': data,
|
||||
'col_name': six.text_type(self.verbose_name)}
|
||||
LOG.warning(msg, args)
|
||||
|
@ -91,7 +91,7 @@ def services_required(*req_services):
|
||||
raise ValueError(NOT_TEST_OBJECT_ERROR_MSG)
|
||||
skip_method = _mark_class_skipped
|
||||
else:
|
||||
if not _is_test_method_name(obj.func_name):
|
||||
if not _is_test_method_name(obj.__name__):
|
||||
raise ValueError(NOT_TEST_OBJECT_ERROR_MSG)
|
||||
skip_method = _mark_method_skipped
|
||||
# get available services from configuration
|
||||
@ -125,7 +125,7 @@ def skip_because(**kwargs):
|
||||
raise ValueError(NOT_TEST_OBJECT_ERROR_MSG)
|
||||
skip_method = _mark_class_skipped
|
||||
else:
|
||||
if not _is_test_method_name(obj.func_name):
|
||||
if not _is_test_method_name(obj.__name__):
|
||||
raise ValueError(NOT_TEST_OBJECT_ERROR_MSG)
|
||||
skip_method = _mark_method_skipped
|
||||
bugs = kwargs.get("bugs")
|
||||
|
Loading…
Reference in New Issue
Block a user