Michael Foord 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':
New submission from Michael Newman :
The attached example unit test file shows that assertDictContainsSubset cannot
handle error messages that need to show integer keys. Below is the output of
the test suite, where "test_mixed_keys_fail" has an error (code mistake), while
"test_text_keys_fail"