[PATCH 5 of 8] tests/hgweberror.py: use absolute_import

Gregory Szorc gregory.szorc at gmail.com
Mon Dec 7 21:35:05 CST 2015


# HG changeset patch
# User Gregory Szorc <gregory.szorc at gmail.com>
# Date 1449469673 28800
#      Sun Dec 06 22:27:53 2015 -0800
# Node ID 947820e390d178773beaef09af96b63c09113df1
# Parent  a28f6dbeb28023bdd4b3a4e160df2572945fa6d5
tests/hgweberror.py: use absolute_import

diff --git a/tests/hgweberror.py b/tests/hgweberror.py
--- a/tests/hgweberror.py
+++ b/tests/hgweberror.py
@@ -1,7 +1,11 @@
 # A dummy extension that installs an hgweb command that throws an Exception.
 
-from mercurial.hgweb import webcommands
+from __future__ import absolute_import
+
+from mercurial.hgweb import (
+    webcommands,
+)
 
 def raiseerror(web, req, tmpl):
     '''Dummy web command that raises an uncaught Exception.'''
 
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
@@ -146,9 +146,8 @@
   tests/filterpyflakes.py requires print_function
   tests/generate-working-copy-states.py requires print_function
   tests/get-with-headers.py requires print_function
   tests/heredoctest.py requires print_function
-  tests/hgweberror.py not using absolute_import
   tests/hypothesishelpers.py not using absolute_import
   tests/hypothesishelpers.py requires print_function
   tests/killdaemons.py not using absolute_import
   tests/md5sum.py not using absolute_import


More information about the Mercurial-devel mailing list