changeset 28747:779addce6910

py3: use absolute_import in test-hgweb-auth.py
author Robert Stanca <robert.stanca7@gmail.com>
date Mon, 04 Apr 2016 00:55:36 +0300
parents de5808c57f58
children c2ba5a810fa1
files tests/test-check-py3-compat.t tests/test-hgweb-auth.py
diffstat 2 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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):