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 michael.foord
Recipients michael.foord, mnewman
Date 2010-02-18.20:20:33
SpamBayes Score 0.00012474
Marked as misclassified No
Message-id <>
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/", 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:36michael.foordsetrecipients: + michael.foord, mnewman
2010-02-18 20:20:36michael.foordsetmessageid: <>
2010-02-18 20:20:34michael.foordlinkissue7956 messages
2010-02-18 20:20:33michael.foordcreate