Patchwork [7,of,9] test-hg-parseurl: stop direct symbol import of mercurial.hg.parseurl

login
register
mail settings
Submitter Yuya Nishihara
Date April 5, 2016, 4:05 p.m.
Message ID <6d26e09dd29389c41f26.1459872315@mimosa>
Download mbox | patch
Permalink /patch/14377/
State Accepted
Headers show

Comments

Yuya Nishihara - April 5, 2016, 4:05 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1459865932 -32400
#      Tue Apr 05 23:18:52 2016 +0900
# Node ID 6d26e09dd29389c41f261b3f3b164aca6d193568
# Parent  6fa7225a348d27a0047779cee2c55f24435788c8
test-hg-parseurl: stop direct symbol import of mercurial.hg.parseurl

Patch

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')