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

login
register
mail settings
Submitter Gregory Szorc
Date Dec. 8, 2015, 3:35 a.m.
Message ID <947820e390d178773bea.1449545705@gps-mbp.local>
Download mbox | patch
Permalink /patch/11919/
State Accepted
Headers show

Comments

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

Patch

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