Mercurial > public > mercurial-scm > hg-stable
diff tests/test-hg-parseurl.py @ 28806:d26c4af27978
test-hg-parseurl: stop direct symbol import of mercurial.hg.parseurl
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 05 Apr 2016 23:18:52 +0900 |
parents | de5808c57f58 |
children | 11d128a14ec0 |
line wrap: on
line diff
--- a/tests/test-hg-parseurl.py Tue Apr 05 23:17:43 2016 +0900 +++ b/tests/test-hg-parseurl.py Tue Apr 05 23:18:52 2016 +0900 @@ -1,10 +1,11 @@ from __future__ import absolute_import, print_function -from mercurial.hg import ( - parseurl, + +from mercurial import ( + hg, ) def testparse(url, branch=[]): - print('%s, branches: %r' % parseurl(url, branch)) + print('%s, branches: %r' % hg.parseurl(url, branch)) testparse('http://example.com/no/anchor') testparse('http://example.com/an/anchor#foo')