mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue13104 - Fix urllib.request.thishost() utility function.
This commit is contained in:
parent
ad87fa6719
commit
1b7da519b0
2 changed files with 5 additions and 1 deletions
|
@ -1058,6 +1058,10 @@ class Utility_Tests(unittest.TestCase):
|
|||
self.assertEqual(('user', 'a\vb'),urllib.parse.splitpasswd('user:a\vb'))
|
||||
self.assertEqual(('user', 'a:b'),urllib.parse.splitpasswd('user:a:b'))
|
||||
|
||||
def test_thishost(self):
|
||||
"""Test the urllib.request.thishost utility function returns a tuple"""
|
||||
self.assertIsInstance(urllib.request.thishost(), tuple)
|
||||
|
||||
|
||||
class URLopener_Tests(unittest.TestCase):
|
||||
"""Testcase to test the open method of URLopener class."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue