Issue #23703: Fix a regression in urljoin() introduced in 901e4e52b20a.

Patch by Demian Brecht.
This commit is contained in:
Berker Peksag 2015-04-16 02:31:14 +03:00
parent d2bc389e55
commit 20416f7994
3 changed files with 7 additions and 2 deletions

View file

@ -391,6 +391,9 @@ class UrlParseTestCase(unittest.TestCase):
self.checkJoin('http://a/b/c/d/e/', '../../f/g', 'http://a/b/c/f/g')
self.checkJoin('http://a/b/', '../../f/g/', 'http://a/f/g/')
# issue 23703: don't duplicate filename
self.checkJoin('a', 'b', 'b')
def test_RFC2732(self):
str_cases = [
('http://Test.python.org:5432/foo/', 'test.python.org', 5432),