Skip to content

Commit aae83a8

Browse files
committed
per CR: add https:/, enumerate the cases
1 parent 4b81bb5 commit aae83a8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/hyperlink/test/test_url.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,11 @@ def test_netloc(self):
951951
url = URL(scheme='https')
952952
self.assertEqual(url.uses_netloc, True)
953953
self.assertEqual(url.to_text(), u'https://')
954+
# scheme, no host, no path, no netloc hack
954955
self.assertEqual(URL.from_text('https:').uses_netloc, False)
956+
# scheme, no host, absolute path, no netloc hack
957+
self.assertEqual(URL.from_text('https:/').uses_netloc, False)
958+
# scheme, no host, no path, netloc hack to indicate :// syntax
955959
self.assertEqual(URL.from_text('https://').uses_netloc, True)
956960

957961
url = URL(scheme='https', uses_netloc=False)

0 commit comments

Comments
 (0)