Robert Collins added the comment: They aren't descriptors? They certainly aren't normal methods: >>> class foo(object): ... def __str__(self): return "foo" ... >>> f = foo() >>> f.__str__ = lambda: "bar" >>> str(f) 'foo'
I *thought* the mechanism by which they can only be replaced by altering the class *was* descriptors, but I gladly seek better info! _testMethodName is overloaded though: its both 'what is the test method' and 'part of the description or id of the test', so resetting it would be - at best - risky when only changing the description or id. ---------- type: enhancement -> _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16288> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com