Message96410
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. |
|
Date |
User |
Action |
Args |
2009-12-14 22:00:14 | exarkun | set | recipients:
+ exarkun, pitrou, michael.foord |
2009-12-14 22:00:14 | exarkun | set | messageid: <1260828014.14.0.112531178593.issue7502@psf.upfronthosting.co.za> |
2009-12-14 22:00:12 | exarkun | link | issue7502 messages |
2009-12-14 22:00:12 | exarkun | create | |
|