test2.py

download
def myfun():
    """A function like any other."""
    pass

# No error
print myfun.__name__

# Error E1101
myfun.__name__ += '_test'