We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 313a68f commit e1f6d10Copy full SHA for e1f6d10
Lib/test/test_urllib.py
@@ -1533,6 +1533,10 @@ def test_url2pathname_posix(self):
1533
fn = urllib.request.url2pathname
1534
self.assertEqual(fn('/foo/bar'), '/foo/bar')
1535
self.assertRaises(urllib.error.URLError, fn, '//foo/bar')
1536
+ self.assertRaises(urllib.error.URLError, fn, '//localhost:/foo/bar')
1537
+ self.assertRaises(urllib.error.URLError, fn, '//:80/foo/bar')
1538
+ self.assertRaises(urllib.error.URLError, fn, '//:/foo/bar')
1539
+ self.assertRaises(urllib.error.URLError, fn, '//c:80/foo/bar')
1540
self.assertEqual(fn('///foo/bar'), '/foo/bar')
1541
self.assertEqual(fn('////foo/bar'), '//foo/bar')
1542
self.assertEqual(fn('//localhost/foo/bar'), '/foo/bar')
0 commit comments