diff --git a/tests/requests/tests.py b/tests/requests/tests.py index 9df81230a0e..e1c25a2f6d1 100644 --- a/tests/requests/tests.py +++ b/tests/requests/tests.py @@ -797,8 +797,11 @@ class BuildAbsoluteURITests(SimpleTestCase): ('http://example.com/?foo=bar', 'http://example.com/?foo=bar'), # A schema-relative URL ('//example.com/?foo=bar', 'http://example.com/?foo=bar'), - # A relative URL + # Relative URLs ('/foo/bar/', 'http://testserver/foo/bar/'), + ('/foo/./bar/', 'http://testserver/foo/bar/'), + ('/foo/../bar/', 'http://testserver/bar/'), + ('///foo/bar/', 'http://testserver/foo/bar/'), ) for location, expected_url in tests: with self.subTest(location=location):