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 jonozzz
Recipients akuchling, collinwinter, georg.brandl, jimjjewett, jonozzz, mumak
Date 2009-08-18.01:10:11
SpamBayes Score 0.00012518044
Marked as misclassified No
Message-id <1250557814.76.0.115210711633.issue1550273@psf.upfronthosting.co.za>
In-reply-to
Content
I am a little bit concerned with the new __eq__:

    def __eq__(self, other):
        if type(self) is not type(other):
            return False
        return self._tests == other._tests

Why did you use "self._tests == other._tests" instead of "self is other" ?

After I upgraded to 2.6 I started to have some issues with a breadth
first iterator for a TestSuite and I tracked them down to this eq method.
History
Date User Action Args
2009-08-18 01:10:15jonozzzsetrecipients: + jonozzz, akuchling, georg.brandl, collinwinter, jimjjewett, mumak
2009-08-18 01:10:14jonozzzsetmessageid: <1250557814.76.0.115210711633.issue1550273@psf.upfronthosting.co.za>
2009-08-18 01:10:12jonozzzlinkissue1550273 messages
2009-08-18 01:10:11jonozzzcreate