py3: use absolute_import in test-hgweb-auth.py
authorRobert Stanca <robert.stanca7@gmail.com>
Mon, 04 Apr 2016 00:55:36 +0300
changeset 28747 779addce6910
parent 28746 de5808c57f58
child 28748 c2ba5a810fa1
py3: use absolute_import in test-hgweb-auth.py
tests/test-check-py3-compat.t
tests/test-hgweb-auth.py
--- a/tests/test-check-py3-compat.t	Mon Apr 04 00:29:03 2016 +0300
+++ b/tests/test-check-py3-compat.t	Mon Apr 04 00:55:36 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-hgweb-auth.py not using absolute_import
   tests/test-hgweb-auth.py requires print_function
   tests/test-hgwebdir-paths.py not using absolute_import
   tests/test-hybridencode.py not using absolute_import
--- a/tests/test-hgweb-auth.py	Mon Apr 04 00:29:03 2016 +0300
+++ b/tests/test-hgweb-auth.py	Mon Apr 04 00:55:36 2016 +0300
@@ -1,8 +1,15 @@
+from __future__ import absolute_import
+
 from mercurial import demandimport; demandimport.enable()
 import urllib2
-from mercurial import ui, util
-from mercurial import url
-from mercurial.error import Abort
+from mercurial import (
+    ui,
+    url,
+    util,
+)
+from mercurial.error import (
+    Abort,
+)
 
 class myui(ui.ui):
     def interactive(self):