mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #25895: Enable WebSocket URL schemes in urllib.parse.urljoin
Patch by Gergely Imreh and Markus Holtermann.
This commit is contained in:
parent
2dc77f0e19
commit
f676748a05
4 changed files with 9 additions and 3 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue