Remove unnecessary coerce to str() in test_decorators.py (#6637)

Was added only for Python 2 compatibility.
This commit is contained in:
Jon Dufresne 2019-04-30 22:45:16 -07:00 committed by Carlton Gibson
parent ff86f09f74
commit b4e80ac721

View File

@ -202,8 +202,7 @@ class ActionDecoratorTestCase(TestCase):
def method():
raise NotImplementedError
# Python 2.x compatibility - cast __name__ to str
method.__name__ = str(name)
method.__name__ = name
getattr(test_action.mapping, name)(method)
# ensure the mapping returns the correct method name