add testcase for #9334

This commit is contained in:
Pierre-Yves David 2009-11-25 19:07:53 +01:00
parent 80971a4440
commit 89d89c7434

View File

@ -0,0 +1,17 @@
"""Test that valide class attribut doesn't trigger errors"""
__revision__ = 'sponge bob'
class Clazz(object):
"dummy class"
def __init__(self):
self.topic = 5
self._data = 45
def change_type(self, new_class):
"""Change type"""
self.__class__ = new_class
def do_nothing(self):
"I do nothing useful"
return self.topic + 56