Author rbcollins
Recipients chris.jerdonek, eric.araujo, michael.foord, mikehoy, r.david.murray, rbcollins
Date 2012-10-21.18:24:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1350843867.63.0.560864506697.issue16288@psf.upfronthosting.co.za>
In-reply-to
Content
testscenarios copies the tests, it doesn't call the constructor for the class; this makes things a lot simpler than trying to reconstruct whatever state the object may have from scratch again.

As for str(test) and test.id() being different - well sure they are today, but I don't know that the str(test) format is /useful/ today, as its not a particularly good str() anyhow. It doesn't identify that its a test instance even. 

This suggests two alternatives to me:
 - decide that we want three things: id, friendly-id and shortDescription, and have three non-magic methods, which TextTestRunner can call depending on what the user wants to see.
 - decide we want two things, id and shortDescription, and TextTestRunner can combine these things to meet the users request. (e.g. id + ' ' + shortDescription)

And separately, as the __str__ isn't particularly good anyhow, perhaps we should take the opportunity to think about what we want from it and adjust it.
History
Date User Action Args
2012-10-21 18:24:27rbcollinssetrecipients: + rbcollins, eric.araujo, r.david.murray, michael.foord, chris.jerdonek, mikehoy
2012-10-21 18:24:27rbcollinssetmessageid: <1350843867.63.0.560864506697.issue16288@psf.upfronthosting.co.za>
2012-10-21 18:24:27rbcollinslinkissue16288 messages
2012-10-21 18:24:27rbcollinscreate