[PATCH 2 of 8] tests: make test-ui-color use absolute_import

Pulkit Goyal 7895pulkit at gmail.com
Sat Apr 9 04:02:12 EDT 2016


# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1460159525 -19800
#      Sat Apr 09 05:22:05 2016 +0530
# Node ID 94561254cb2f87a4ff05ea0b1f39a81be516e7ac
# Parent  5edebcde46b922ac5e448aedc96958958764c26f
tests: make test-ui-color 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
@@ -67,7 +67,6 @@
   tests/test-symlink-os-yes-fs-no.py not using absolute_import
   tests/test-trusted.py not using absolute_import
   tests/test-trusted.py requires print_function
-  tests/test-ui-color.py not using absolute_import
 
 #if py3exe
   $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs $PYTHON3 contrib/check-py3-compat.py
diff --git a/tests/test-ui-color.py b/tests/test-ui-color.py
--- a/tests/test-ui-color.py
+++ b/tests/test-ui-color.py
@@ -1,7 +1,12 @@
-from __future__ import print_function
+from __future__ import absolute_import, print_function
 import os
-from hgext import color
-from mercurial import dispatch, ui
+from hgext import (
+    color,
+)
+from mercurial import (
+    dispatch,
+    ui,
+)
 
 # ensure errors aren't buffered
 testui = color.colorui()


More information about the Mercurial-devel mailing list