py3: use absolute_import in test-context.py
authorRobert Stanca <robert.stanca7@gmail.com>
Sun, 03 Apr 2016 06:20:17 +0300
changeset 28735 5edde05ff58e
parent 28734 4e51f9d1683e
child 28736 403b0a7ab410
py3: use absolute_import in test-context.py
tests/test-check-py3-compat.t
tests/test-context.py
--- a/tests/test-check-py3-compat.t	Sun Apr 03 06:16:17 2016 +0300
+++ b/tests/test-check-py3-compat.t	Sun Apr 03 06:20:17 2016 +0300
@@ -53,7 +53,6 @@
   tests/svn-safe-append.py not using absolute_import
   tests/svnxml.py not using absolute_import
   tests/test-atomictempfile.py not using absolute_import
-  tests/test-context.py not using absolute_import
   tests/test-context.py requires print_function
   tests/test-demandimport.py not using absolute_import
   tests/test-demandimport.py requires print_function
--- a/tests/test-context.py	Sun Apr 03 06:16:17 2016 +0300
+++ b/tests/test-context.py	Sun Apr 03 06:20:17 2016 +0300
@@ -1,5 +1,11 @@
+from __future__ import absolute_import
 import os
-from mercurial import hg, ui, context, encoding
+from mercurial import (
+    hg,
+    ui,
+    context,
+    encoding,
+)
 
 u = ui.ui()