diff --git a/tests/test-hg-parseurl.py b/tests/test-hg-parseurl.py --- a/tests/test-hg-parseurl.py +++ b/tests/test-hg-parseurl.py @@ -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')