[PATCH 1 of 4] tests: test-dispatch use absolute_import

timeless timeless at mozdev.org
Tue Mar 8 21:17:39 UTC 2016


# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1457470635 0
#      Tue Mar 08 20:57:15 2016 +0000
# Node ID 1436be166642c7a986a06be13850b96d1aa2c77d
# Parent  9974b8236cac50945d7b529e7c4fae9cf4974443
tests: test-dispatch 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
@@ -118,7 +118,6 @@
   tests/test-context.py requires print_function
   tests/test-demandimport.py not using absolute_import
   tests/test-demandimport.py requires print_function
-  tests/test-dispatch.py not using absolute_import
   tests/test-dispatch.py requires print_function
   tests/test-doctest.py not using absolute_import
   tests/test-duplicateoptions.py not using absolute_import
diff --git a/tests/test-dispatch.py b/tests/test-dispatch.py
--- a/tests/test-dispatch.py
+++ b/tests/test-dispatch.py
@@ -1,5 +1,8 @@
+from __future__ import absolute_import
 import os
-from mercurial import dispatch
+from mercurial import (
+    dispatch,
+)
 
 def testdispatch(cmd):
     """Simple wrapper around dispatch.dispatch()


More information about the Mercurial-devel mailing list