Message169572
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. |
|
Date |
User |
Action |
Args |
2012-08-31 17:53:58 | gregory.p.smith | set | recipients:
+ gregory.p.smith, ezio.melotti, r.david.murray, michael.foord, flox |
2012-08-31 17:53:58 | gregory.p.smith | set | messageid: <1346435638.68.0.96666510275.issue15810@psf.upfronthosting.co.za> |
2012-08-31 17:53:37 | gregory.p.smith | link | issue15810 messages |
2012-08-31 17:53:37 | gregory.p.smith | create | |
|