mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Refs #27795 -- Removed force_bytes/text() usage in tests.
This commit is contained in:
parent
b38532cd6b
commit
fa75b2cb51
10 changed files with 29 additions and 39 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue