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,