Message255149
assertEqual *does* do type checking and it's strict that it will only resort to the "type specific" assert checks if both types are of the same type. In the general case it's impossible to know whether comparing a subclass with the type specific check is the right thing to do - so unittest doesn't guess.
As you have a simple workaround ( dict(foo) ) I'm closing this. |
|
Date |
User |
Action |
Args |
2015-11-23 11:40:49 | michael.foord | set | recipients:
+ michael.foord, rhettinger, rbcollins, ezio.melotti, Nathan Herring |
2015-11-23 11:40:48 | michael.foord | set | messageid: <1448278848.92.0.789025622452.issue25669@psf.upfronthosting.co.za> |
2015-11-23 11:40:48 | michael.foord | link | issue25669 messages |
2015-11-23 11:40:48 | michael.foord | create | |
|