Michael Foord <mich...@voidspace.org.uk> added the comment: 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) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7956> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com