tests/fakepatchtime.py: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Sun, 06 Dec 2015 22:14:39 -0800
changeset 27284 f624b0e69105
parent 27283 b38adef652fe
child 27285 aef5b606d3ee
tests/fakepatchtime.py: use absolute_import
tests/fakepatchtime.py
tests/test-check-py3-compat.t
--- a/tests/fakepatchtime.py	Sun Dec 06 22:13:36 2015 -0800
+++ b/tests/fakepatchtime.py	Sun Dec 06 22:14:39 2015 -0800
@@ -1,7 +1,13 @@
 # extension to emulate invoking 'patch.internalpatch()' at the time
 # specified by '[fakepatchtime] fakenow'
 
-from mercurial import extensions, patch as patchmod, util
+from __future__ import absolute_import
+
+from mercurial import (
+    extensions,
+    patch as patchmod,
+    util,
+)
 
 def internalpatch(orig, ui, repo, patchobj, strip,
                   prefix='', files=None,
--- a/tests/test-check-py3-compat.t	Sun Dec 06 22:13:36 2015 -0800
+++ b/tests/test-check-py3-compat.t	Sun Dec 06 22:14:39 2015 -0800
@@ -143,7 +143,6 @@
   mercurial/util.py not using absolute_import
   mercurial/windows.py not using absolute_import
   setup.py not using absolute_import
-  tests/fakepatchtime.py not using absolute_import
   tests/filterpyflakes.py not using absolute_import
   tests/filterpyflakes.py requires print_function
   tests/generate-working-copy-states.py not using absolute_import