diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2015-04-15 23:31:14 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2015-04-15 23:31:14 (GMT) |
commit | 20416f7994d1efbca1158e549ec8ece5ac4dbb67 (patch) | |
tree | eefd703fc863c220964e3a81d0136ba68c0579ff /Lib/test/test_urlparse.py | |
parent | d2bc389e550464e3f71ec60071880335e8f9b6c6 (diff) | |
download | cpython-20416f7994d1efbca1158e549ec8ece5ac4dbb67.zip cpython-20416f7994d1efbca1158e549ec8ece5ac4dbb67.tar.gz cpython-20416f7994d1efbca1158e549ec8ece5ac4dbb67.tar.bz2 |
Issue #23703: Fix a regression in urljoin() introduced in 901e4e52b20a.
Patch by Demian Brecht.
Diffstat (limited to 'Lib/test/test_urlparse.py')
-rw-r--r-- | Lib/test/test_urlparse.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_urlparse.py b/Lib/test/test_urlparse.py index 5a3aa33..156ccf5 100644 --- a/Lib/test/test_urlparse.py +++ b/Lib/test/test_urlparse.py @@ -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), |