Message99526
Thanks for reporting this.
I can fix this particular error easily by repr'ing the keys. In the process I've found another fun way of killing this assert method:
one = ''.join(chr(i) for i in range(255))
two = u'\uFFFD'
first = {'foo': one}
second = {'foo': two}
self.assertDictContainsSubset(first, second)
File "/Users/michael/Dev/Packages/python-trunk/Lib/unittest/case.py", line 728, in assertDictContainsSubset
(key, value, actual[key]))
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 143: ordinal not in range(128) |
|
Date |
User |
Action |
Args |
2010-02-18 20:20:36 | michael.foord | set | recipients:
+ michael.foord, mnewman |
2010-02-18 20:20:36 | michael.foord | set | messageid: <1266524436.71.0.35575870116.issue7956@psf.upfronthosting.co.za> |
2010-02-18 20:20:34 | michael.foord | link | issue7956 messages |
2010-02-18 20:20:33 | michael.foord | create | |
|