summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urlparse.py
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-12-17 04:48:45 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-12-17 04:48:45 (GMT)
commitdca5b862338034460e060cedee8ba788073e20b3 (patch)
treed8ddee086be76d1b11fb371a778d518a842b0d55 /Lib/test/test_urlparse.py
parentb25a791802a1915097e02bfba04e27a41ae55ebf (diff)
downloadcpython-dca5b862338034460e060cedee8ba788073e20b3.zip
cpython-dca5b862338034460e060cedee8ba788073e20b3.tar.gz
cpython-dca5b862338034460e060cedee8ba788073e20b3.tar.bz2
Fix Issue9721 - urljoin behavior when the relative url starts with ';'
Diffstat (limited to 'Lib/test/test_urlparse.py')
-rw-r--r--Lib/test/test_urlparse.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_urlparse.py b/Lib/test/test_urlparse.py
index 73e4de5..f9f97b1 100644
--- a/Lib/test/test_urlparse.py
+++ b/Lib/test/test_urlparse.py
@@ -327,6 +327,9 @@ class UrlParseTestCase(unittest.TestCase):
#self.checkJoin(RFC3986_BASE, 'http:g','http:g') # strict parser
self.checkJoin(RFC3986_BASE, 'http:g','http://a/b/c/g') #relaxed parser
+ # Test for issue9721
+ self.checkJoin('http://a/b/c/de', ';x','http://a/b/c/;x')
+
def test_urljoins(self):
self.checkJoin(SIMPLE_BASE, 'g:h','g:h')
self.checkJoin(SIMPLE_BASE, 'http:g','http://a/b/c/g')