Author rbcollins
Recipients chris.jerdonek, michael.foord, r.david.murray, rbcollins
Date 2012-10-20.02:18:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1350699519.13.0.00161154283041.issue16288@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-10-20 02:18:39rbcollinssetrecipients: + rbcollins, r.david.murray, michael.foord, chris.jerdonek
2012-10-20 02:18:39rbcollinssetmessageid: <1350699519.13.0.00161154283041.issue16288@psf.upfronthosting.co.za>
2012-10-20 02:18:39rbcollinslinkissue16288 messages
2012-10-20 02:18:38rbcollinscreate