Fixed previous commit (e3d782fe80) on Python 3.

This commit is contained in:
Tim Graham 2015-12-28 12:26:39 -05:00
parent e3d782fe80
commit 24a190d53c
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ class AdminViewBasicTestCase(TestCase):
self.assertLess( self.assertLess(
response.content.index(force_bytes(text1)), response.content.index(force_bytes(text1)),
response.content.index(force_bytes(text2)), response.content.index(force_bytes(text2)),
(failing_msg or '') + '\nResponse:\n' + response.content (failing_msg or '') + '\nResponse:\n' + response.content.decode(response.charset)
) )