summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urlparse.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-09-16 11:43:58 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-09-16 11:43:58 (GMT)
commitf676748a052cacdf9963aa840bfa6107275d163e (patch)
treed3e9b677f728ad378a8d16c8f8155af461ac543a /Lib/test/test_urlparse.py
parent2dc77f0e197b9ca9710d7ae20ff13fe2bea541c4 (diff)
downloadcpython-f676748a052cacdf9963aa840bfa6107275d163e.zip
cpython-f676748a052cacdf9963aa840bfa6107275d163e.tar.gz
cpython-f676748a052cacdf9963aa840bfa6107275d163e.tar.bz2
Issue #25895: Enable WebSocket URL schemes in urllib.parse.urljoin
Patch by Gergely Imreh and Markus Holtermann.
Diffstat (limited to 'Lib/test/test_urlparse.py')
-rw-r--r--Lib/test/test_urlparse.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_urlparse.py b/Lib/test/test_urlparse.py
index 829997f..71abc14 100644
--- a/Lib/test/test_urlparse.py
+++ b/Lib/test/test_urlparse.py
@@ -425,6 +425,8 @@ class UrlParseTestCase(unittest.TestCase):
self.checkJoin('', 'http://a/./g', 'http://a/./g')
self.checkJoin('svn://pathtorepo/dir1', 'dir2', 'svn://pathtorepo/dir2')
self.checkJoin('svn+ssh://pathtorepo/dir1', 'dir2', 'svn+ssh://pathtorepo/dir2')
+ self.checkJoin('ws://a/b','g','ws://a/g')
+ self.checkJoin('wss://a/b','g','wss://a/g')
# XXX: The following tests are no longer compatible with RFC3986
# self.checkJoin(SIMPLE_BASE, '../../../g','http://a/../g')