tests: test-dispatch use absolute_import
authortimeless <timeless@mozdev.org>
Tue, 08 Mar 2016 20:57:15 +0000
changeset 28404 06245740b408
parent 28403 d2e154dddb6e
child 28405 1d9d29d4813a
tests: test-dispatch use absolute_import
tests/test-check-py3-compat.t
tests/test-dispatch.py
--- a/tests/test-check-py3-compat.t	Wed Mar 02 05:27:07 2016 +0000
+++ b/tests/test-check-py3-compat.t	Tue Mar 08 20:57:15 2016 +0000
@@ -92,7 +92,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
--- a/tests/test-dispatch.py	Wed Mar 02 05:27:07 2016 +0000
+++ b/tests/test-dispatch.py	Tue Mar 08 20:57:15 2016 +0000
@@ -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()