diff options
Diffstat (limited to 'django/test')
| -rw-r--r-- | django/test/testcases.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/test/testcases.py b/django/test/testcases.py index d46f672391..e982706784 100644 --- a/django/test/testcases.py +++ b/django/test/testcases.py @@ -327,8 +327,8 @@ class SimpleTestCase(unittest.TestCase): else: content = response.content if not isinstance(text, bytes) or html: - text = force_text(text, encoding=response._charset) - content = content.decode(response._charset) + text = force_text(text, encoding=response.charset) + content = content.decode(response.charset) text_repr = "'%s'" % text else: text_repr = repr(text) |
