From 24a190d53c2eb5a77c2944aa758e9961a6515b97 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 28 Dec 2015 12:26:39 -0500 Subject: [PATCH] Fixed previous commit (e3d782fe804a94b2fe7c8a18b95d9fb41fb9119c) on Python 3. --- tests/admin_views/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) )