From 3718bc5c8d738b392cb2f1c165dd5768b4c47151 Mon Sep 17 00:00:00 2001 From: Mads Jensen Date: Thu, 13 Aug 2020 13:02:38 +0200 Subject: [PATCH] Removed unnecessary urlsplit() call from SimpleTestCase.assertRedirects(). --- django/test/testcases.py | 1 - 1 file changed, 1 deletion(-) diff --git a/django/test/testcases.py b/django/test/testcases.py index 5c9a5262b8..05cce99c3a 100644 --- a/django/test/testcases.py +++ b/django/test/testcases.py @@ -345,7 +345,6 @@ class SimpleTestCase(unittest.TestCase): ) url, status_code = response.redirect_chain[-1] - scheme, netloc, path, query, fragment = urlsplit(url) self.assertEqual( response.status_code, target_status_code,