Skip to content

Commit a5bc241

Browse files
committed
per CR: rephrase gibberish test docstring
1 parent aae83a8 commit a5bc241

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/hyperlink/test/test_url.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,10 +1145,13 @@ def test_autorooted(self):
11451145
def test_rooted_with_port_but_no_host(self):
11461146
# type: () -> None
11471147
"""
1148-
URLs which include a netloc separator are inherently rooted, regardless
1149-
of whether they include one because they specify an explicit host or
1150-
port, whether they are parsed or directly constructed, and whether the
1151-
``rooted`` constructor argument is supplied or not.
1148+
URLs which include a ``://`` netloc-separator for any reason are
1149+
inherently rooted, regardless of the value or presence of the
1150+
``rooted`` constructor argument.
1151+
1152+
They may include a netloc-separator because their constructor was
1153+
directly invoked with an explicit host or port, or because they were
1154+
parsed from a string which included the literal ``://`` separator.
11521155
"""
11531156
directly_constructed = URL(scheme='udp', port=4900, rooted=False)
11541157
directly_constructed_implict = URL(scheme='udp', port=4900)

0 commit comments

Comments
 (0)