# HG changeset patch # User Gregory Szorc # Date 2015-12-07 06:10:10 # Node ID 3b517f2a3989022f278993b2056d4a0fb4d60b1c # Parent 4056fdf71affc8921ddd1b49196bb2c3f7d29b32 tests/autodiff.py: use absolute_import diff --git a/tests/autodiff.py b/tests/autodiff.py --- a/tests/autodiff.py +++ b/tests/autodiff.py @@ -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) 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 @@ -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