This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author michael.foord
Recipients anacrolix, eric.araujo, michael.foord, r.david.murray
Date 2012-03-29.12:20:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1333023629.03.0.569193778351.issue14408@psf.upfronthosting.co.za>
In-reply-to
Content
Because you then have classes that inherit from object calling methods that clearly don't exist (until you subclass them *and* TestCase). It looks weird and also means the classes can't be tested in isolation.

With a class decorator the code would *look* straightforward, and the hidden attribute is just an implementation detail.
History
Date User Action Args
2012-03-29 12:20:29michael.foordsetrecipients: + michael.foord, eric.araujo, r.david.murray, anacrolix
2012-03-29 12:20:29michael.foordsetmessageid: <1333023629.03.0.569193778351.issue14408@psf.upfronthosting.co.za>
2012-03-29 12:20:28michael.foordlinkissue14408 messages
2012-03-29 12:20:28michael.foordcreate