[PATCH 6 of 8] tests: make test-ui-config use absolute_import

Pulkit Goyal 7895pulkit at gmail.com
Tue Mar 29 07:13:16 EDT 2016


# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1459249389 -19800
#      Tue Mar 29 16:33:09 2016 +0530
# Node ID 489bae7bc6497a1914bea35b179720d1180dea7d
# Parent  29b8a35e54bb19f0402de26d20483fcf1c84d777
tests: make test-ui-config use absolute_import

diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t
+++ b/tests/test-check-py3-compat.t
@@ -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
 
diff --git a/tests/test-ui-config.py b/tests/test-ui-config.py
--- a/tests/test-ui-config.py
+++ b/tests/test-ui-config.py
@@ -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, [


More information about the Mercurial-devel mailing list