[PATCH 3 of 8] tests: make test-trusted use absolute_import

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


# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1460159746 -19800
#      Sat Apr 09 05:25:46 2016 +0530
# Node ID 5f4613e2b637e33a6f1020f3beb5e8160f56ab6e
# Parent  94561254cb2f87a4ff05ea0b1f39a81be516e7ac
tests: make test-trusted 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
@@ -65,7 +65,6 @@
   tests/test-run-tests.py not using absolute_import
   tests/test-simplemerge.py not using absolute_import
   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
 
 #if py3exe
diff --git a/tests/test-trusted.py b/tests/test-trusted.py
--- a/tests/test-trusted.py
+++ b/tests/test-trusted.py
@@ -2,8 +2,14 @@
 # with files from different users/groups, we cheat a bit by
 # monkey-patching some functions in the util module
 
+from __future__ import absolute_import
+
 import os
-from mercurial import ui, util, error
+from mercurial import (
+    error,
+    ui,
+    util,
+)
 
 hgrc = os.environ['HGRCPATH']
 f = open(hgrc)


More information about the Mercurial-devel mailing list