We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b81bb5 commit aae83a8Copy full SHA for aae83a8
1 file changed
src/hyperlink/test/test_url.py
@@ -951,7 +951,11 @@ def test_netloc(self):
951
url = URL(scheme='https')
952
self.assertEqual(url.uses_netloc, True)
953
self.assertEqual(url.to_text(), u'https://')
954
+ # scheme, no host, no path, no netloc hack
955
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
959
self.assertEqual(URL.from_text('https://').uses_netloc, True)
960
961
url = URL(scheme='https', uses_netloc=False)
0 commit comments