summaryrefslogtreecommitdiff
path: root/tests/admin_views/tests.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-12-28 12:26:39 -0500
committerTim Graham <timograham@gmail.com>2015-12-28 12:26:39 -0500
commit24a190d53c2eb5a77c2944aa758e9961a6515b97 (patch)
tree6d7b5d0ba8f214c1adbefc3dccff8a94d0723954 /tests/admin_views/tests.py
parente3d782fe804a94b2fe7c8a18b95d9fb41fb9119c (diff)
Fixed previous commit (e3d782fe804a94b2fe7c8a18b95d9fb41fb9119c) on Python 3.
Diffstat (limited to 'tests/admin_views/tests.py')
-rw-r--r--tests/admin_views/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py
index ac773f8177..04c8135fee 100644
--- a/tests/admin_views/tests.py
+++ b/tests/admin_views/tests.py
@@ -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)
)