[PATCH 1 of 8] tests: make test-url use absolute_import

Pulkit Goyal 7895pulkit at gmail.com
Sat Apr 9 08:02:11 UTC 2016


# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1460159192 -19800
#      Sat Apr 09 05:16:32 2016 +0530
# Node ID 5edebcde46b922ac5e448aedc96958958764c26f
# Parent  c5565fc8848dd084d104ca40c33d1acdfcff8bc6
tests: make test-url 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
@@ -68,7 +68,6 @@
   tests/test-trusted.py not using absolute_import
   tests/test-trusted.py requires print_function
   tests/test-ui-color.py not using absolute_import
-  tests/test-url.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-url.py b/tests/test-url.py
--- a/tests/test-url.py
+++ b/tests/test-url.py
@@ -1,4 +1,4 @@
-from __future__ import print_function
+from __future__ import absolute_import, print_function
 import os
 
 def check(a, b):


More information about the Mercurial-devel mailing list