# HG changeset patch # User Robert Stanca # Date 2016-04-03 21:27:04 # Node ID 8a23f88131c355ab94a4b09c301fe8160bdb8a69 # Parent 6537e14301ef291190ecde83346c6f0c290a8e05 py3: use absolute_import in test-hg-parseurl.py diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t +++ b/tests/test-check-py3-compat.t @@ -56,7 +56,6 @@ tests/test-demandimport.py not using absolute_import tests/test-demandimport.py requires print_function tests/test-doctest.py not using absolute_import - tests/test-hg-parseurl.py not using absolute_import tests/test-hg-parseurl.py requires print_function tests/test-hgweb-auth.py not using absolute_import tests/test-hgweb-auth.py requires print_function 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,4 +1,7 @@ -from mercurial.hg import parseurl +from __future__ import absolute_import +from mercurial.hg import ( + parseurl, +) def testparse(url, branch=[]): print '%s, branches: %r' % parseurl(url, branch)