changeset 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 efc739551c17
children 736f64b23a24
files tests/test-hg-parseurl.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
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')