Mercurial > hg-stable
changeset 28745:8a23f88131c3
py3: use absolute_import in test-hg-parseurl.py
author | Robert Stanca <robert.stanca7@gmail.com> |
---|---|
date | Mon, 04 Apr 2016 00:27:04 +0300 |
parents | 6537e14301ef |
children | de5808c57f58 |
files | tests/test-check-py3-compat.t tests/test-hg-parseurl.py |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-check-py3-compat.t Mon Apr 04 00:17:11 2016 +0300 +++ b/tests/test-check-py3-compat.t Mon Apr 04 00:27:04 2016 +0300 @@ -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
--- a/tests/test-hg-parseurl.py Mon Apr 04 00:17:11 2016 +0300 +++ b/tests/test-hg-parseurl.py Mon Apr 04 00:27:04 2016 +0300 @@ -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)