Author michael.foord
Recipients michael.foord, mnewman
Date 2010-02-18.20:20:33
SpamBayes Score 0.00012474
Marked as misclassified No
Message-id <1266524436.71.0.35575870116.issue7956@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2010-02-18 20:20:36michael.foordsetrecipients: + michael.foord, mnewman
2010-02-18 20:20:36michael.foordsetmessageid: <1266524436.71.0.35575870116.issue7956@psf.upfronthosting.co.za>
2010-02-18 20:20:34michael.foordlinkissue7956 messages
2010-02-18 20:20:33michael.foordcreate