diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t
index d2e154dddb6e1c5434d89f67c54d8c10efb32c64_dGVzdHMvdGVzdC1jaGVjay1weTMtY29tcGF0LnQ=..06245740b408df24363552363beb8c05d442d5c2_dGVzdHMvdGVzdC1jaGVjay1weTMtY29tcGF0LnQ= 100644
--- a/tests/test-check-py3-compat.t
+++ b/tests/test-check-py3-compat.t
@@ -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
diff --git a/tests/test-dispatch.py b/tests/test-dispatch.py
index d2e154dddb6e1c5434d89f67c54d8c10efb32c64_dGVzdHMvdGVzdC1kaXNwYXRjaC5weQ==..06245740b408df24363552363beb8c05d442d5c2_dGVzdHMvdGVzdC1kaXNwYXRjaC5weQ== 100644
--- a/tests/test-dispatch.py
+++ b/tests/test-dispatch.py
@@ -1,1 +1,2 @@
+from __future__ import absolute_import
 import os
@@ -1,5 +2,7 @@
 import os
-from mercurial import dispatch
+from mercurial import (
+    dispatch,
+)
 
 def testdispatch(cmd):
     """Simple wrapper around dispatch.dispatch()