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 exarkun
Recipients exarkun, michael.foord, pitrou
Date 2009-12-14.22:00:12
SpamBayes Score 1.0706147e-07
Marked as misclassified No
Message-id <1260828014.14.0.112531178593.issue7502@psf.upfronthosting.co.za>
In-reply-to
Content
Or an interaction between TestCase and DocTestCase.  TestCase.__eq__ and
TestCase.__hash__ are both implemented in terms of the _testMethodName
attribute.  It looks like this is *always* "runTest" for a DocTestCase
instance.  It probably doesn't make sense to set a _testMethodName for
DocTestCase instances (maybe it doesn't even make sense for DocTestCase
to subclass TestCase, in fact).  So perhaps overriding comparison and
hashing to use the attributes that do make sense (_dt_test, maybe, I
don't know) would make sense.
History
Date User Action Args
2009-12-14 22:00:14exarkunsetrecipients: + exarkun, pitrou, michael.foord
2009-12-14 22:00:14exarkunsetmessageid: <1260828014.14.0.112531178593.issue7502@psf.upfronthosting.co.za>
2009-12-14 22:00:12exarkunlinkissue7502 messages
2009-12-14 22:00:12exarkuncreate