summaryrefslogtreecommitdiff
path: root/tests/auth_tests/test_views.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-02-07 14:20:04 -0500
committerGitHub <noreply@github.com>2018-02-07 14:20:04 -0500
commitfa75b2cb512409116b6f1b5229d6f99074d8e452 (patch)
tree683c83b6fb4966f10a9f2abba4ebb7cb99cad547 /tests/auth_tests/test_views.py
parentb38532cd6be6ea91b47fd93e9cbaae4aa10015fc (diff)
Refs #27795 -- Removed force_bytes/text() usage in tests.
Diffstat (limited to 'tests/auth_tests/test_views.py')
-rw-r--r--tests/auth_tests/test_views.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auth_tests/test_views.py b/tests/auth_tests/test_views.py
index 3af8de3767..e016cd07ff 100644
--- a/tests/auth_tests/test_views.py
+++ b/tests/auth_tests/test_views.py
@@ -28,7 +28,6 @@ from django.middleware.csrf import CsrfViewMiddleware, get_token
from django.test import Client, TestCase, override_settings
from django.test.utils import patch_logger
from django.urls import NoReverseMatch, reverse, reverse_lazy
-from django.utils.encoding import force_text
from django.utils.translation import LANGUAGE_SESSION_KEY
from .client import PasswordResetConfirmClient
@@ -1150,7 +1149,7 @@ class ChangelistTests(AuthViewsTestCase):
# Test the link inside password field help_text.
rel_link = re.search(
r'you can change the password using <a href="([^"]*)">this form</a>',
- force_text(response.content)
+ response.content.decode()
).groups()[0]
self.assertEqual(
os.path.normpath(user_change_url + rel_link),