Mercurial > hg-stable
changeset 27281:3b517f2a3989
tests/autodiff.py: use absolute_import
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 06 Dec 2015 22:10:10 -0800 |
parents | 4056fdf71aff |
children | 0bb8c405a7c7 |
files | tests/autodiff.py tests/test-check-py3-compat.t |
diffstat | 2 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/autodiff.py Sun Dec 06 22:07:13 2015 -0800 +++ b/tests/autodiff.py Sun Dec 06 22:10:10 2015 -0800 @@ -1,7 +1,13 @@ # Extension dedicated to test patch.diff() upgrade modes -# -# -from mercurial import cmdutil, scmutil, patch, error + +from __future__ import absolute_import + +from mercurial import ( + cmdutil, + error, + patch, + scmutil, +) cmdtable = {} command = cmdutil.command(cmdtable)
--- a/tests/test-check-py3-compat.t Sun Dec 06 22:07:13 2015 -0800 +++ b/tests/test-check-py3-compat.t Sun Dec 06 22:10:10 2015 -0800 @@ -143,7 +143,6 @@ mercurial/util.py not using absolute_import mercurial/windows.py not using absolute_import setup.py not using absolute_import - tests/autodiff.py not using absolute_import tests/dumbhttp.py not using absolute_import tests/fakedirstatewritetime.py not using absolute_import tests/fakepatchtime.py not using absolute_import