1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

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

View File

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