py3: make test-ui-config use absolute_import
authorPulkit Goyal <7895pulkit@gmail.com>
Tue, 29 Mar 2016 16:33:09 +0530
changeset 28680 ae606bdedc3e
parent 28679 e48a8ac66a41
child 28681 eda8b28e3b1b
py3: make test-ui-config use absolute_import
tests/test-check-py3-compat.t
tests/test-ui-config.py
--- a/tests/test-check-py3-compat.t	Tue Mar 29 16:29:21 2016 +0530
+++ b/tests/test-check-py3-compat.t	Tue Mar 29 16:33:09 2016 +0530
@@ -109,7 +109,6 @@
   tests/test-trusted.py requires print_function
   tests/test-ui-color.py not using absolute_import
   tests/test-ui-color.py requires print_function
-  tests/test-ui-config.py not using absolute_import
   tests/test-ui-config.py requires print_function
   tests/test-url.py not using absolute_import
 
--- a/tests/test-ui-config.py	Tue Mar 29 16:29:21 2016 +0530
+++ b/tests/test-ui-config.py	Tue Mar 29 16:33:09 2016 +0530
@@ -1,4 +1,9 @@
-from mercurial import ui, dispatch, error
+from __future__ import absolute_import
+from mercurial import (
+    dispatch,
+    error,
+    ui,
+)
 
 testui = ui.ui()
 parsed = dispatch._parseconfig(testui, [