Skip to content

Commit 749c169

Browse files
committed
spaces at the beginning are being trimmed now
(python/cpython#102153)
1 parent 13d6c0c commit 749c169

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/test_parse_shim.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,12 @@ class ParseResult:
4848
ParseResult(scheme="non-special", netloc=":@test", path="/x"),
4949
),
5050
("http:foo.com", ParseResult(scheme="http", path="foo.com")),
51-
# NOTE(willkg): The wpt tests set the scheme to http becaue that's what
51+
# NOTE(willkg): The wpt tests set the scheme to http because that's what
5252
# the base url is. Since our parser is not using a baseurl, it sets the
53-
# scheme to "". Further, our parser includes spaces at the beginning,
54-
# but I don't see that as being problematic.
55-
("\t :foo.com \n", ParseResult(path=" :foo.com ")),
53+
# scheme to "".
5654
# NOTE(willkg): The wpt tests set the path to "/foo/foo.com" because
5755
# the base url is at "/foo"
58-
(" foo.com ", ParseResult(path=" foo.com ")),
56+
("foo.com ", ParseResult(path="foo.com ")),
5957
("a:\t foo.com", ParseResult(scheme="a", path=" foo.com")),
6058
(
6159
"http://f:21/ b ? d # e ",

0 commit comments

Comments
 (0)