From 7f0946298ea2e2b70a1981a3898cf4faf052ef63 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Mon, 18 Nov 2019 06:31:42 -0800 Subject: Replaced encode() usage with bytes literals. --- tests/auth_tests/test_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auth_tests') diff --git a/tests/auth_tests/test_views.py b/tests/auth_tests/test_views.py index 42acafd26d..521013d18d 100644 --- a/tests/auth_tests/test_views.py +++ b/tests/auth_tests/test_views.py @@ -444,7 +444,7 @@ class UUIDUserPasswordResetTest(CustomUserPasswordResetTest): def test_confirm_invalid_uuid(self): """A uidb64 that decodes to a non-UUID doesn't crash.""" _, path = self._test_confirm_start() - invalid_uidb64 = urlsafe_base64_encode('INVALID_UUID'.encode()) + invalid_uidb64 = urlsafe_base64_encode(b'INVALID_UUID') first, _uuidb64_, second = path.strip('/').split('/') response = self.client.get('/' + '/'.join((first, invalid_uidb64, second)) + '/') self.assertContains(response, 'The password reset link was invalid') -- cgit v1.3