Skip to content

Commit 51bae7d

Browse files
Bump url from 2.5.2 to 2.5.4 (#1585)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 2e4134c commit 51bae7d

File tree

3 files changed

+11
-51
lines changed

3 files changed

+11
-51
lines changed

Cargo.lock

Lines changed: 4 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ serde = { version = "1.0.217", features = ["derive"] }
3939
speedate = "0.15.0"
4040
smallvec = "1.13.2"
4141
ahash = "0.8.10"
42-
url = "2.5.0"
42+
url = "2.5.4"
4343
# idna is already required by url, added here to be explicit
4444
idna = "1.0.3"
4545
base64 = "0.22.1"

tests/validators/test_url.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ def url_test_case_helper(
125125
('http://1...1', Err('invalid IPv4 address')),
126126
('https://[2001:0db8:85a3:0000:0000:8a2e:0370:7334[', Err('invalid IPv6 address')),
127127
('https://[', Err('invalid IPv6 address')),
128-
('https://example com', Err('invalid domain character')),
129-
('http://exam%ple.com', Err('invalid domain character')),
130-
('http:// /', Err('invalid domain character')),
128+
('https://example com', Err('invalid international domain name')),
129+
('http://exam%ple.com', Err('invalid international domain name')),
130+
('http:// /', Err('invalid international domain name')),
131131
('/more', Err('relative URL without a base')),
132132
('http://example.com./foobar', {'str()': 'http://example.com./foobar'}),
133133
# works since we're in lax mode
@@ -172,7 +172,7 @@ def url_test_case_helper(
172172
('https:more', {'str()': 'https://more/', 'host': 'more'}),
173173
('file:///foobar', {'str()': 'file:///foobar', 'host': None, 'unicode_host()': None}),
174174
('file:///:80', {'str()': 'file:///:80'}),
175-
('file://:80', Err('invalid domain character')),
175+
('file://:80', Err('invalid international domain name')),
176176
('foobar://:80', Err('empty host')),
177177
# with bashslashes
178178
('file:\\\\foobar\\more', {'str()': 'file://foobar/more', 'host': 'foobar', 'path': '/more'}),
@@ -383,7 +383,7 @@ def strict_url_validator_fixture():
383383
('https:/more', Err('expected //', 'url_syntax_violation')),
384384
('https:more', Err('expected //', 'url_syntax_violation')),
385385
('file:///foobar', {'str()': 'file:///foobar', 'host': None, 'unicode_host()': None}),
386-
('file://:80', Err('invalid domain character', 'url_parsing')),
386+
('file://:80', Err('invalid international domain name', 'url_parsing')),
387387
('file:/xx', Err('expected // after file:', 'url_syntax_violation')),
388388
('foobar://:80', Err('empty host', 'url_parsing')),
389389
('mongodb+srv://server.example.com/', 'mongodb+srv://server.example.com/'),
@@ -1046,7 +1046,7 @@ def test_zero_schemas():
10461046
(
10471047
'http://127.0.0.1%0d%0aConnection%3a%20keep-alive',
10481048
# dict(scheme='http', host='127.0.0.1%0d%0aconnection%3a%20keep-alive'), CHANGED
1049-
Err('Input should be a valid URL, invalid domain character [type=url_parsing,'),
1049+
Err('Input should be a valid URL, invalid international domain name [type=url_parsing,'),
10501050
),
10511051
# NodeJS unicode -> double dot
10521052
('http://google.com/\uff2e\uff2e/abc', dict(scheme='http', host='google.com', path='/%EF%BC%AE%EF%BC%AE/abc')),

0 commit comments

Comments
 (0)