homepage

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 gregory.p.smith
Recipients ezio.melotti, flox, gregory.p.smith, michael.foord, r.david.murray
Date 2012年08月31日.17:53:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1346435638.68.0.96666510275.issue15810@psf.upfronthosting.co.za>
In-reply-to
Content
When we added this functionality to assertEqual we were *intentionally* conservative on when it would auto-promote to nicer equality comparison functions. It needs to behave exactly as == would in all situations.
>>> (1,2,3) == [1,2,3]
False
We must maintain that behavior in assertEqual.
Tests should use assertSequenceEqual when they want to compare sequences regardless of type because they are testing for something less than strict equality.
History
Date User Action Args
2012年08月31日 17:53:58gregory.p.smithsetrecipients: + gregory.p.smith, ezio.melotti, r.david.murray, michael.foord, flox
2012年08月31日 17:53:58gregory.p.smithsetmessageid: <1346435638.68.0.96666510275.issue15810@psf.upfronthosting.co.za>
2012年08月31日 17:53:37gregory.p.smithlinkissue15810 messages
2012年08月31日 17:53:37gregory.p.smithcreate

AltStyle によって変換されたページ (->オリジナル) /