Skip to content

Commit

Permalink
Merge pull request #8171 from ckan/fix-test-on-py3.11
Browse files Browse the repository at this point in the history
Adapt test for Python 3.11 support
  • Loading branch information
smotornyuk committed Apr 17, 2024
2 parents 95da08f + 3b74c0b commit 4da81ee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ckan/tests/lib/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,8 +705,11 @@ def test_sanitize_url():
u'http://example.com/some-path/to_a/file.jpg'
) == u'http://example.com/some-path/to_a/file.jpg'
assert h.sanitize_url(
u'sh+eme://[net:loc]:12345/a/path?a=b&c=d'
) == u'sh+eme://[net:loc]:12345/a/path?a=b&c=d'
u'sh+eme://host:12345/a/path?a=b&c=d'
) == u'sh+eme://host:12345/a/path?a=b&c=d'
assert h.sanitize_url(
u'sh+eme://[2001:db8:85a3:8d3:1319:8a2e:370:7348]:12345/a/path?a=b&c=d'
) == u'sh+eme://[2001:db8:85a3:8d3:1319:8a2e:370:7348]:12345/a/path?a=b&c=d'
assert h.sanitize_url(
u'http://éxàmple.com/some:path/to+a/fil[e].jpg'
) == u'http://éxàmple.com/some%3Apath/to%2Ba/fil%5Be%5D.jpg'
Expand Down

0 comments on commit 4da81ee

Please sign in to comment.