changeset 27299:74e6de99ce7f

tests: use absolute_import in hgweberror.py
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 06 Dec 2015 22:27:53 -0800
parents e1f55b50edcb
children a8b2bf520a2a
files tests/hgweberror.py tests/test-check-py3-compat.t
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/hgweberror.py	Sun Dec 06 22:27:18 2015 -0800
+++ b/tests/hgweberror.py	Sun Dec 06 22:27:53 2015 -0800
@@ -1,6 +1,10 @@
 # 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.'''
--- a/tests/test-check-py3-compat.t	Sun Dec 06 22:27:18 2015 -0800
+++ b/tests/test-check-py3-compat.t	Sun Dec 06 22:27:53 2015 -0800
@@ -147,7 +147,6 @@
   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