diff --git a/tests/mockblackbox.py b/tests/mockblackbox.py
index 05cb9c6f310e433f0041d3fd57e6a503a54f4549_dGVzdHMvbW9ja2JsYWNrYm94LnB5..417380aa5bbe576f8fb427ef6e31e8bc7f060db7_dGVzdHMvbW9ja2JsYWNrYm94LnB5 100644
--- a/tests/mockblackbox.py
+++ b/tests/mockblackbox.py
@@ -1,4 +1,7 @@
-from mercurial import util
+from __future__ import absolute_import
+from mercurial import (
+    util,
+)
 
 def makedate():
     return 0, 0
diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t
index 05cb9c6f310e433f0041d3fd57e6a503a54f4549_dGVzdHMvdGVzdC1jaGVjay1weTMtY29tcGF0LnQ=..417380aa5bbe576f8fb427ef6e31e8bc7f060db7_dGVzdHMvdGVzdC1jaGVjay1weTMtY29tcGF0LnQ= 100644
--- a/tests/test-check-py3-compat.t
+++ b/tests/test-check-py3-compat.t
@@ -42,7 +42,6 @@
   setup.py not using absolute_import
   tests/heredoctest.py requires print_function
   tests/md5sum.py not using absolute_import
-  tests/mockblackbox.py not using absolute_import
   tests/printenv.py not using absolute_import
   tests/readlink.py not using absolute_import
   tests/readlink.py requires print_function