comparison tests/test-url.py @ 46907:ffd3e823a7e5

urlutil: extract `url` related code from `util` into the new module The new module is well fitting for this new code. And this will be useful to make the gathered code collaborate more later. Differential Revision: https://phab.mercurial-scm.org/D10374
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 12 Apr 2021 03:01:04 +0200
parents 223296268c4e
children 6000f5b25c9b
comparison
equal deleted inserted replaced
46906:33524c46a092 46907:ffd3e823a7e5
273 273
274 274
275 def test_url(): 275 def test_url():
276 """ 276 """
277 >>> from mercurial import error, pycompat 277 >>> from mercurial import error, pycompat
278 >>> from mercurial.util import url 278 >>> from mercurial.utils.urlutil import url
279 >>> from mercurial.utils.stringutil import forcebytestr 279 >>> from mercurial.utils.stringutil import forcebytestr
280 280
281 This tests for edge cases in url.URL's parsing algorithm. Most of 281 This tests for edge cases in url.URL's parsing algorithm. Most of
282 these aren't useful for documentation purposes, so they aren't 282 these aren't useful for documentation purposes, so they aren't
283 part of the class's doc tests. 283 part of the class's doc tests.