tests/autodiff.py: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Sun, 06 Dec 2015 22:10:10 -0800
changeset 27281 3b517f2a3989
parent 27280 4056fdf71aff
child 27282 0bb8c405a7c7
tests/autodiff.py: use absolute_import
tests/autodiff.py
tests/test-check-py3-compat.t
--- 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